Created
January 5, 2015 08:00
-
-
Save kan6004/589f9e289de73938da2f to your computer and use it in GitHub Desktop.
2015.1.5 samplecode1
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
$server = "<server FQDN or IP>" | |
$user = "<domain name>\<user name>" | |
$pass = "<user password>" | |
$s = New-PSSession -ComputerName $server -Credential (New-Object System.Management.Automation.PsCredential($user, (ConvertTo-SecureString $pass -AsPlainText -Force))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment