Run WMIC in non-interactive mode

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To run WMIC in non-interactive mode

  1. Open Command prompt.

  2. At the command prompt, type:

    WMIC

    and the command, aliases, or global switches, you want WMIC to perform.

  3. Press ENTER.

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure.

  • To open the command prompt window, click Start, point to All Programs, point to Accessories, and then click Command Prompt.

  • In non-interactive mode, WMIC returns you to the command prompt after executing the command.

  • For more information about the WMIC commands, type WMIC /? at the command prompt.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Running Windows Management Instrumentation Command-line
WMIC verbs
Security with WMIC