How to disable all links of a particular GPO with PowerShell

124 views Asked by At

The task I need to perform is to disable all links of given GPOs. I get all GPOs with:

$GPOs = Get-GPO -All |select DisplayName,id

But below is not working:

Set-GPLink -Guid $GPOs[0].id.guid -Target * -LinkEnabled No

I think the problem is with the "*". Can you help me with a PowerShell command for that, please?

0

There are 0 answers