Get-execution policy of all Domain Controllers in Forest

Welcome Forums General PowerShell Q&A Get-execution policy of all Domain Controllers in Forest

This topic contains 4 replies, has 2 voices, and was last updated by

 
Participant
2 years, 11 months ago.

  • Author
    Posts
  • #32101

    Participant
    Points: 58
    Rank: Member

    I wish to query all the domain controllers in a multi domain forest for get-executionpolicy and then set it to Remote Signed (Windows 2008 R2) without using Group policy.

    How can I do this once I have

  • #32263

    Keymaster
    Points: 1,644
    Helping HandTeam Member
    Rank: Community Hero

    ...once you have what?

  • #32909

    Participant
    Points: 58
    Rank: Member

    HI Don,

    Apologies for this incomplete question. I believe that the "once I have.." came from another reply to an email.

    The original question I had is for essentially running PS across domain boundaries. Since I first posited the question here, I have grabbed a copy of PS in a Month of Lunches (which I am thoroughly enjoying). I'm sure the answer is there and although advised to read it sequentially, perhaps you can throw me a clue where and when to look out for the answer?

    thanks again
    Jeff

  • #32921

    Keymaster
    Points: 1,644
    Helping HandTeam Member
    Rank: Community Hero

    So, if you're looking to use Remoting to query across domain boundaries, grab "Secrets of PowerShell Remoting" (it's a free ebook – check the Resources menu here). It covers everything. You'd want to use the Invoke-Command cmdlet to check/modify the registry on each machine (the registry is where the machine-wide Execution Policy is stored).

  • #32951

    Participant
    Points: 58
    Rank: Member

    Many thanks Don

The topic ‘Get-execution policy of all Domain Controllers in Forest’ is closed to new replies.