Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

No exe's or gpdate will run on Server 2003

Status
Not open for further replies.

jonoman123

Technical User
Nov 13, 2003
25
US
I've got a weird new problem. Two of theses servers existed for some time, and one is new. Server 2003 R2.

On all three, we cannot run gpudate in CMD prompt. WSUS was working before on the other two. On this 3rd new one, WSUS hasn't even hit it yet because it can't run the gpudate.

I cannot run any setup files or executables from any shared or network resources. Only way I can install anything to copy and run it from the desktop.

All 3 of these were built from scratch, not images. What are we missing?
 
Your question is somewhat broad, have you looked at the event logs and is there any error codes?
 
what happens if you run %systemroot%\system32\gpupdate.exe
are you logged in as administrator and do you have correct permissions on the shares?

Manually setup WSUS
One way of setting up WSUS [vbscript]
or use gpedit.msc which is a better choice here.

Click Start, Run.
gpedit.msc
Expand Computer Configuration
Right-click Administrative Templates
click Add/Remove Templates.
Click Add
click Wuau.adm in the Windows\Inf folder, and then click Open.
Click Close.
Under Computer Configuration, expand Administrative Templates, expand Windows Components, and then expand Windows Update.

Code:
Dim Wshshell

Set WSHShell = CreateObject("WScript.Shell")

'WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer", "[URL unfurl="true"]http://ServerName:8530",[/URL] "REG_SZ"
'WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer", "[URL unfurl="true"]http://ServerName:8530",[/URL] "REG_SZ"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\AUOptions", 3, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\AutoInstallMinorUpdates",1, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\DetectionFrequency",22, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\DetectionFrequencyEnabled",1, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate",0, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\RebootWarningTimeout",5, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\RebootWarningTimeoutEnabled",1, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\RescheduleWaitTime",1, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\RescheduleWaitTimeEnabled",1, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallDay",0, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\ScheduledInstallTime",3, "REG_DWORD"
WshShell.Regwrite "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer",1, "REG_DWORD"

Set Wshshell = nothing

Force WSUS detection

Code:
@echo off
Echo This batch file will Force the Update Detection from the AU client:
Echo 1. Stops the Automatic Updates Service (wuauserv)
Echo 2. Deletes the LastWaitTimeout registry key (if it exists)
Echo 3. Deletes the DetectionStartTime registry key (if it exists)
Echo 4. Deletes the NextDetectionTime registry key (if it exists)
Echo 5. Restart the Automatic Updates Service (wuauserv)
Echo 6. Force the detection
Pause
@echo on
net stop wuauserv
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v LastWaitTimeout /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v DetectionStartTime /f
Reg Delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v NextDetectionTime /f
net start wuauserv
wuauclt /detectnow
@echo off
Echo This AU client will now check for the Updates on the Local WSUS Server.
Pause

MCITP:EA/SA, MCSE, MCSA, MCDBA, MCTS, MCP+I, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top