Home > Commands A-M > Batch G

GETTYPE


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Sets the system environment variable %ERRORLEVEL% to the value associated with the specified Windows operating system.


Syntax

GETTYPE /?

GETTYPE [/s computer [/u [Domain\]User [/p [password]]]] [/build | /majv | /minv | /role | /sp | /type | /ver]


Parameters

none.


Switches
/? (NT2003)
Displays help.
/build (NT2003)
Returns the build number of the operating system that is installed.
/majv (NT2003)
Returns only major version.
/minv (NT2003)
Returns only minor version.
/p [password] (NT2003)
Specifies the password of the user account that is specified in /u.
/role (NT2003)
Returns the role of the operating system.
Determined by querying the registry:
/s computer (NT2003)
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/sp (NT2003)
Returns the latest service pack installed.
/type (NT2003)
Returns the type of operating system that is installed.
Determined by querying the registry:
/u [Domain\]User (NT2003)
Runs the command with the account permissions of the user specified by User or Domain\User. The default is the system permissions.
/ver (NT2003)
Returns version information.

Related

none.


Notes

none.


Examples

none.


Errorlevels
Availability
External
DOS
none
Windows
none
Windows NT
NT2003