- July 31, 2016 at 8:35 am #48813
I have created a Windows 2012 R2 VM to experiment with some DSC Configuration. I have created two local users and have added them into the Administrators local group.
I have attempted to PSRemote into the server using the two newly created users.
I have tried to create a session like this:
$cred1 = Get-Credential $nsn1 = nsn -ComputerName 192.168.1.16 -Credential $cred1
But I get a access is denied. I have confirmed that I can log in locally using the same credentials. It works, so I am a bit baffled as to why its not working as in the help with about_remote_troubleshooting it's saying that the users need to be in the local administrators group which I have added in these users too..
I have added the server to the trustedhosts as well..
I am sorry if this seems a bit basic but I don't understand what I am missing. Any help or guidance what I should be looking for would be most appreciated.
July 31, 2016 at 11:03 am #48816
- This topic was modified 1 month, 4 weeks ago by Wei-Yen Tan.
Is PowerShell remoting enabled on remote host ?
It would be better to read the help for about_remote_troubleshooting, everything you need is mentioned there.
kvprasoonJuly 31, 2016 at 9:31 pm #48847
Hi there Wei-Yen. Is the machine on the domain? If so, can you post the error message you're receiving?August 1, 2016 at 1:16 am #48853
Remoting does work on the administrator. I thought that I would try and run winrm quickconfig on the destination server. and realized that local users are not added to the list of usrs that can remote in....EVEN if they are in the list of local administrators. Once i ran quickconfig it all worked. Learn something new every day. 🙂
Thanks for everyone's help.
You must be logged in to reply to this topic.