POST POST

SEP
3
2015

A Couple of Things About Powershell Remoting

I couldn't find the answers to these questions readily anywhere on the internet so I thought I would write them down here for the good of mankind.

When using remoting as a different user does the target account or my account need to be an admin?

The target account is the key one here. If you're logging in with a different user account you don't need to have any sort of admin rights yourself but the account specifed in the credentials you pass in will.

Do you really need to be an administrator to use remoting?

No. You either need to be an admin or in the "Remote Management Users" group.

Is remoting pretty much just SSH?

More or less. The usual way of using remoting is to use the Invoke-Command commandlet which just executes a single command. However there is another one called Enter-PSSession and this one lets you enter an interactive mode.

1
2
3
    Invoke-command remotemachinename -Credential $cred -scriptblock { 
somecommand.exe --some-parameters
}

vs

1
Enter-PSSession -computername remotemachinename -authentication credssp -Credential $cred 

Simon Timms

Email Email
Web Web
Twitter Twitter
GitHub GitHub
RSS

Looking for someone else?

You can find the rest of the Western Devs Crew here.

© 2015 Western Devs. All Rights Reserved. Design by Karen Chudobiak, Graphic Designer