Disabling a GPO Link

Let's pretend that we need to disable that GPO link that was just established to the IT Department OU. We don't want to fully delete the link, because we plan to re-enable it again later, so we will simply issue a command to disable the link and make it inactive:

Set-GPLink "MyNewGPO" -target "ou=IT Department,dc=mydomain,dc=local" -LinkEnabled No

As you can guess, re-enabling this link is as simple as running the exact same command, but changing No to Yes at the end, as such:

Set-GPLink "MyNewGPO" -target "ou=IT Department,dc=mydomain,dc=local" -LinkEnabled Yes

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.172.220