Skip to content

Instantly share code, notes, and snippets.

@aic25
Created June 27, 2018 01:28
Show Gist options
  • Save aic25/ccba135e445bdfc94154fa257103500c to your computer and use it in GitHub Desktop.
Save aic25/ccba135e445bdfc94154fa257103500c to your computer and use it in GitHub Desktop.
shell commands for server access
# serveraccess.bat
@echo off
powershell.exe -executionpolicy bypass -windowstyle hidden -noninteractive -nologo -file "ServerAccess.ps1"
## ServerAccess.ps1
net use \\server /user:username password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment