If it's the same problem that's been around for several years, search the web for "Set-GPPermissions confirm switch" and see if the problem is the security group and your computer's membership. There was a change made by a patch to the permission requirements.
Set-GPPermission -Confirm:$false not working
I have written a script to silently execute. There is one particular line code that cannot run silently and is causing unnecessary productivity issues. The code is below;
Set-GPPermissions -Name Marketing -PermissionLevel None -TargetName "Authenticated Users" -TargetType Group -WarningAction SilentlyContinue -Confirm:$false
Apparently someone can explain how to make this code run silently without user prompt will be a nice.
Sign in to comment
Sort by: Most helpful