| Windows 7: is there a command line to force to check up for update |
07 Apr 2010
|
#1 | | |
is there a command line to force to check up for update Hi
is there a command line to force windows 7 to check for updates?
i know it checks ever day for update while xp at every boot
well is there a command line to run in the start menu or schedule to force windows7 to check?
i know i can click on the update module to perform an immediately check
but i'm looking for a command line , or the name of program (exe) that start to check up
thanks
best regards | My System Specs |
| OS windows 7 ultimate 32bit |
07 Apr 2010
|
#2 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
To start Windows Update application from command line: Code: C:\Windows\system32\wuapp.exe
OR
%windir%\system32\wuapp.exe Notice: this only opens the update application and checks available updates. It does not install them.
To install important updates automatically from command line: Code: C:\Windows\system32\wuauclt.exe /detectnow
OR
%windir%\system32\wuauclt.exe /detectnow Automatic updates must be enabled in order to be able to use this command.
Kari
Last edited by Kari; 07 Apr 2010 at 05:37 AM..
| My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
07 Apr 2010
|
#3 | | |

Quote: Originally Posted by Kari To start Windows Update application from command line: Code: C:\Windows\system32\wuapp.exe
OR
%windir%\system32\wuapp.exe To install important updates automatically from command line: Code: C:\Windows\system32\wuauclt.exe /detectnow
OR
%windir%\system32\wuauclt.exe /detectnow Automatic updates must be enabled in order to be able to use this command.
Kari thanks
but this opens the windows update window
it doesn't check for new updates! Quote: C:\Windows\system32\wuapp.exe OR
%windir%\system32\wuapp.exe i have this settings | My System Specs | | OS windows 7 ultimate 32bit |
07 Apr 2010
|
#4 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |

Quote: Originally Posted by drugo thanks
but this opens the windows update window
it doesn't check for new updates! Quote: C:\Windows\system32\wuapp.exe OR
%windir%\system32\wuapp.exe i have this settings Yes it checks if there are any updates available. It does not install them.
You setting should be enough for command line automatic update to work.
Kari | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
07 Apr 2010
|
#5 | | Windows XP - Now Windows 7 Home Premium (64-bit). |
May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI. | My System Specs | | OS Windows XP - Now Windows 7 Home Premium (64-bit). |
07 Apr 2010
|
#6 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |

Quote: Originally Posted by manhunter2826 May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI. I want that all important updates are installed as soon as they are available. That's why I have a batch file in all of my Vista and Seven machines (real and virtual ones) that I can launch when I want to shut down the computer, first checking available important updates and installing them. Doing this I know my systems are always updated.
I've placed a shortcut on desktop, and most often instead of choosing Shutdown from Start Menu, I just double click this shortcut to shut down the machine.
The batchfile: Code: %windir%\system32\wuauclt.exe /detectnow
shutdown -s (this checks if important updates are available, and installs them if answer was yes, shutting then computer down first closing all apps)
Kari | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
07 Apr 2010
|
#7 | | Windows XP - Now Windows 7 Home Premium (64-bit). |
^Thanks kindly Kari, very useful info and your script | My System Specs | | OS Windows XP - Now Windows 7 Home Premium (64-bit). |
07 Apr 2010
|
#8 | | |

Quote: Originally Posted by Kari 
Quote: Originally Posted by manhunter2826 May I ask: any particular reason as to why? Is there a difference by checking/installing via the GUI. I want that all important updates are installed as soon as they are available. That's why I have a batch file in all of my Vista and Seven machines (real and virtual ones) that I can launch when I want to shut down the computer, first checking available important updates and installing them. Doing this I know my systems are always updated.
I've placed a shortcut on desktop, and most often instead of choosing Shutdown from Start Menu, I just double click this shortcut to shut down the machine.
The batchfile: Code: %windir%\system32\wuauclt.exe /detectnow
shutdown -s (this checks if important updates are available, and installs them if answer was yes, shutting then computer down first closing all apps)
Kari you can run this
this checks for update at every boot | My System Specs | | OS windows 7 ultimate 32bit |
07 Apr 2010
|
#9 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |

Quote: Originally Posted by drugo you can run this
this checks for update at every boot I understood from your original question you didn't know how to do that. That's why I posted those batch files.
Your attached file modifies registry, and does check the updates when machine is booted.
I do not want to add something to my registry, and I do not want to check updates when booting because installing updates most often requires a shut down or reboot. My method is IMO more practical because you'll run it when shutting down, and there's no registry editing involved.
Kari | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) is there a command line to force to check up for update problems? All times are GMT -5. The time now is 11:20 PM. | |