Do not allow window animations在本地組策略編輯器 (GUI)中有一個名為Computer Configuration-> Administrative Templates-> Windows Components->Desktop Window Manager的設定,我想使用 powershell 將其設定為已啟用,由于我的 Windows 版本是專業版,因此??我可以將 RSAT GroupPolicy 功能添加到我的機器上我做到了,現在我可以在 Windows PowerShell 中使用組策略 Cmdlet
但我對如何使用命令啟用該功能知之甚少
我厭倦了使用
Get-GPO -Name "Do not allow window animations"
但這會回傳
Get-GPO : Current security context is not associated with an Active Directory domain or forest.
grouppolicy 模塊作業正常,但我不知道如何查詢或更改 GPO 中任何設定的值
uj5u.com熱心網友回復:
如果您想要 cmdlet 來更改值,您可以使用圖庫 https://www.powershellgallery.com/packages/PolicyFileEditor/3.0.1中的 PolicyFileEditor 模塊
uj5u.com熱心網友回復:
Get-GPO 功能專門用于域組策略,而不是您似乎正在參考的本地策略。該模塊的描述也提到了這一點:
獲取域中的一個 GPO 或所有 GPO。
為了修改本地策略,您需要更改注冊表中的相應設定
例如,要禁用關機按鈕,您需要修改:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start\HideShutDown
Value = 1
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/513805.html
標籤:视窗电源外壳gpo
上一篇:如何使腳本也用批處理復制目錄樹
