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?