Talk:Unified Support Technician Guide to Utility Easy Access via the Windows Command Shell

From Free Knowledge Base- The DUCK Project: information for everyone
Revision as of 12:42, 14 November 2017 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Windows 7 Update stuck in preparing to install (Windows Update)

  1. Click Start, Run, type: cmd. Right click the Program Menu entry that appear and select “Run as Administrator”. Press Enter. Run the following command in the opened window: Net stop WuAuServ
  2. Wait for the process to finish.
  3. Click Start, Run, type: %windir% and press Enter.
  4. In the opened folder, rename the folder SoftwareDistribution to SoftwareDistributionOLD
  5. Click Start, Run, type: cmd. Right click the Program Menu entry that appear and select “Run as Administrator”. Press Enter. Run the following command in the opened window: Net start WuAuServ
  6. Wait for the process to finish.
  7. Reboot.

See also: "Windows Update stuck at 0% - Wont Download Updates" in this Wiki

windows shutdown command

The following major commands are provided

   shutdown /a -- This command stops a shut down or reboot process. Can be useful if Windows Update decided that it is time to reboot the PC, or if your actions or other programs started the process.
   shutdown /s -- The shutdown command. This shuts down the computer when you run it.
   shutdown /r -- Shuts down the computer, and restarts it afterwards.
   shutdown /g -- Like shutdown /r, but will restart any registered program when the system has loaded.
   shutdown /h -- Hibernates the local computer.
   shutdown /l -- Logs off the current user.
   shutdown /p -- Turns the computer off without prior warnings. Equals running shutdown /s /f /t 0
   /e -- This enables documentation for the shutdown of the computer.
   /i -- Show the graphics user interface. Must be the first option of the command, and all other switches are ignored (as the graphical user interface is loaded).
   /hybrid -- Shuts the computer down, and enables Fast Startup. Must be used with /s
   /t 0 -- Sets the timeout period before the shutdown. The default is 30 seconds, and you may speed things up by setting /t 0.
   /f -- Forces running programs to terminate without user warning.  Also /force.
   /m \\computer -- Specify a remote computer that you want to run the command on.
   /c "remark" -- Adds a comment that explains the reason for the shutdown or restart of the computer. Supports a maximum of 512 characters, and is displayed on the shutdown prompt.
   /d -- Adds a reason for the restart using a system of codes. Basically, /d p:1:2 indicates a planned shutdown because of a hardware installation, while /d u:1:2 a user defined shutdown because of a hardware installation. You can leave out p and u to set an unplanned reason for the shutdown. The table with major and minor reasons is displayed when you run shutdown /?.
   /o -- This command restarts the PC and loads the Advanced Boot Menu on the next start. Needs to be run with /r