Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This PowerShell command is a matter of piping three cmdlets together:
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
“HKCU\Software\Microsoft\Windows\CurrentVersion\Policies
\System” -ValueName NoDispCPL -Type DWORD -value 1
| New-GPLink -target “ou=executive,dc=sample,dc=com”