another new issue is that I can not run the kix file that resides on the server.
\\server_name\netlogon\local.kix

this is being called from a task schedule. set to run at startup.
General run the task as SYSTEM
Trigger startup
action start a program c:\kix\wkix32.exe \\server_name\netlogon\local.kix

The script I am running is

 Code:
; Set Registry Variables
$keyies ="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings"

;Disable Reda Write from USB ports
$ubstor = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor"
$ret=writevalue($ubstor,"Start","4","REG_DWORD")
;   "Start"=dword:00000004

;Disable add/delete sites from Security Zone
$ret=writevalue($keyies,"Security_zones_map_edit","1","REG_DWORD")

;Disable Changing Policies for any Security Zone
$ret=writevalue($keyies,"Security_options_edit","1","REG_DWORD")

;Use Only Machine Settings for Security Zone
$ret=writevalue($keyies,"Security_HKLM_Only","1","REG_DWORD")


;Reload explorer shell
shell "taskkill /f /im explorer.exe & start explorer.exe"

RETURN

seems it can not access the server netlogon directory
if I point to local drive the script works fine.

Berni


Edited by Mart (2013-04-24 09:22 AM)
Edit Reason: Please use code tags when posting code.