Tuesday, November 14, 2017

Net Use Command for Windows

The net use command is a Command Prompt command that's used to connect to, remove, and configure connections to shared resources, like mapped drives and network printers.
 The net use command is one of many net commands like net send, net time, net user, net view, etc. 

Net Use Command Availability
The net use command is available from within the Command Prompt in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP, as well as in older versions of Windows and in Windows Server operating systems. Recovery Console, the offline repair utility in Windows XP, also includes the net use command but it's not possible to use it within the tool.
 Note: The availability of certain net use command switches and other net use command syntax may differ from operating system to operating system.

 Net Use Command Syntax
net use [{devicename | *}] [\\computername\sharename[\volume] [{password | *}]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | no}] [/smartcard] [/savecred] [/delete] [/help] [/?]

List all active connection

net use

Remove temp credential login
net use "\\10.158.252.100\xxx" /d

https://www.lifewire.com/net-use-command-2618096

No comments :