answersLogoWhite

0

WARNING: The following answer contains information related to the Windows registry. You use this information entirely at your own risk!

The "automatic" option is stored in the Windows registry, here:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update

The AUOptions value has the following settings:

0x00000001 (1): Never check for updates (not recommended)

0x00000002 (2): Check for updates but let me choose whether to download and install them

0x00000003 (3): Download updates but let me choose whether to install them

0x00000004 (4): Install updates automatically (recommended)

The CachedAUOptions value must match the AUOptionsvalue. Both values are REG_DWORD values. To switch to automatic updates, change both values to 0x00000004 (4).

To silently switch to automatic updates via batch file, first create the following REG file (or ECHO it to a temporary file from within your batch file):

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]

"AUOptions"=dword:00000004

"CachedAUOptions"=dword:00000004

Within your batch file execute the following command:

reg import

Replace with the full path and file name of your saved REG file. If you ECHO'd a temporary file, remember to delete the temporary file when you are finished importing.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

How do you send commands to a command-line EXE program from a batch?

Just put the commands in your batch file. When someone runs the program, it will execute the commands it comes across line-by-line. - Example Batch Script: This script will run an application EXE file with command line parameters. This will use the shutdown.exe file that comes with windows. It shuts down the computer in 60 seconds. @shutdown -s -t 60 - You could also use the START command. For any command or exe file that runs from the command line, you could open a command prompt and type the name of the file followed by /? to find out what you can use as command parameters. Example: START /?


How do you run batch file for xp pro that starts every time the computer starts and runs this in command prompt ROUTE ADD 192.168.17.0 MASK 255.255.255.0 192.168.1.2 -p?

To run a batch script automatically every time the computer starts, schedule it in Task Scheduler.


How does batch file work?

batch files are used to make long tasks shorter. for example, If I wanted to change the file extension of every file in the folder EXAMPLEFOLDER from .txt to .doc, I could make a batch file that did that instantly, rather than going into the properties of every file and changing the extension manually


What data type does the main function return in c?

The main function must return the int data type. A program that terminates normally should return the value zero to indicate no error. Not all execution environments make use of the return value (Windows in particular), however a command script or batch file can examine the ERRORLEVEL if required.


How do you name a batch program?

Assuming you mean a shell script (AKA batch file), you simply add a .bat as the extension to any plaintext file. There is no limitation for the actual filename aside from this (except for regularly unallowed charachters like > and /). For instance, if you wanted to name your batch file hello world, you would open up a new notepad document, enter your code, then save as File Name: hello world.bat and change the Save as Type: All Files. Windows automatically recognizes any file with the .bat extension as an executable batch file, so to run it, you would just double-click it like any other document or file. To edit the batch file again, you can right click it and select Edit, or use notepad to open it from its respective location. Hope that answers your question.

Related Questions

Can one make a batch script to set Windows Updates to automatic?

Yes, you can create a batch script to set Windows Updates to automatic by using the Windows Command Line tool sc to modify the Windows Update service settings. The script can include commands to start the Windows Update service and configure it to start automatically. However, administrative privileges are required to execute these changes, so the script should be run as an administrator. Additionally, modifications to the Windows Update settings can also be done through Group Policy or the Windows Registry for more advanced configurations.


Are Linux script files the same as Windows dos batch files?

More or less.


What is the full form of BAT?

if by bat you made the .bat file extension then the full form of bat is batch. it is a file that is created with batch script, the windows command line.


What do you call a little program made from batch file?

A Batch Script


What is coding system what are the different types of coding system?

a system of coding, different types are batch,vb script, Html, are all on the computer if you have windows


What is scripting in Linux?

"Shell Script is series of command written in plain text file. Shell script is just like batch file in MS-DOS but have more power than the MS-DOS batch file."


Where can one find examples of batch scripts?

Wiki Books has information about batch scripts and examples. Network Automation has downloads to help with batch scripts. There are sample batch script files at Rovander Woude that would be helpful.


What is the bat file extension called?

.bat indicates a batch file, which is a script. You can see what it contains by opening it with a text editor, such as notepad.


What are batch files?

Batch files are text files containing a series of commands to execute set of commands or run programs in a sequence. Batch files are like a script which, instead of entering and running individual commands are useful in saving time and executing programs even when computer user is not present. Batch files are useful for repetitive tasks (you do not need to enter all the commands every time you repeat the task). MS-DOS and Windows batch files end with .bat extension.


Can I have a running batch file continue in another batch file but have it running in the same spot as it was before just moving it in windows 7?

You can have a running batch file continue in another batch file but have it running in the same spot as it was before moving in Windows 7 if it is configured properly. Batch files are designed to perform simple operations based on user input.


How do you get rid of 1000 windows?

To get rid of 1,000 windows, you can either uninstall them individually from your operating system or use a batch script to automate the process. If the windows are part of a software application, you might consider resetting or reinstalling that application. Alternatively, if they are browser windows, closing the browser or using task manager to end the process can help. Always ensure you save any important work before proceeding with these methods.


What is the batch file used by Windows 98 to control the boot process?

Autoexec.batAutoexec.batAutoexec.bat