Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use "net use" command using the account other than Administrator [closed]

Tags:

windows

I could use "net use" command at windows successfully using both Administrator and other account. But I can't use other account to go to " \\IPAddress\c$ password /User:username". This could be done using Administrator account.

Does anyone know what's the setting at the server side that could solve this?

Thanks

like image 973
user1110839 Avatar asked Oct 15 '25 03:10

user1110839


1 Answers

When you are issuing the command net use \\xxx.xxx.xxx.xxx\c$ you are attempting to connect to a special share known as the Administrative share

To connect to that share, the person requesting the connection needs to be in admin group on the remote computer.

You options are

  1. Add the local non-admin users into the admin group on the remote server (less desirable)
  2. You might be able to grant the local user explicit permissions on the remote C$ share but I've never tried that.
  3. Provide alternate credentials for the net use command

    net use \xxx.xxx.xxx.xxx\c$ MySecurePassw0rd /user:RemoteComputerName\RemoteUser

net use /?

The syntax of this command is:

NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]
like image 130
billinkc Avatar answered Oct 18 '25 02:10

billinkc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!