0

Get Powershell Execution Policy on remote machines

Posted by Tao Yang on 27/07/2010 in PowerShell |

Today I’ve been asked how to inventory PowerShell execution policies on all servers in a domain. I originally thought I can ultilise RemoteIn as PowerShell V2 should be deployed on all servers. then I realised WSMan wasn’t configured on the srevers so I couldn’t use “New-PSSession” cmdlet…

Therefore, I wrote a function called Get-RemoteExecutionPolicy.  It retrieves the setting from the remote registry.

The usage is: Get-RemoteExecutionPolicy <machine name>.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2010-2012 Tao Yang's System Management Blog All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0, from BuyNowShop.com.