Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

APPENDIX A: Solutions to Exercises > Solution 9: Turn Off the Display Control P...

Solution 9: Turn Off the Display Control Panel in Group Policy with PowerShell

This PowerShell command is a matter of piping three cmdlets together:

  • New-GPO
  • New-GPLink
  • Set-GPRegistryValue

Order also matters. When you run the following command, you create the GPO first, set the values second, and then link it last. The following example will create a new GPO called NoDisplay with the Display Control Panel disabled and linked to the Executives OU in sample.com:

New-GPO NoDisplay | Set-GPRegistryValue  -key
image
“HKCU\Software\Microsoft\Windows\CurrentVersion\Policies
image
\System” -ValueName NoDispCPL -Type DWORD -value 1
image
| New-GPLink -target “ou=executive,dc=sample,dc=com”

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial