$kappa = New-PSSession -ComputerName kappa.applypoland.com -Credential $cred
Import-Module -Name Lync -PSSession $kappa
I write some useful information and lessons learnt about SCCM, MDT, SCOM, Exchange, Lync, Windows 7/8, Windows servers, Hyper-V, Vmware
Szukaj na tym blogu
wtorek, 10 marca 2015
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'
In script put:
$cred = get-credential -username Lab\admin -Message 'Need admin pass for $cred'
Subskrybuj:
Posty (Atom)