Question : System error 5 has occurred when using NET USE and Windows Server 2008

I am trying to map a network drive via the NET USE command in Windows Server 2008.

When I run the command with the password included, I receive a "System error 5 has occurred.  Access is denied.

However, if I just enter the user ID and am prompted/enter the password, everything works fine.

The command I am enterering from the command line, when RUN AS an administrator, is "NET USE L: \\ServerABC\MyShare ThePassword /USER:TheUser"

The UAC for the server is turned to off.

When I enter the same command from a Windows XP or 2003 machine, everything works fine.

Answer : System error 5 has occurred when using NET USE and Windows Server 2008

I found the answer:

its do to the enhaced security of 2008...  I bet if the resource was in the domain, there would be no problem...

try

NET USE L: \\ServerABC\MyShare ThePassword /USER:servername\TheUser

or

NET USE L: \\ServerABC\MyShare ThePassword /USER:IPADDRESS\TheUser

NET USE L: \\ServerABC\MyShare ThePassword /USER:xx.xx.xx.xx\TheUser
Random Solutions  
 
programming4us programming4us