It is possible to create GPO Policies via kaseya agent procedure?
I've tried to run a command via Powershell
New-GPO -Name SampleGPO -comment "This is a test via PS." ----- it will create a new gpo
Set-GPRegistryValue -Name "SampleGPO" -key "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" -ValueName ScreenSaveTimeOut -Type DWORD -value 900 ------ assign a sample GPO policy via registry.
new-gplink -name SampleGPO -target "dc=nmitestdomain,dc=com" ----- link the policy to a domain
Is there a way to run this commands via kaseya agent procedure? I've tried the executePowershell command but its not working.
And can I create GPO policies that are not RegistryBased? via Powershell or any commands or scripts?
Our objective of developing this kind of script is to have a single console policy management and for easy management..
Hi Eduard_T ,
Have you tried with the Execute Powershell Command 64bits ? You should do a ps1 to set your GPO then execute it, but if you are using the New-GPO on 2008 R2 you must create a function to load the powershell AD module in start of your script like :
Thanks for the reply. actually I'm new in Powershell scripting :). Like what you have said, i need to save my powershell script to .ps1, right? and let kaseya execute the .ps1 file I've already created one but i wasn't able to execute it using kaseya.... :P i'm working with that now..
another question.. is it possible to edit GPO policy via powershell for example password settings, proxy settings? and not just only on registry based policy.