Microsoft Windows Command code

Discussion in 'Operating Systems' started by Valentin N, Sep 20, 2011.

  1. Valentin N

    Valentin N New Member

    Feb 25, 2011
    I though that we all could share important and useful commands in run/start menu. We should also say what they do and how what they are goeverod for.

    In order to make the commands clear don't add any text or comments, just codes and what they have for function; this way we will only see the code and keep everything nice and clear :) If something is wrong or added text needs to be added please send PMs.

    Since not all commands won't work on all versions of Windows, please add which verison they won't work in [version of the windows e.g Windows 64bit Home Premium]

    Make sure to backup your system before you begin to explore and change settings.

    msconfig - you are able to make change that might speed up your computer. Here you can disable startups as well as services.

    services.msc - You are able to check what servcies you have and decide if they should start manually, automatically or you simply disable the wanted services, e.g windows firewall can be disable as well as windows defender if you have other security suit

    An advanced tool for viewing and changing settings in your system registry, which contains information about how your computer runs.

    Group Policy is a set of rules which control the working environment of user accounts and computer accounts.
    Saurav007, mehdi.n and mc anzures like this.
  2. Spawn

    Spawn Administrator
    Staff Member Content Creator

    Jan 8, 2011
    Make sure you backup your system before using these advanced tools part of Windows.

    Registry Editor

    - An advanced tool for viewing and changing settings in your system registry, which contains information about how your computer runs.

    Local Group Policy Editor

    - Group Policy is a set of rules which control the working environment of user accounts and computer accounts.

    Limited to:[hr]
    Correct me if I'm wrong via PM. To respect the OP thread wishes, please post with useful information in a presentable way. Thanks. :D
    rockstarrocks and Andytay70 like this.
  3. jamescv7

    jamescv7 Level 61

    Mar 15, 2011
    Web and FileMaker Developer
    Windows 10
    devmgmt.msc- It allows users to view and control the hardware attached to the computer.

    chkdsk- is a command on computers running DOS, OS/2 and Microsoft Windows operating systems that displays the file system integrity status of hard disks and floppy disk and can fix logical file system errors.

    System File Checker Utility (Scan Immediately)	sfc /scannow
    System File Checker Utility (Scan Once At The Next Boot)	sfc /scanonce
    System File Checker Utility (Scan On Every Boot)	sfc /scanboot
    System File Checker Utility (Return Scan Setting To Default)	sfc /revert
    System File Checker Utility (Purge File Cache)	sfc /purgecache
    System File Checker Utility (Sets Cache Size to size x)	sfc /cachesize=x
    rockstarrocks, Andytay70 and mehdi.n like this.
  4. pcjunklist

    pcjunklist Level 1

    Dec 28, 2011
    Windows logo key + R

    Administrative Tools

    Authorization Manager = azman.msc
    Component Services = dcomcnfg
    Certificate Manager = certmgr.msc
    Direct X Troubleshooter = dxdiag
    Display Languages = lpksetup
    ODBC Data Source Administrator = odbcad32
    File Signature Verification Tool = sigverif
    Group Policy Editor = gpedit.msc
    Add Hardware Wizard = hdwwiz.cpl
    iSCSI Initiator = iscsicpl
    Iexpress Wizard = iexpress
    Local Security Settings = secpol.msc
    Microsoft Support Diagnostic Tool = msdt
    Microsoft Management Console = mmc
    Print management = printmanagement.msc
    Printer User Interface = printui
    Problems Steps Recorder = psr
    People Near Me = p2phost
    Registry Editor = regedit or regedt32
    Resoure Monitor = resmon
    System Configuration Utility = msconfig
    Resultant Set of Policy = rsop.msc
    SQL Server Client Configuration = cliconfg
    Task Manager = taskmgr
    Trusted Platform Module = tpm.msc
    TPM Security Hardware = TpmInit
    Windows Remote Assistance = msra
    Windows Share Folder Creation Wizard = shrpubw
    Windows Standalong Update Manager = wusa
    Windows System Security Tool = syskey
    Windows Script Host Settings = wscript
    Windows Version = winver
    Windows Firewall with Advanced Security = wf.msc
    Windows Memory Diagnostic = MdSched
    Windows Malicious Removal Tool = mrt

    Computer Management

    Computer Management = compmgmt.msc or CompMgmtLauncher
    Task Scheduler = control schedtasks
    Event Viewer = eventvwr.msc
    Shared Folders/MMC = fsmgmt.msc
    Local Users and Groups = lusrmgr.msc
    Performance Monitor = perfmon.msc
    Device Manager = devmgmt.msc
    Disk Management = diskmgmt.msc
    Services = services.msc
    Windows Management Infrastructure = wmimgmt.msc

    Conrtol Panel

    Control Panel = control
    Action Center= wscui.cpl
    Autoplay = control.exe /name Microsoft.autoplay
    Backup and Restore = sdclt
    Create a System Repair disc = recdisc
    BDE Administrator = bdeadmin.cpl
    Color Management = colorcpl
    Credential Manager = control.exe /name Microsoft.CredentialManager
    Credential Manager Stored User Names and Passwords = credwiz
    Date and Time Properties = timedate.cpl
    Default Programs = control.exe /name Microsoft.DefaultPrograms
    Set Program Access and Computer Defaults = control appwiz.cpl,,3 or ComputerDefaults
    Devices and Printers = control printers
    Devices and Printers Add a Device = DevicePairingWizard
    Display = dpiscaling
    Screen Resolution = desk.cpl
    Display Color Calibration = dccw
    Cleartype Text Tuner = cttune
    Folders Options = control folders
    Fonts = control fonts
    Getting Started = GettingStarted
    HomeGroup = control.exe /name Microsoft.HomeGroup
    Indexing Options = control.exe /name Microsoft.IndexingOptions
    Internet Properties = inetcpl.cpl
    Keyboard = control keyboard
    Location and Other Sensors = control.exe /name Microsoft.LocationandOtherSensors
    Location Notifications = LocationNotifications
    Mouse = control mouse or main.cpl
    Network and Sharing Center = control.exe /name Microsoft.NetworkandSharingCenter
    Network Connections = control netconnections or ncpa.cpl
    Notification Area Icons = control.exe /name Microsoft.NotificationAreaIcons
    Parental Controls = control.exe /name Microsoft.ParentalControls
    Performance Information = control.exe /name Microsoft.PerformanceInformationandTools
    Personalization = control desktop
    Windows Color and Appearance = control color
    Phone and Modem Options = telephon.cpl
    Power Configuration = powercfg.cpl
    Programs and Features = appwiz.cpl or control appwiz.cpl
    Optional Features Manager = optionalfeatures or control appwiz.cpl,,2
    Recovery = control.exe /name Microsoft.Recovery
    Regional and Language = intl.cpl
    RemoteApp = control.exe /name Microsoft.RemoteAppandDesktopConnections
    Sound = mmsys.cpl
    Volume Mixer = sndvol
    System Properties = sysdm.cpl or Windows logo key + Pause/Break
    SP ComputerName Tab = SystemPropertiesComputerName
    SP Hardware Tab = SystemPropertiesHardware
    SP Advanced Tab = SystemPropertiesAdvanced
    SP Performance = SystemPropertiesPerformance
    SP Data Execution Prevention = SystemPropertiesDataExecutionPrevention
    SP Protection Tab = SystemPropertiesProtection
    SP Remote Tab = SystemPropertiesRemote
    Windows Activation = slui
    Windows Activation Phone Numbers = slui 4
    Taskbar and Start Menu = control.exe /name Microsoft.TaskbarandStartMenu
    Troubleshooting = control.exe /name Microsoft.Troubleshooting
    User Accounts = control.exe /name Microsoft.UserAccounts
    User Account Control Settings = UserAccountControlSettings
    User Accounts Windows 2000/domain version = netplwiz or control userpasswords2
    Encryption File System = rekeywiz
    Windows Anytime Upgrade = WindowsAnytimeUpgradeui
    Windows Anytime Upgrade Results = WindowsAnytimeUpgradeResults
    Windows CardSpace = control.exe /name Microsoft.cardspace
    Windows Firewall = firewall.cpl
    WindowsSideshow = control.exe /name Microsoft.WindowsSideshow
    Windows Update App Manager = wuapp


    Calculator = calc
    Command Prompt = cmd
    Connect to a Network Projector = NetProj
    Presentation Settings = PresentationSettings
    Connect to a Projector = displayswitch or Windows logo key + P
    Notepad = notepad
    Microsoft Paint = mspaint.exe
    Remote Desktop Connection = mstsc
    Run = Windows logo key + R
    Snipping Tool = snippingtool
    Sound Recorder = soundrecorder
    Sticky Note = StikyNot
    Sync Center = mobsync
    Windows Mobility Center (Only on Laptops) = mblctr or Windows logo key + X
    Windows Explorer = explorer or Windows logo key + E
    Wordpad = write
    Ease of Access Center = utilman or Windows logo key + U
    Magnifier = magnify
    Narrator = Narrator
    On Screen Keyboard = osk
    Private Character Editor = eudcedit
    Character Map = charmap
    Ditilizer Calibration Tool = tabcal
    Disk Cleanup Utility = cleanmgr
    Defragment User Interface = dfrgui
    Internet Explorer = iexplore
    Rating System = ticrf
    Internet Explorer (No Add-ons) = iexplore -extoff
    Internet Explorer (No Home) = iexplore about:blank
    Phone Dialer = dialer
    Printer Migration = PrintBrmUi
    System Information = msinfo32
    System Restore = rstrui
    Windows Easy Transfer = migwiz
    Windows Media Player = wmplayer
    Windows Media Player DVD Player = dvdplay
    Windows Fax and Scan Cover Page Editor = fxscover
    Windows Fax and Scan = wfs
    Windows Image Acquisition = wiaacmgr
    Windows PowerShell ISE = powershell_ise
    Windows PowerShell = powershell
    XPS Viewer = xpsrchvw

    Open Documents folder = documents
    Open Pictures folder = pictures
    Open Music folder = music
    Open Videos folder = videos
    Open Downloads folder = downloads
    Open Favorites folder = favorites
    Open Recent folder = recent
    Logs out of Windows = logoff
    Locks User Account = Windows logo Key + L
  5. WinAndLinuxTutorials


    Aug 23, 2011
    I use some of these commands quite often, but there are others that I didn't know of.

    Thanks to all of you for sharing your information. :)

    lol I taught my classmate the command to perform shutdown operations. I told him a trick to make a shortcut under the name and the icon of Internet Explorer and pinned it to the taskbar. So when another user who uses our computers try to open IE, he instead gets his computer shut down. :p
    marzametal likes this.
  6. Freddyand5

    Freddyand5 New Member

    Sep 18, 2013

    to Create a Copy of Current Registry Hives... but can only be done using Installation Media Disc
  7. Freddyand5

    Freddyand5 New Member

    Sep 18, 2013
    DIR C:\WIN* (Replace C with Drive Letters)

    To Check Drive directories..

    I normally, use it when it do not know what of my Drive contains Windows directory
    mehdi.n likes this.
  8. jim lin

    jim lin Level 8

    Aug 6, 2012
    DirectX Diagnostic Tool

    Click Start, and then click Run.
    Type dxdiag, and then click OK.
    On the System tab, note the version of DirectX that is displayed on the DirectX Version line.
    On the various tabs, check the version information for each DirectX file.
    When you are finished checking file versions, click Exit.

    works for:
    Windows 8
    Windows 7
    Windows Server 2008
    Windows Vista
    Windows XP
    Windows Server 2003

    akuigla likes this.
  9. jim lin

    jim lin Level 8

    Aug 6, 2012
    i run Windows 8 and ran System File Checker (sfc /scannow) from a administrator command prompt and it found
    and could not fix some corrupt system files so i ran this tool from a administrator command prompt it's called
    Deployment Image Servicing and Management Tool and it fixed the corrupt files i'm not sure what other OS it
    works on but it helped with Windows 8

    from a administrator command prompt i ran both of these commands
    1.dism /online /cleanup-image /checkhealth

    after i ran
    2.dism /online /cleanup-image /restorehealth

    the restorehealth command can take 20min or more to run do not stop it let it finish

    then i ran sfc /scannow again and no more corrupt system files


    marzametal and akuigla like this.
  10. Freddyand5

    Freddyand5 New Member

    Sep 18, 2013
    The hostname command displays the name of the current host
  11. laurenb

    laurenb New Member

    Jun 1, 2016
    marzametal likes this.
  12. DC47561

    DC47561 Level 3

    Feb 3, 2017
    IT Support
    Windows 10
    ipconfig - displays the IP networking configuration of the current network connection.

    ipconfig /all displays the configuration for all adapters (physical and virtual)

    ipconfig /release - removes ip addressing information from a network adapter (if using DHCP - automatic configuration)

    ipconfig /renew - requests a new ip configuration including ip address, subnet mask, default gateway and DNS configuration.)
  13. Umbra

    Umbra From Emsisoft

    May 16, 2011
    Community manager
    Vietnam & France
    Windows 10
    @DC47561 those you mentioned are Cmd command line, not exactly Windows' Command codes.
  14. DC47561

    DC47561 Level 3

    Feb 3, 2017
    IT Support
    Windows 10
    @Umbra - That's fair enough. No worries. Thanks for that.
  15. DC47561

    DC47561 Level 3

    Feb 3, 2017
    IT Support
    Windows 10
    OK Then what about this command:

    net user "Admin" /add && net localgroup administrators "Admin" /add

    Creates a new user called Admin and adds it to the local Administrators group. :)
  16. Wingman

    Wingman Level 3

    Feb 6, 2017
    Galaxy far away...
    vssadmin.exe delete shadows /all /Quiet (delete shadow copies)
  17. DC47561

    DC47561 Level 3

    Feb 3, 2017
    IT Support
    Windows 10
    Another one: net user <username> <password> changes the password for the the specified user.
  18. TairikuOkami

    TairikuOkami Level 8
    Content Creator

    May 13, 2017
    Postal Worker
    Windows 10
    Windows wmic command line command

    Wmic is not very well known command, you can do tons of stuff with it, I use it for network setup.

    wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("","")
    Setup DNS Servers on DHCP Enabled Network (OpenDNS)

    wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call EnableStatic (""), ("")
    wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetDNSServerSearchOrder ("","")
    wmic nicconfig where macaddress="D0:17:C2:D0:30:DC" call SetGateways ("")
    Setup IP, Gateway and DNS Servers based on the MAC address (it is more practical than using a name)
  19. Staunch

    Staunch Level 1

    Jun 22, 2017
    Linux Ubuntu
    Yes wmic easy and very user full

    start cmd and enter wmic command, type /? you can get everything you want.

    here a few example to me;

    Memory size
    wmic MEMORYCHIP get BankLabel,DeviceLocator,Capacity,Tag

    Sett password expire never for local account;

    WMIC USERACCOUNT WHERE "Name='staunch' and LocalAccount=true" set PasswordExpires=False

    serial number;
    wmic bios get serialnumber
  20. TairikuOkami

    TairikuOkami Level 8
    Content Creator

    May 13, 2017
    Postal Worker
    Windows 10
    I have just recently found out, how to disable pagefile, via wmic, after several years. :rolleyes:

    wmic computersystem where name="%computername%" set AutomaticManagedPagefile=False
    wmic pagefileset where name="%SystemDrive%\\pagefile.sys" set InitialSize=0,MaximumSize=0
    wmic pagefileset where name="%SystemDrive%\\pagefile.sys" delete
Similar Threads Forum Date
Command-Line Activation of Universal Windows Apps Operating Systems Jul 6, 2017
Need Help How to trigger SSD TRIM command under Windows 7? Apps - Questions & Help Oct 18, 2016
How-to Guide How to Shutdown Windows 7 via Command Prompt. Tutorials & Guides Oct 8, 2014