Print this Page

Dos Commands

Dos commands are very useful for server administrators to quickly investigate and act on any issues.
For each and every operations Microsoft provides Dos commands.

There are so many commands which need admin privilege to run, we can run admin commands by using Run AS Administrator.

Runas user (Default). 

Cmd

 

 

 

 

 

 

 

 

 

 

 

 

Runas Administrator

Capture

 

 

 

 

 

 

 

 

 

 

 

RunAS Command Syntax:

C:Users\MYuser>runas /?

RUNAS USAGE:

RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ] /user:<UserName> program

RUNAS [ [/noprofile | /profile] [/env] [/savecred] ] /smartcard [/user:<UserName>] program

RUNAS /trustlevel:<TrustLevel> program

/noprofile specifies that the user’s profile should not be loaded.
This causes the application to load more quickly, but can cause some applications to malfunction.
/profile specifies that the user’s profile should be loaded. This is the default.

/env to use current environment instead of user’s.
/netonly use if the credentials specified are for remote access only.
/savecred to use credentials previously saved by the user.
This option is not available on Windows 7 Home or Windows 7 Starter Editions and will be ignored.
/smartcard use if the credentials are to be supplied from a smartcard.
/user <UserName> should be in form USER@DOMAIN or DOMAINUSER
/showtrustlevels displays the trust levels that can be used as arguments to /trustlevel.
/trustlevel <Level> should be one of levels enumerated in /showtrustlevels.
program command line for EXE. See below for examples

Examples:

> runas /noprofile /user:mymachineadministrator cmd
> runas /profile /env /user:mydomainadmin “mmc %windir%system32dsa.msc”
> runas /env /user:user@domain.microsoft.com “notepad “my file.txt””

NOTE: Enter user’s password only when prompted.
NOTE: /profile is not compatible with /netonly.
NOTE: /savecred is not compatible with /smartcard.

 

Permanent link to this article: http://www.techxpress.in/dos-commands/

CPL List

Contol Panel List: CPL List to open control panels items. CPL Description control access.cpl Accessibility Options control sysdm.cpl Add new hardware appwiz.cpl Add/Remove Programs control timedate.cpl Date/Time Properties control desk.cpl Display Properties control findfast.cpl FindFast control fonts Fonts Folder control inetcpl.cpl Internet Properties control main.cpl Keyboard Properties  to beginning Firewall.cpl Firewall control modem.cpl System Properties control …

View page »

Diagnostics Command

List of Microsoft Windows Diagnostics Command Diagnostics Command are really useful for diagnosis and this command is mostly used by system administrators. Ping: Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) Echo Request messages. control admintools :- Opens administration module. services.msc :- Opens service manager. devmgmt.msc :- Opens device manager eventvwr.msc (or …

View page »

General Dos Commands

General Dos Commands bootcfg (XP only) This utility allows you to set up your boot options, such as your default OS and other loading options. cacls (XP, 2000, & NT4.0) Changes the ACLs (security Settings) of files and folders. Very similar to chmod in Linux. comp (XP & 2000) This utility is very similar to …

View page »

Network Commands

Network Commands CMD>ipconfig [/all] [/renew [Adapter]] [/release [Adapter]] [/flushdns] [/displaydns] [/registerdns] [/showclassid Adapter] [/setclassid Adapter [ClassID]] /all : Displays the full TCP/IP configuration for all adapters. /renew [Adapter] : Renews DHCP configuration for all adapters (if an adapter is not specified) or for a specific adapter if the Adapter         parameter is included. /release [Adapter] : …

View page »

Net localgroup

System Administration Commands Net localgroup Local Commands How to find all local administrators? Command: Net localgroup administrators How to add a user to local administrators group? Command: Net localgroup administrators Mydomain\username /add How to delete a user from local administrators group? Command: Net localgroup administrators mydomain\username /delete   Remote Machines: How to find all local administrators from remote …

View page »

Leave a Reply

Bookmark this page