Solved

Powershell Remoting as Adminstrator

Posted on 2014-11-19
6
18 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
Comment Utility
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
Comment Utility
Have you tried on the remote PC setting the executionpolicy to unrestricted or remotesigned?
0
 

Author Comment

by:ats2012
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now