简体   繁体   English

使用 powershell 命令读取本地组策略

[英]Read local group policy using powershell commands

Iam unable to get Gpresult of local group policy using powershell. I need help on this to get the local gpo's on windows Server 2022我无法使用 powershell 获取本地组策略的 Gpresult。我需要这方面的帮助才能在 windows Server 2022 上获取本地 gpo

not much you want to share with us about what you have tried.您不想与我们分享您尝试过的内容。 you could do:你可以这样做:

#Export gpresult into xml
gpresult /x C:\Users\Administrator\Documents\gpo.xml
#Load xml
$xml = New-Object xml
$xml.Load("C:\Users\Administrator\Documents\gpo.xml")

$xml contains the information. $xml 包含信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM