Created
June 27, 2018 01:28
-
-
Save aic25/ccba135e445bdfc94154fa257103500c to your computer and use it in GitHub Desktop.
shell commands for server access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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