Szukaj na tym blogu

wtorek, 10 marca 2015

PowerShell import module from remote machine

$kappa = New-PSSession -ComputerName kappa.applypoland.com -Credential $cred
Import-Module -Name Lync  -PSSession $kappa

PowerShell - open console with credentials stored in variable

Create a script and save it in %userprofile%\WindowsPowerShell\profile.ps1
In script put:
$cred = get-credential -username Lab\admin -Message 'Need admin pass for $cred'