Using Rundll32 For Administrative Functions |
(Windows NT/2000/XP Only)
|
rundll32.exe
, a command-line
utility that lets you execute some DLL functions.Administrative Function | DLL | Code |
Launch Internet Explorer to a specific web site | url.dll |
set the hideConsoleWindows to true
|
Add a printer to a local computer by starting the Add Printer Wizard | printui.dll |
set the hideConsoleWindows to true
|
Add a printer to a remote computer by starting the Add Printer Wizard Note: The example is for a printer called "LJ4100DTNPS" on the server volume "MyServer"). Note that it is the "real" name of the printer that is used, not the "friendly name" (like "HP LaserJet 4100 PS"). |
printui.dll |
set the hideConsoleWindows to true
|
Add printer port for attached TCP/IP printers by starting the Add TCP/IP Printer Port Wizard | tcpmonui.dll |
set the hideConsoleWindows to true
|
Start the Network Identification Wizard | netplwiz.dll |
set the hideConsoleWindows to true
|
Start the Network Place Wizard | netplwiz.dll |
set the hideConsoleWindows to true
|
Create a new shared folder by launching the New Share dialog box | ntlanui.dll |
set the hideConsoleWindows to true
|
Manage network shares by launching the Shared Directories dialog box | ntlanui.dll |
set the hideConsoleWindows to true
|
Launch Device Manager | devmgr.dll |
set the hideConsoleWindows to true
|
Lock your workstation | user32.dll |
set the hideConsoleWindows to true
|
Automatically log off a user or shut down your machine | shell32.dll |
set the hideConsoleWindows to true
|