Powershell Remoting
Storing Credentials into the Session
$creds = Get-Credential <user> # then enter the password in the popup$user = '<user>'
$pwd = '<password>'
$secure_pwd = $pwd | ConvertTo-SecureString -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential -ArgumentList $user, $secure_pwdBegin a New Session on Another Workstation
Enter-PSSession -ComputerName <computer>Running a Stateful Session and Then Entering It
Executing Commands Remotely on Another Workstation
Spraying Computers to See Where You Have Access
Executing Scripts Remotely
Execute Locally Loaded Functions on Remote Machines
Copying Files Remotely
Last updated