Remote Powershell
Get-NetConectionProfile
: Get interfaceSet-NetConectionProfil -IntercaceIndex 9 -NetworkCategory Private
: Enable PS RemoteSet-Item wsmon:\localhost\client\trustedhosts\ *
: Enable trustRestart-Service WimRM
Test-WsMan COMPUTER
Enter-PSSession -ComputerName COMPUTER -Credential USER
$a = ls 'HKLM:/Software/'
$a[0].Property
[environment]::OSVersion.Version
: get os version (aparently :)# mycomment
Single line<# mycomment #>
multiline$?
# True if last operation succeed$LastExitCode
# Exit code of last windows-based program that was runls -Recurse -Fiel | select *