Trying to adjust some local gp settings, script works just fine when executed directly on a machine, but not with intune. The script is executed successfully, but nothing happends to the local GP. The scripts includes installing of nuget and the PolicyFileEditor module, this has been tested and works.
Also there seems to be an issue with a computer that is AzureAD joined, here the computer will have an empty GroupPolicy folder, until someone manually initializes the directory. Is there any way to initialize or will the powershell module do this ?
Hi
Trying to adjust some local gp settings, script works just fine when executed directly on a machine, but not with intune. The script is executed successfully, but nothing happends to the local GP. The scripts includes installing of nuget and the PolicyFileEditor module, this has been tested and works.
Also there seems to be an issue with a computer that is AzureAD joined, here the computer will have an empty GroupPolicy folder, until someone manually initializes the directory. Is there any way to initialize or will the powershell module do this ?
Script: $UserPolicy = 'C:\windows\system32\GroupPolicy\User\Registry.pol' $Ctx_Files_Key = 'Software\Policies\Citrix\Citrix Files'
Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'Account' -Type String -Data 'server-name-1'