text
stringlengths
0
4.23k
/fqdn
Displays the user name in fully qualified domain name (FQDN) format.
/logonid
Displays the logon ID of the current user.
/user
Displays the current domain and user name and the security identifier (SID).
/groups
Displays the user groups to which the current user belongs.
/priv
Displays the security privileges of the current user.
/fo <Format>
Specifies the output format. Valid values include:table Displays output in a table. This is the default value.list Displays output in a list.csv Displays output in comma-separated value (CSV) format.
/all
Displays all information in the current access token, including the current user name, security identifiers (SID), privileges, and groups that the current user belongs to.
/nh
Specifies that the column header should not be displayed in the output. This is valid only for table and CSV formats.
/?
Displays help at the command prompt.
Examples
To display the domain and user name of the person who is currently logged on to this computer, type:
whoami
Output similar to the following appears:
DOMAIN1\administrator
To display all of the information in the current access token, type:
whoami /all
winnt
Applies to: Windows Server (All supported versions)
The winnt command is deprecated and might not be supported in future releases of Windows.
This tool is included in Windows Server 2003. For more information, see Winnt
winnt32
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Performs an installation of or upgrade to a product in Windows Server 2003. You can run winnt32 at the command prompt on a computer running Windows 95, Windows 98, Windows Millennium edition, Windows NT, Windows 2000, Windows XP, or a product in the Windows Server 2003. If you run winnt32 on a computer running Windows NT version 4.0, you must first apply Service Pack 5 or later.
Syntax
winnt32 [/checkupgradeonly] [/cmd: <CommandLine>] [/cmdcons] [/copydir:{i386|ia64}\<FolderName>] [/copysource: <FolderName>] [/debug[<Level>]:[ <FileName>]] [/dudisable] [/duprepare: <pathName>] [/dushare: <pathName>] [/emsport:{com1|com2|usebiossettings|off}] [/emsbaudrate: <BaudRate>] [/m: <FolderName>] [/makelocalsource] [/noreboot] [/s: <Sourcepath>] [/syspart: <DriveLetter>] [/tempdrive: <DriveLetter>] [/udf: <ID>[,<UDB_File>]] [/unattend[<Num>]:[ <AnswerFile>]]
Parameters
Parameter
Description
/checkupgradeonly
Checks your computer for upgrade compatibility with products in Windows Server 2003.if you use this option with /unattend, no user input is required. Otherwise, the results are displayed on the screen, and you can save them under the file name you specify. The default file name is upgrade.txt in the systemroot folder.
/cmd
Instructs setup to carry out a specific command before the final phase of setup. This occurs after your computer has restarted and after setup has collected the necessary configuration information, but before setup is complete.
<CommandLine>
Specifies the commandline to be carried out before the final phase of setup.
/cmdcons
On an x86-based computer, installs the recovery Console as a startup option. The recovery Console is a command-line interface from which you can perform tasks such as starting and stopping services and accessing the local drive (including drives formatted with NTFS). You can only use the /cmdcons option after setup is finished.
/copydir
creates an additional folder within the folder in which the operating system files are installed. for example, for x86 and x64-based computers, you could create a folder called Private_drivers within the i386 source folder for your installation, and place driver files in the folder. type /copydir:i386\Private_drivers to have setup copy that folder to your newly installed computer, making the new folder location systemroot\Private_drivers.- i386 specifies i386- ia64 specifies ia64You can use /copydir to create as many additional folders as you want.
<FolderName>
Specifies the folder that you created to hold modifications for your site.
/copysource
creates a temporary additional folder within the folder in which the operating system files are installed. You can use /copysource to create as many additional folders as you want.Unlike the folders /copydir creates, /copysource folders are deleted after Setup completes.
/debug
creates a debug log at the level specified, for example, /debug4:Debug.log. The default log file is C:\ systemroot\winnt32.log, and
<level>
Level Values and descriptions- 0: Severe Errors- 1: Errors- 2: Default level. Warnings- 3: Information- 4: detailed information for debuggingEach level includes the levels below it.
/dudisable