text stringlengths 0 4.23k |
|---|
/Mq[message] |
Displays a confirmation message to the user before committing the changes specified in the command line. |
/W[flags] |
Specifies any parameters or options for the add printer wizard, the add printer Driver Wizard, and the Network printer Installation Wizard.r: Enables the wizards to be restarted from the last page. |
/G[flags] |
Specifies global parameters and options that you want to use.w: Suppresses setup driver warnings to the user. |
r: Enables the wizards to be restarted from the last page. |
w: Suppresses setup driver warnings to the user. |
Remarks |
The PrintUIEntry keyword is case sensitive, and you must enter the syntax for this command with the exact capitalization shown in the examples in this topic. |
For more examples, at a command prompt type: rundll32 printui.dll,PrintUIEntry /? |
Examples |
To add a new remote printer, printer1, for a computer, Client1, which is visible for the user account where this command is run, type: |
rundll32 printui.dll PrintUIEntry /in /n\\client1\printer1 |
To add a printer using the add printer wizard and using an .inf file, InfFile.inf, located on drive c: at Infpath, type: |
rundll32 printui.dll PrintUIEntry /ii /f c:\Infpath\InfFile.inf |
To delete an existing printer, printer1, on a computer, Client1, type: |
rundll32 printui.dll PrintUIEntry /dn /n\\client1\printer1 |
To add a per computer printer connection, printer2, for all users of a computer, Client2, type (the connection will be applied when a user logs on): |
rundll32 printui.dll PrintUIEntry /ga /n\\client2\printer2 |
To delete a per computer printer connection, printer2, for all users of a computer, Client2, type (the connection will be deleted when a user logs on): |
rundll32 printui.dll PrintUIEntry /gd /n\\client2\printer2 |
To view the properties of the print server, printServer1, type: |
rundll32 printui.dll PrintUIEntry /s /t1 /c\\printserver1 |
To view the properties of a printer, printer3, type: |
rundll32 printui.dll PrintUIEntry /p /n\\printer3 |
rundll32 |
Loads and runs 32-bit dynamic-link libraries (DLLs). There are no configurable settings for Rundll32. Help information is provided for a specific DLL you run with the rundll32 command. |
You must run the rundll32 command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator. |
Syntax |
rundll32 <DLLname> |
Parameters |
Parameter |
Description |
Rundll32 printui.dll,PrintUIEntry |
Displays the printer user interface. |
Remarks |
Rundll32 can only call functions from a DLL explicitly written to be called by Rundll32. |
rwinsta |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Resets (deletes) a session on a Remote Desktop Session Host server. |
Note |
This command is the same as the reset session command. |
Note |
To find out what's new in the latest version, see What's New in Remote Desktop Services in Windows Server. |
san |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Displays or sets the storage area network (san) policy for the operating system. If used without parameters, the current san policy is displayed. |
Syntax |
san [policy={onlineAll | offlineAll | offlineShared}] [noerr] |
Parameters |
Parameter |
Description |
policy={onlineAll|offlineAll|offlineShared}] |
Sets the san policy for the currently booted operating system. The san policy determines whether a newly discovered disk is brought online or remains offline, and whether it becomes read/write or remains read-only. When a disk is offline, the disk layout can be read, but no volume devices are surfaced through Plug and Play. When offline no file system can be mounted on the disk. When a disk is online, one or more volume devices are installed for the disk. The following parameter can be set:onlineAll. Specifies that all newly discovered disks are online and made read/write. IMPORTANT: Specifying onlineAll on a server that shares disks could lead to data corruption. Therefore, you shouldn't set this policy if disks are shared among servers unless the server is part of a cluster.offlineAll. Specifies that all newly discovered disks except the startup disk are offline and read-only by default.offlineShared. Specifies that all newly discovered disks that don't reside on a shared bus (such as SCSI and iSCSI) are brought online and made read-write. Disks that are left offline are read-only by default.For more information, see VDS_san_POLICY Enumeration. |
noerr |
Used for scripting only. When an error is encountered, DiskPart continues to process commands as if the error didn't occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To view the current policy, type: |
san |
To make all newly discovered disks, except the startup disk, offline and read-only by default, type: |
san policy=offlineAll |
sc.exe config |
Modifies the value of a service's entries in the registry and in the Service Control Manager database. |
Syntax |
sc.exe [<servername>] config [<servicename>] [type= {own | share | kernel | filesys | rec | adapt | interact type= {own | share}}] [start= {boot | system | auto | demand | disabled | delayed-auto}] [error= {normal | severe | critical | ignore}] [binpath= <binarypathname>] [group= <loadordergroup>] [tag= {yes | no}] [depend= <dependencies>] [obj= {<accountname> | <objectname>}] [displayname= <displayname>] [password= <password>] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.