PIRATED 20130920 2224

PIRATED 20130920 2224

NOTE: This content appears to have been plagiarized. Please leave a comment or email tnwiki at Microsoft (with a link to this article) if we are mistaken. The content was pulled from the following source:
The community rules state:
  • "Someone else has relevant content and you want to help them share it with the world. It's a nice thought, but do not copy other people's content to the Wiki, even if the owner said it was OK."
Affected articles:
  • The index of contents of this article is nearly identical to Darril Gibson's book.
  • All linked sub-article - except the one about "systeminfo" - are also pirated content.

 This topic is work in progress.
Please abstain from editing it right now. You're welcome to contribute here in a couple of hours or days, though!

This Wiki article reveals the command line to you for better managing Windows 7 and Windows Server 2008 R2. Using the information in this article, you not only discover the vast array of commands that are at your disposal but you also see how to automate those commands so that you can save significant time and effort while performing administrative tasks.

Command Prompt Basics

  • Launching and Using the Command Prompt

  • How to Launch the Command Prompt with Elevated Privileges (Administrative Credentials)
  • How to Create Mini Macros in Doskey Program
  • Changing the Options and Display of the Command Prompt
  • Basic Rules When Using the Command Prompt

  • Using uppercase or lowercase?
  • Using quotes to enclose spaces
  • Understanding variables
  • Understanding switches
  • Understanding wildcards
  • Getting help
  • Using Basic Commands

  • Understanding folders and directories
  • Understanding paths
  • Viewing files and folders with "dir" Command
  • Changing the path with "cd" Command
  • Using drag and drop to the Command Prompt window
  • Creating folders with md
  • Controlling output with more
  • Redirecting output
  • Using "exit" Command
Return to Top

Working with Files, Folders, and Disks

  • Manipulating Files and Folders

  • Associating File Extensions with "assoc" and "ftype" Commands
  • How to View Attributes of Files and Folders by Using "attrib" Command
  • Compressing Files with "compact" Command
  • Encrypting Files with "cipher" Command
  • Copying Files with "copy", "xcopy", and "robocopy" Commands
  • Deleting or Removing Files with "del" Command
  • Expanding Cabinet Files with "expand" Command
  • Taking Ownership of Files with "takeown" Command
  • Mapping Drives with "net use" Command
  • Managing "Disk Cleanup" at the command Line
  • Manipulating Disks

  • Manipulating and Viewing Disks with "diskpart" Command
  • Defragmenting Volumes with "defrag" Command
  • How to Convert FAT/FAT32 File Systems to NTFS with "convert" Command
  • Managing File System with "fsutil" Command
Return to Top

Managing and Maintaining Windows

  • Using Windows 7 Maintenance Tools

  • Controlling Power Settings with "powercfg" Command
  • Checking Memory with "mdsched" Command
  • Manipulating Services with "sc" Command
  • Collecting Events with "wecutil" Command
  • Restarting Systems with "shutdown" Command
  • Launching Control Panel Applets from the Command Line
  • Retrieving Information About Windows 7

  • Viewing User Information with "whoami" Command
  • Launching System Configuration with "msconfig" Command
  • Managing Security in Windows 7

  • Manipulating credentials with "cmdkey" Command
  • Installing updates with "wusa" Command
  • Installing applications with "msiexec" Command
  • Auditing systems with "mbsacli" Command
  • Using the "SysKey" Utility to Secure the Windows Security Accounts Manager (SAM) Database
  • Configuring Windows 7 with netsh Command

  • understanding "netsh" Command
  • Understanding Contexts
  • Configuring a Proxy Server
  • Configuring Network Interfaces with "netsh" Command
Return to Top

Troubleshooting Windows

  • Configuring Windows Using Basic Troubleshooting Tools

  • Troubleshooting Network Issues

  • Using Recovery Tools

  • Manipulating the Boot Process with "bcdedit" Command
  • Creating a System Repair Disc with "recdisc" Command
  • Checking and Repairing Disks with "chkdsk" Command
  • Repairing BitLocker Drives with "repair-bde" Command
Return to Top

Remote Administration

  • Managing Windows 7 Remotely

  • Configuring Windows 7 for Remote Administration
  • Configuring Windows Remote Management with "winrm" Command
  • Executing Commands Remotely with "winrs" Command
  • Windows Management Instrumentation Command Line

  • Understanding wmic
  • Configuring the Firewall to Allow wmic
  • Running wmic
  • Modifying the Format with the /format Switch
  • Retrieving Help from wmic
  • Understanding Aliases
  • Using Verbs
Return to Top

Working with WinPE and Windows Setup

  • WinPE Commands

  • Add drivers to WinPE with "drvload" Command
  • Run commands within WinPE with "wpeutil" Command
  • Installing Windows 7 with setup

  • Installing Windows 7 with "setup"
  • Using the autounattend.xml file
  • Using "slmgr" Command
Return to Top

Using PowerShell

  • Understanding PowerShell Commands

  • Launching PowerShell
  • Understanding PowerShell verbs and nouns
  • Tabbing through PowerShell commands
  • Understanding the different types of PowerShell commands
  • Creating aliases
  • Discovering Windows PowerShell commands
  • Exploring get-member
  • Redirecting output with Windows PowerShell
  • Understanding PowerShell errors
  • Understanding PowerShell variables
  • Using comparison operators
  • Understanding pipelining
  • Using the Integrated Scripting Environment (ISE)

  • Launching the ISE
  • Exploring the ISE
  • Executing commands in the ISE
  • Creating and saving a script in the ISE
  • Creating and Running PowerShell Scripts

  • Setting the security context
  • Creating a PowerShell profile
  • Creating and modifying the Global PowerShell profile
  • Running PowerShell Scripts
  • Flushing the DNS cache
  • Creating a list of domain computers
  • Logging processes with a get-process script
  • Testing for the existence of a file
  • Creating output as HTML
  • Running a script against multiple computers
  • Creating a PowerShell message box
  • Scheduling PowerShell scripts
Return to Top

Group Policy Command-Line Tools

  • Refreshing Group Policy Settings with "gpupdate" Command
Return to Top

Leave a Comment
  • Please add 2 and 1 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
  • Carsten Siemens edited Revision 53. Comment: Pirated Content - see my comment

  • Richard Mueller edited Revision 52. Comment: Removed (en-US) from title, added tags

Page 1 of 1 (2 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
  • R.Alikhani, what's your source for this content? If you're copying it, do you have permission? Can you email me? It's edprice at Microsoft. Thanks!

  • Azize man english ke hast zahmate farsi kardanesho bekesh

  • Dear alikhani, we are iranian so we should write in our language not original language by copy and paste.  So please translate this article to persian. 

  • Richard Mueller edited Revision 52. Comment: Removed (en-US) from title, added tags

  • Carsten Siemens edited Revision 53. Comment: Pirated Content - see my comment

  • NOTE: This article was reported as Pirated/Plagiarized Content (content you didn't write) and will be removed. Please do not steal content from others. If you feel we are mistaken, please leave a comment or email tnwiki at Microsoft with a link to this article and with clear and detailed reasons why you own the content or have explicit permission from the author.

    Content was taken from: "Book - Windows 7 Portable Command Guide"

    Published by Darril Gibson (Pearson)

    de.scribd.com/.../67827130-Windows-7-Portable-Command-Guide-MCTS-70-680-70-685-70-686 and


    Affected articles:

    (1) The index of contents of this article is nearly identical to Darril Gibson's book.

    (2) All linked sub-article - except the one about "systeminfo" - are also pirated content.

Page 1 of 1 (6 items)