Loading presentation...

Present Remotely

Send the link below via email or IM


Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.


Introduction to Command Line

Introduction to basic command line for server administration.

Brock Hatfield

on 4 January 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Introduction to Command Line

FIN! Introduction to Command Line What is the command line? Three Levels to the operating system.
Command Interpreter (command line)
Graphical User Interface Varying levels of power and flexibility.
Kernel - Most powerful. No direct input.
Command Line - Very powerful and very flexible.
GUI - Least powerful. Not very flexible. Great for data presentation. COMMAND [options] [data] [data]
COMMAND [data] [options]
COMMAND [options] [data] [options]

Commands range from simple to complex and you will have to consult help to know the proper format for a given command. Options are often referred to as switches as they typically represent features being switched on/off. Syntax How do you get help? Halp! Built In Help - Most commands if entered with no switches or options will print basic help automatically. If a command prints an error then an option of /? or /help will print help. File System Commands dir - dir [path] [filename] [displayformat] [options]
cd - cd /D [path] (/D changes drive as well as path)
del - del [options] [filename]
deltree - deltree [options] [path] (deprecated. Use del)
copy - copy [options] [path A] [path B]
move - move [options] [drive] [path A] [path B] Google it! - If you're stuck, Google it! There's a wealth of information on the internet. SysInternals was an independent developer that made system administration tools for the Microsoft operating system. Microsoft liked the tools so much they wanted to integrate them. SysInternals is now an internal team at Microsoft and many of it's tools are integrated in to the administration tool kit and even newer versions of the OS. SysInternals PsExec - psexec [computer] <options> command [arguments]
PsFile - psfile [\\Computer] [-u User] [-p Passwd]
PsInfo - psinfo [\\computer[,computer[,..]] <options> [filter]
PsKill - pskill [\\computer [-u user] [-p passwd]] <process name | process id>
PsList - pslist <options> [\\computer [-u user] [-p passwd]] [name | pid]
PsLoggedOn - psloggedon <options> [\\computer | username]
PsLogList - psloglist [\\computer[,computer[,...] | @file
PsPasswd - pspasswd [[\\computer[,computer[,..] | @file
PsService - psservice [\\computer [-u user] [-p passwd]] <command> <options>
PsShutdown - psshutdown [[\\computer[,computer[,..] | @file [-u user [-p passwd]]] SysInternals Commands Third Party Tools Third party tools.
Can be put anywhere.
Store them some place safe.
Add to the path. Data Outcome of command line often results in data. This comes in the following formats:
xls - NOT plain text, unusable by command line.
csv - Plain text seperated by commas.
txt - Plain text with virtually no formatting.
evt - Windows event log files.
log - Log files generated by both third party and Windows apps. Typically plain text formatted. Scripting Error Reporting Record the error.
Provide Data.
Explain what happened. Batch Files Plain Text
Directly executable
List of commands
Basic logic (variables, loops) VBScript Plain Text
Not Directly Executable (HTA, Wscript, Cscript)
Proper scripting
Advanced logic Power Shell Command Line
Scripting Language
Plugin System - Cmdlets
More flexability in data management System Specific Commands piping - [command] | [command]
ping - ping [options] [address]
ipconfig - ipconfig [options]
netstat - netstat [options]
nslookup - nslookup [option] [hostname] [server]
net - net [command] [options]
shutdown - shutdown [options]
sc - sc [server] [options] [service] [options]
Full transcript