Solved

Powershell Remoting as Adminstrator

Posted on 2014-11-19
6
32 Views
Last Modified: 2016-01-07
An expert solved this script question previously which is related.  To recap this script works flawlessly on my machine (Win7 x64 PS 3.0) when I run PS as administrator.  I've enabled WinRM through GPO on the domain machine and created the firewall exception. I've tried to run this script several different ways.  First, I run it from my machine as the script was intended and I get the attached error.  This was the same error I described in previous question I linked to above.  That was solved after I enter the correct print driver name.  Secondly, I copied the script to remote machine and then remoted in (Enter-PSSession) using my credentials and I'm a domain admin.  Then I run from the remote machine and get the same error.  I'm pretty sure the problem lies with the elevated permissions.  Even on my machine I have to launch PS as administrator to get script to work.  I tested my theory on remote machine by trying to run Enable-PSRemoting and I get attached errors.  We have a GPO in place to disable UAC.  Could that be the reason I continue to get access denied on remote session?
Powershell-Error.JPG
Powershell-error2.JPG
0
Comment
Question by:ats2012
  • 2
6 Comments
 
LVL 16

Expert Comment

by:Joshua Grantom
ID: 40453218
What are all the settings you applied in the enable WinRM group policy? Did you include the firewall rules?

Also, I dont think you can enable-psremoting while using a remote session. I could be wrong on that but I would think that is a security feature.
0
 
LVL 3

Expert Comment

by:markc56
ID: 40453339
Have you tried on the remote PC setting the executionpolicy to unrestricted or remotesigned?
0
 

Author Comment

by:ats2012
ID: 40453363
Josh,
I used this article to configure the WinRM Group Policy.  It does include the firewall setting.  I will to double check the firewall setting.

Mark,
I did try to Set-ExecutionPolicy to unrestricted on remote system but again was given an access denied.
0
 

Accepted Solution

by:
ats2012 earned 0 total points
ID: 40453396
OK, I feel like a dummy.  I created the WinRM GPO in a couple different OU's.  The OU I'm trying to get it working on I didn't configure the port exception on the firewall rule.  I'll likely need a few days for policy to fully take affect to test again.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Set OWA language and time zone in Exchange for individuals, all users or per database.
A procedure for exporting installed hotfix details of remote computers using powershell
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question