#45817 - 2003-09-22 08:52 PM
adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
Ok, today is an especially moronic day for me.
This is what we have done. We have created a .reg file to copy a certain amount of entries into the registry of our W2K workstations to point to a spcific server so we can automatically apply patches to workstations. So what I have done is I created a small batch file that has the following command in it
regedit.exe /s sus.reg. The batch file and the sus.reg file exist on a network share.
I know there are not any permissions issues as we are already copying files to the workstation from the shared directory.
So the command from the login script is : shell "P:\sus.bat". This is not rocket science, but the script will just not run. Yet, if I execute the bat file from the network share manually without the login script, it copies in the registry entries. HELP !
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU]
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU] "RescheduleWaitTime"=dword:15 "NoAutoRebootWithLoggedOnUsers"=dword:1 "NoAutoUpdate"=dword:0 "AUOptions"=dword:4 "ScheduledInstallDay"=dword:0 "ScheduledInstallTime"=dword:15 "UseWUServer"=dword:1
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate] "WUServer"="http://srv015" "WUStatusServer"="http://srv015"
|
|
Top
|
|
|
|
#45820 - 2003-09-22 09:21 PM
Re: adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
I tried that already ....No go. That is what is frustrating the daylights out of me. I see nothing wrong with the script.
I have tried to add all the registry keys manually, using SAVEKEY, ADDKEY and WRITEVALUE commands. I have tried adding the keys with your suggestion and I have tried adding the keys through the patch file.
The only thing that I can this of is that this KEY does not exist
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\]
|
|
Top
|
|
|
|
#45822 - 2003-09-22 09:29 PM
Re: adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
My bad Sea Leopard ..I was in the middle of typing my reply to the first suggestion and did not see your response. I do have local admin rights as well as domain admin rights ... I am not familiar with the Admin Scripts ...
|
|
Top
|
|
|
|
#45824 - 2003-09-22 09:35 PM
Re: adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
We're running KIX 3.61 . I take it this functionality is not available in this version
|
|
Top
|
|
|
|
#45826 - 2003-09-22 09:46 PM
Re: adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
Like I said, I'm having a day and a half .... Usually mention version when I post ... I'm officially going to leave this alone for today .... Fresh mind usually makes for results
|
|
Top
|
|
|
|
#45827 - 2003-09-23 07:42 PM
Re: adding .reg to login script
|
Glenn H
Fresh Scripter
Registered: 2003-09-15
Posts: 12
|
Uh, the issue was I was called the wrong login script. Welcome to the world of production / live testing
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 699 anonymous users online.
|
|
|