Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running with intune #19

Open
mortenbohmer opened this issue Nov 27, 2019 · 0 comments
Open

Running with intune #19

mortenbohmer opened this issue Nov 27, 2019 · 0 comments

Comments

@mortenbohmer
Copy link

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'

Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint3-DisplayName' -Type String -Data 'Citrix Files Area 3'
Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint3-ShareFile' -Type String -Data 'Shared Folders\\Folder3'
Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint3-Local' -Type String -Data 'k:'

Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint4-DisplayName' -Type String -Data 'Citrix Files Area 4'
Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint4-ShareFile' -Type String -Data 'Shared Folders\\Folder4'
Set-PolicyFileEntry -Path $UserPolicy -Key $Ctx_Files_Key -ValueName 'MountPoint4-Local' -Type String -Data 'l:'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant