Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
General PowerShell
"winrm quickconfig" and group policy?
Last Post 04 Mar 2010 06:18 AM by
aleksandar
. 14 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Ty Moffett
New Member
Posts:72
20 Aug 2009 02:18 PM
I've been looking for a quick way to run "winrm quickconfig" via group policy. I figure it has to be group policy since elevated privileges are required but I'm open to suggestion. I don't know much about winrm configuration but I do know if works in my environment with the quickconfig switch.
Marco Shaw (MVP)
Veteran Member
Posts:1641
20 Aug 2009 05:52 PM
If I remember correctly, winrm is just a VBScript script actually. I think you should go asking this in a GPO forum/group.
What is your ultimate goal here? Just to enable WinRM 1.0?
Marco
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*Blog - http://marcoshaw.blogspot.com
Ty Moffett
New Member
Posts:72
21 Aug 2009 06:53 AM
My ultimate goal is to use Powershell Remoting across our company.
Marco Shaw (MVP)
Veteran Member
Posts:1641
21 Aug 2009 06:58 AM
The more "official" way to do this is with "Enable-PSRemoting -force" that comes with v2.
I'd have to research, but I'm assuming "winrm quickconfig" does the exact same thing. Also, you may want to be aware that the WinRM 2.0 RTM won't use ports 80 and 443 by default.
Marco
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*Blog - http://marcoshaw.blogspot.com
halr9000
PowerShell MVP, Site Admin
Advanced Member
Posts:565
21 Aug 2009 06:59 AM
I totally agree that GPO is the way this ought to be done. It needs researching, afraid I don't know the answer either.
Community Director,
PowerShellCommunity.org
Co-host,
PowerScripting Podcast
Author,
TechProsaic
Marco Shaw (MVP)
Veteran Member
Posts:1641
21 Aug 2009 07:06 AM
http://www.microsoft.com/downloads/...layLang=en
I wonder if Server 2008 R2 has any GPOs relating to PowerShell/WinRM v2...
Marco
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*Blog - http://marcoshaw.blogspot.com
Jeff Hicks
New Member
Posts:3
21 Aug 2009 09:34 AM
(let me try again as I don't know what happened to my original post)
At least on Windows Server 2008R2 there is WinRM GPO setting under Computer Configuration\Policies\Administrative Templates\Windows Components\Windows Remote Management.
Minimum OS is Vista and there are settings for the client and service. Not sure of the effect of combining the policy with Enable-PSRemoting.
Jeffery Hicks
Microsoft PowerShell MVP
JDHITSolutions.com/blog
Follow me on
Twitter
"Those who forget to script are doomed to repeat their work."
Now Available:
Managing Active Directory With Windows PowerShell: TFM
Ty Moffett
New Member
Posts:72
21 Aug 2009 10:21 AM
http://blogs.msdn.com/powershell/ar...entmessage
They make mention that there is a way to enable remoting in group policy. I've requested more information and I'll pass it along in this thread if I get a reply.
Jeff - Using the templates you linked I can see a number of settings for WinRM (no version specified) on my 2003 network. I'll see if I can't replicate what Enable-PSRemoting -force does from there.
This feels like progress. :)
Ty Moffett
New Member
Posts:72
23 Aug 2009 09:23 AM
http://msdn.microsoft.com/en-us/lib...S.85).aspx
"Installation and Configuration for Windows Remote Management"
This includes group policy configuration.
http://technet.microsoft.com/en-us/...19498.aspx
This shows exactly what Enable-PSRemoting does and it lists a great many things that are not included in the previous article.
I've made a GPO that starts the service, makes the firewall exceptions, and creats a listener. I can't do much more this weekend though. Hopefully I'll know more on Monday.
Ty Moffett
New Member
Posts:72
25 Aug 2009 01:13 PM
Edit: Useless information. Solution below.
Ty Moffett
New Member
Posts:72
26 Aug 2009 06:50 AM
Well it appears that I have this working and as usual I made it a lot harder than it needed to be and then I found the easy solution. :)
Make a new GPO here (I'm using Win 7 Enterprise with the new RSAT).
Computer Configuration\Windows Settings\Scripts\Startup
There is the usual Scripts tab and a new PowerShell Scripts tab. I simply made a script which contains "Enable-PSRemoting -force" and told it to run PowerShell scripts first.
I built a new VM to push this on and it complained on the first login but after a reboot there were no more errors and remoting worked.
-Ty
Ty Moffett
New Member
Posts:72
26 Aug 2009 06:52 AM
Here's a screenshot.
halr9000
PowerShell MVP, Site Admin
Advanced Member
Posts:565
26 Aug 2009 10:13 AM
That is awesome! Thanks for the update, I've already got this article marked for discussion on the podcast.
Community Director,
PowerShellCommunity.org
Co-host,
PowerScripting Podcast
Author,
TechProsaic
Jan Egil Ring
New Member
Posts:45
04 Mar 2010 06:00 AM
Also, check out this blog-post:
"Enable and configure Windows PowerShell Remoting using Group Policy"
http://blog.crayon.no/blogs/janegil...olicy.aspx
Jan Egil Ring
---------------------
http://blog.powershell.no
aleksandar
New Member
Posts:54
04 Mar 2010 06:18 AM
Great blog post. Lots of details. Thanks for a shout-out. We plan to cover more "remoting in an enterprise" topics in a next edition.
Follow me on Twitter: http://twitter.com/alexandair
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
General PowerShell
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2