Reputation: 704
on a windows 8 machine, I want to read the GPO setting "Accounts: Block Microsoft accounts" which can manually be configured by going here :
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options -> "Accounts: Block Microsoft accounts"
However i want to read the setting using a powershell script
The two options I tried:
can anyone guide me as to how I should proceed. I am extremely new to powershell!
Thanks.
Upvotes: 0
Views: 2033
Reputation: 51
First, you need to generate the GPO report using the Get-GPOReport
cmdlet and then parse the XML or HTML report to get the parameter that you need.
Upvotes: 1