mirror of
https://github.com/samratashok/nishang
synced 2026-06-08 17:20:25 +00:00
Update Set-RemotePSRemoting.ps1
This commit is contained in:
@@ -33,11 +33,11 @@ PS C:\> Set-RemotePSRemoting -UserName labuser –Verbose
|
||||
Use the above command to add permissions on the local machine for labuser to access PowerShell remoting.
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> Set-RemoteWMI -UserName labuser -ComputerName targetserver -Credential admin
|
||||
PS C:\> Set-RemotePSRemoting -UserName labuser -ComputerName targetserver -Credential admin
|
||||
Use the above command to add permissions on the remote machine for labuser to access PowerShell remoting.
|
||||
|
||||
.EXAMPLE
|
||||
PS C:\> Set-RemoteWMI -UserName labuser -ComputerName targetserver -Credential admin -Remove
|
||||
PS C:\> Set-RemotePSRemoting -UserName labuser -ComputerName targetserver -Credential admin -Remove
|
||||
Remove the permissions added for labuser from the remote machine.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user