April 2019
Intermediate to advanced
372 pages
12h 47m
English
Let's perform the following steps:
Get-Vm -Name PACKT-FS-A | Get-VMNetworkAdapter | Disconnect-VMNetworkAdapter
Enter-PSSession -ComputerName PACKT-FS-A -Credential Contoso\Install
$directSession = New-PSSession -VMName PACKT-FS-A -Credential Contoso\Install
Invoke-Command -Session $directSession -ScriptBlock { Get-Process -id $pid}
Read now
Unlock full access