|
here is a part of the script i am going to use.
If InGroup ("Test groep") $Desktop=ReadValue('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Desktop') $server=@LSERVER If 0=Exist($Destkop) Copy "\\%logonserver%\slkplgn" $Desktop If @ERROR = 0 ? "je kunt gaan werken op je pc." Sleep 20 Else ? "er is iets fout gegaan" Sleep 5 EndIf EndIf If KeyExist ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum") ? "we doen niks" Else AddKey ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum") WriteValue ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","1","REG_DWORD") AddKey ("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum") WriteValue ("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","1","REG_DWORD") EndIf
but yes we have policies but what i want to change is not change able with a policy.
i know that we have to change the keys stated above.
what am i doing wrong here.
Richard
|