Hi there
I am trying to modify the registry to set a number of options in it.
They include, Changing the size of the pagefile, clearing the pagefile at shut down, setting the default screensaver, telling the machine not to maintain a master list & then telling the machine that it is not the domainmaster.I have tried logging on as both a user & domain admin onto a machine.
anything under HKLM, does not get modified, even with the domain admin account.
Regarding the normal user I will find a way to use SU to rectify the problem.
regarding the screen saver, all of the settings are there & work great except for the screensaver itself. If I look in the registry, the correct screensaver is listed there. If I go to screensaver properties, it says none. ??? does this with multiple screensaver types
Calling the SMSLS.bat file does not work either
Most of the clients are Winnt.
Here is the script that I am trying to use
; SETCONSOLE ("HIDE")
; Setting the default screen saver
Copy \\jnbmerdc1\netlogon\merchants.scr c:\winnt\
WriteValue ("Control Panel\Desktop","Screensaveactive","1","reg_sz")
WriteValue ("Control Panel\Desktop","ScreensaverIsSecure","1","reg_sz")
WriteValue ("Control Panel\Desktop","Screensavetimeout","300","reg_sz")
WriteValue ("Control Panel\Desktop","Scrnsave.exe","c:\winnt\beziers.scr","reg_sz")
; Modifying the Registry
WriteValue ("CurrentcontrolSet\Services\browser\Parameters","Isdomainmaster","False","Reg_sz")
WriteValue ("CurrentcontrolSet\Services\browser\Parameters","Maintainserverlist","NO","Reg_sz")
WriteValue ("CurrentcontrolSet\Services\CDROM","Autorun","0","Reg_dword")
WriteValue ("System\CurrentcontrolSet\Control\Session manager\subsystems","Windows","%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,3072,1024 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16","Reg_expand_sz")
WriteValue ("System\CurrentcontrolSet\Control\Session manager\memory management","clearpagefileatshutdown","0","reg_dword")
WriteValue ("System\CurrentcontrolSet\Control\Session manager\memory management","pagingfiles","c:\pagefile.sys 200 200","Reg_multi_sz")
; Setting the Computers local time
Settime "\\jnbmerdc1"
; Setting the H: & P:
Use h: "\\@homeshr"
Use p: "\\jnbmerdc1\public"
; Saving & clearing the event logs
md c:\winnt\eventlogs
backupeventlog( "application" , "c:\winnt\eventlogs\application01.evt")
backupeventlog( "system","c:\winnt\eventlogs\system01.evt")
; Calling SMSLS.bat
Shell @ldrive + "\smsls.bat
Thanks in advance
------------------