Customers  |  Allies  |  Links  |  Tools

 

 

Network Administration

Axport AD Users:

csvde -f c:\users.txt -r "(&(objectCategory=user)(proxyAddresses=*))"

 

Description of the Shutdown.exe Tool

Shutdown.exe uses the following syntax:
shutdown \\computername /l /a /r /t:xx "msg" /y /c
You can use the following switches with Shutdown.exe:
\\computername: Use this switch to specify the remote computer to shut down. If you omit this parameter, the local computer name is used.
/l (Note that this is a lowercase "L" character): Use this switch to shut down the local computer
/a: Use this switch to quit a shutdown operation. You can do this only during the time-out period. If you use this switch, all other parameters are ignored.
/r: Use this switch to restart the computer instead of fully shutting it down.
/t:xx: Use this switch to specify the time (in seconds) after which the computer is shut down. The default is 20 seconds.
"msg": Use this switch to specify a message during the shutdown process. The maximum number of characters that the message can contain is 127.
/y: Use this switch to force a "yes" answer to all queries from the computer.
/c: Use this switch quit all running programs. If you use this switch, Windows forces all programs that are running to quit. The option to save any data that may have changed is ignored. This can result in data loss in any programs for which data is not previously saved.

Examples

To shut down the local computer in two minutes and display a "The computer is shutting down" message, use the following line in a batch file or type it at a command prompt, and then press ENTER:
shutdown /l /t:120 "The computer is shutting down" /y /c
To cancel the shutdown process, type the following line at the command prompt, and then press ENTER:
shutdown /l /a /y
To shut down and restart a remote computer named "Support," use the following line in a batch file or type it at a command prompt, and then press ENTER:
shutdown \\support /r
To schedule the local computer to shutdown and restart at 10:00 P.M., type the following line at a command prompt, and then press ENTER:
at 22:00 shutdown /l /r /y /c
To schedule the local computer to shutdown and restart at 6:00 P.M. every weekday, type the following line at a command prompt, and then press ENTER:
at 18:00 /every:M,T,W,Th,F shutdown /l /r /y /c

 

Print Directory List

dir /a "C:\Program Files\xorb\" > C:\dirlist.txt

 

Boot Screen

You can change the Windows 2003 and XP startup screens to display any 16-color, 640x480 bitmap image. Simply create the bitmap and save it as boot.bmp in the \%systemroot% folder (e.g., C:\windows). Then modify the boot.ini file as follows:

  1. Open a command line (Start, Run, cmd.exe).
  2. Navigate to the C:\ root directory.
  3. Modify the boot.ini file to be writable, by running this command:
    attrib boot.ini -r -s -h  
  4. Edit the boot.ini file in Notepad by running the command
    notepad boot.ini
  5. Add the /bootlogo switch and the /noguiboot switch, as the example below shows:
      [boot loader]    

    timeout=30

    default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

    [operating systems]

    multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Enterprise" /fastdetect /bootlogo /noguiboot

    If you don't add the /noguiboot switch, the standard Windows 2003 logo will be overlaid on your custom image.

  6. Save the file, then reset the boot.ini attributes by running the command
      attrib boot.ini +r +s +h