Last active
January 3, 2017 19:54
-
-
Save merrua/243b65f985385cc461b783e6d1ece766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ver - returns the version | |
| systeminfo - returns lots of useful information (including service pack) | |
| wmic - built in tool for windows management. exit to leave | |
| netsh /? - network configuration | |
| fd - file comparison (diff for windows) | |
| tracert -h 90 bad.horse | |
| ## System Variables | |
| These have their values assigned by the system. | |
| Some work in windows search (temp, appdata, homedrive for example) | |
| %ALLUSERSPROFILE% (allusersprofile) Locally Returns the location of the All Users configuration file. | |
| %APPDATA% (appdata) Locally Returns the location of the application where the data is stored by default | |
| %CD% (cd) Returns the current directory string locally. | |
| %CMDCMDLINE% (cmdcmdline) Locally returns the exact command line used to start the current Cmd.ex | |
| %CMDEXTVERSION% (cmdextversion) The system returns the current version of the Command Handler Extension. | |
| %COMPUTERNAME% (computername) The system returns the name of the computer. | |
| %COMSPEC% (comspec) The system returns the exact path of the command-line interpreter executable. | |
| %DATE% The system returns the current date. | |
| %ERRORLEVEL% (errorlevel) | |
| %HOMEDRIVE% (homedrive) | |
| %HOMEPATH% (homepath) The system returns the full path to the user's home directory. | |
| %HOMESHARE% (homeshare) The system returns the user's shared home directory's network path. | |
| %LOGONSERVER% (logonserver) Local Returns the name of the domain controller that validates the current logon sessio | |
| %NUMBER_OF_PROCESSORS% (number_of_processors) (if its a vm expect 1) | |
| %OS% (os) | |
| %PATH% (path) | |
| %PATHEXT% (pathext) The system returns a list of file extensions that the operating system considers executable. | |
| %PROCESSOR_ARCHITECTURE% (processor_architecture) The system returns the chip architecture of the processor. | |
| %PROCESSOR_IDENTFIER% (processor_identfier) The system returns the processor description. | |
| %PROCESSOR_LEVEL% (processor_level) The system returns the model of the processor installed on the computer. | |
| %PROCESSOR_REVISION% (processor_revision) The system returns the processor's version number. | |
| %PROMPT% (prompt) Locally returns the command prompt setting | |
| %RANDOM% The system returns an arbitrary decimal number between 0 and 32767 (int). | |
| %SYSTEMDRIVE% (systemdrive) The system returns the drive that contains the root directory. | |
| %SYSTEMROOT% (systemroot) The system returns the location of the root directory. | |
| %TEMP% (temp) The system returns the temp folder path. | |
| %TIME% The system returns the current time. Use the same format as the time / t command. Generated by Cmd.exe. | |
| %USERDOMAIN% (userdomain) Local Returns the name of the domain that contains the user account. | |
| %USERNAME% (username) Returns the name of the currently logged-in user. | |
| %USERPROFILE% (userprofile) Locally Returns the location of the current user's configuration file. | |
| %WINDIR% (windir) The system returns the location of the operating system directory. C: WINDOWS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment