Hi,
If the machines is Workgroup , you have to use gpedit.msc to edit the local GPO. There is no Powershell module to manage local GPO therefore you cannot Powershell to edit local GPO.
Please don't forget to mark helpful reply as answer
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm trying to use PowerShell to set group policy on a number of non domain joined PCs running Windows 10 Professional.
I have installed RSAT: Group Policy Management Tools but when using the get-GPO cmdlet the following error occurs:
get-GPO : Current security context is not associated with an Active Directory domain or forest.
Is there a method to use get-GPO and other associated cmdlets to just use the local computer?
Thanks
Hi,
If the machines is Workgroup , you have to use gpedit.msc to edit the local GPO. There is no Powershell module to manage local GPO therefore you cannot Powershell to edit local GPO.
Please don't forget to mark helpful reply as answer
GPO's are domain-based and can't be used on non-domain members.
You can, however, have local policies.