Skip to content

Instantly share code, notes, and snippets.

@vans163
Last active January 27, 2017 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vans163/ceef8aeb837b81d1ec97dc1003c7ec77 to your computer and use it in GitHub Desktop.
Save vans163/ceef8aeb837b81d1ec97dc1003c7ec77 to your computer and use it in GitHub Desktop.
cmdkey /add:$serverIP /user:$serverIP\$unixAccoutnName /pass:$password
net use S: \\192.168.1.22\myshare /SAVECRED /PERSISTENT:YES
net use Z: /delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment