[英]Get a GPO setting using powershell
在Windows 8计算机上,我想阅读GPO设置“帐户:阻止Microsoft帐户”,可以通过以下步骤进行手动配置:
Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options -> "Accounts: Block Microsoft accounts"
但是我想使用Powershell脚本读取设置
我尝试了两个选项:
谁能指导我该如何进行。 我对Powershell极为陌生!
谢谢。
首先,您需要使用Get-GPOReport
cmdlet生成GPO报告,然后解析XML或HTML报告以获取所需的参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.