Enabling $Admin share on windows 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    Enabling $Admin share on windows 7

    I have windows 7 setup with ip 172.18.28.65
    I have also enabled the $Admin share.

    If I hit following command from my XP machine(172.18. 28.59)

    net use \\172.18.28.65\ Admin$ /user:Admin

    everything works perfectly.

    Now, if I telnet to windows 7.
    telnet 172.18.28.65

    and hit:

    net use \\127.0.0.1\Adm in$ /user:Admin

    then it gives access denied error.

    It may sound crazy, but I need this to run psexec smoothly.

    Any help?
  • Oralloy
    Recognized Expert Contributor
    • Jun 2010
    • 988

    #2
    You might check your permissions on the share, Ashit.

    I've been bitten by that sort of thing more than once. There are some subtle things that creep in.

    Also, can you issue the first command from the Windows7 machine successfully? Which is to say, do the telnet, and issue
    Code:
    net use \\172.18.28.65\Admin$ /user:Admin
    Luck!
    Oralloy

    Comment

    • ashitpro
      Recognized Expert Contributor
      • Aug 2007
      • 542

      #3
      thanks for reply,
      I tried that command after telnet. It still shows me access denied. Like I said, from remote machine it works like a charm. By the way, how should I check the Admin share permission. Sorry for being naive, but you know I am not a windows person. Help me...

      Comment

      • Oralloy
        Recognized Expert Contributor
        • Jun 2010
        • 988

        #4
        If you know where Admin$ maps into the file system, you can right-click on the folder that it maps into. On the dialogue that pops up, there should be a "shares" tab. Then you'll have to use your native smarts to look deeper from there.

        If Admin$ is a service or some such, we're beyond my basic knowledge, and I'll have to step back.

        Have you tried googling the problem, too?

        Comment

        • ashitpro
          Recognized Expert Contributor
          • Aug 2007
          • 542

          #5
          I believe I've solved this mess.
          All we have to do is instead of using 127.0.0.1 or localhost or real ip, use computer name, in my case its 'win_7_32_test' . 'net use' as well as psexec is working fine

          What a shame !!!

          Comment

          • Oralloy
            Recognized Expert Contributor
            • Jun 2010
            • 988

            #6
            Ash,

            Thanks so much for giving me that feedback. Hopefully I'll not find myself in a similar state, but if I do, I'll be prepared.

            I can understand how that might work. Windows will route the I/O over a local NETBUI channel or something, rather than across TCP/IP.

            Grrrrr.

            Comment

            • ashitpro
              Recognized Expert Contributor
              • Aug 2007
              • 542

              #7
              Also, if there is no way that one could use netbios names and has to use 127.0.0.1, we have to disable UAC in windows 7.

              Comment

              • Oralloy
                Recognized Expert Contributor
                • Jun 2010
                • 988

                #8
                Any luck resolving the core issue here?

                Comment

                • ashitpro
                  Recognized Expert Contributor
                  • Aug 2007
                  • 542

                  #9
                  Actually, I was not able to run psexec and start my batch script remotely. I read somewhere that you have to enable the Admin share. So I was stuck enabling that share.

                  But like I said, when I disabled the UAC in windows 7. everything started working fine. Admin share as well as PsExec.

                  Comment

                  • Oralloy
                    Recognized Expert Contributor
                    • Jun 2010
                    • 988

                    #10
                    Thanks for letting me know.

                    Cheers!
                    Oralloy

                    Comment

                    Working...