Lateral Movement
Connect to machine with administrator privs
Enter-PSSession -Computername <computername>Save and use sessions of a machine
$sess = New-PSSession -Computername <computername>
Enter-PSSession $sessConnect to machine with administrator privs
Enter-PSSession -Computername <computername>
$sess = New-PSSession -Computername <computername>
Enter-PSSession $sessExecute commands on a machine
Invoke-Command -Computername <computername> -Scriptblock {whoami}
Invoke-Command -Scriptblock {whoami} $sessLoad script on a machine
Invoke-Command -Computername <computername> -FilePath <path>
Invoke-Command -FilePath <path> $sessDownload and load script on a machine
Execute locally loaded function on a list of remote machines
Check the language mode
Enumerate AppLocker policy
Copy script to other server
Last updated