Windows Administration Commands
-
Upload
krsnagnani -
Category
Documents
-
view
109 -
download
2
Transcript of Windows Administration Commands
![Page 1: Windows Administration Commands](https://reader036.fdocuments.us/reader036/viewer/2022082511/547067cdb4af9f176c8b460c/html5/thumbnails/1.jpg)
Windows Administration Commands
inetmgr Internet Information Server Consoleeventvwr Event Viewer Consoleservices.msc Service Management Consoledsa.msc Directory Services Management (Active Directory) Consolednsmgmt.msc DNS Management Consolequeryqwinsta
To list all the sessions (both servers should have same username and password) from another serverEg: query session /server:<server name>Eg: qwinsta /server:<server name>
logoffrwinsta
To log off a session (both servers should have same username and password) from another serverEg: logoff <session id> /server:<server name>Eg: rwinsta /server:<server name>
diskpar Disk Alignment Tooldiskpart Manage objects (disks, partitions, or volumes) (Win 2k3).
diskpar is more recommendedtasklist, taskkill, tslist Lists all Tasks with Task name and PID (like CUI based Task
Manager) for Win 2003 and terminates themtasklist, kill, tskill Lists all Tasks with Task name and PID for Win 2000 and
terminate themcluadmin Cluster Admin Consolecontrol Control PanelFonts Opens C:\Windows\Fonts foldersecpol.msc Local Security Policy Consolecompmgmt.msc Computer Management Consoleperfmon.msc Performance Monitor Consoletaskmgr Task Managercmd Command prompt (%systemroot%\system32\cmd.exe)tsshutdn /reboot Remote reboot of Serversdate /t Show system timetime /t Show system timew32tm /resyncw32tm /monitor
Windows time service synchronization
drivers Go to C:\Windows\System32\Drivers directoryDrwtsn32 Dr. Watson for Windows ConsoleRegeditregedt32reg
Windows Registry Editor for 2003Windows Registry Editor for 2000Console (Command line) Registry Tool
regfind Search RegistryWinver Windows VersionCompatadmin Application Compatibility Tool Kit for 2003. Tool to bundle
application fixesQfixapp Bundled Application Fixes for distributionConvert Convert Disk ToolWscriptCscript
WSH (Windows Scripting Host). Window basedCommand line based
Dcpromo DC Promote / Demote. Represents Root DirectoryDesktop Open Desktop / Profile folderDfscmd DFS Command Line Administration ToolAt Windows SchedulerIisreset Restart IIS and dependent servicesIpconfig IP Address Configuration / DisplayJetpack MS Jetpack tool to compress WINS DBLdifde Import / Export AD data in to LDIF (LDAP Data Interchange
Format)
Page 1 of 5
![Page 2: Windows Administration Commands](https://reader036.fdocuments.us/reader036/viewer/2022082511/547067cdb4af9f176c8b460c/html5/thumbnails/2.jpg)
Netsh Migration Tool for DHCP ScopesNtbackup NT Backup Tool from %SystemRoot%\System32Ntdsutil AD Restore ToolRestore AD Restore ToolFsutil FS Utility (queries 8.3 file name)poledit System Policy EditorRestore CA Certification Authority Restore WizardRoute Manage Static RoutesRsm Removable Storage Management CommandRss Remote Storage Administration CommandSysprepUpdatesc Service Controllernetsh winsock show catalog
Shows Winsock configurationnetsh winsock show catalog > c:\lst.txt (backup)
netsh winsock reset catalog
Resets Winsock configuration to default
Whoami Currently logged in userNet user <username> | findstr /i pass
Query password particulars
Windows Recovery Console Commands
Attrib Change attributes of file / folderBatch Executes commands in a text fileBootcfg Display / Modify Boot.ini fileCdChdir
Change Directory
Chkdsk Check DiskCls Clear ScreenCopy Copy single fileDelete Delete single fileDir Display files / folders in a directoryDisable Disable a system service / driverDiskpart Manage partitions on a volumeEnable Enable a system service / driverExit QuitExpand Expand a compressed fileFixboot Writes a new Boot Sector on boot partition to fix corrupt boot sectorFixmbr Repairs the Master Boot Record of boot partition to fix damaged
MBR (Can damage partition due to the presence of a virus or hardware problem)
Format Formats specified drive to specified file systemHelp Display Help for Recovery ConsoleListsvc Lists all available services / drivers / start types. Uses
%SystemRoot%\System32\Config\SYSTEM hive to get the information
Logon Lists all detected installations of 2003 / 2000 / XP / NTMap Lists drive letters / File system types / partition sizes / physical
device mappingsMdMkdir
Make Directory
More Display output of a command one screen at a timeRdRmdir
Remove Directory
RenRename
Rename a Directory / File
Page 2 of 5
![Page 3: Windows Administration Commands](https://reader036.fdocuments.us/reader036/viewer/2022082511/547067cdb4af9f176c8b460c/html5/thumbnails/3.jpg)
Set Display / Modify Recovery Console environment optionsAllowWildCardsAllowAllPathsAllowRemovableMediaNoCopyPrompt
Systemroot Sets current working folder to %SystemRoot%Type Display contents of a text fileDoskey Enabling navigation through recently used commands
Windows Printer Commands
Print Prints the specified file to the specified printerNet print Displays information about the specified print queue / jobNet start Starts specified service
Net start spoolerLpr Prints the specified file to the specified LPD print queueLpq Displays information about the specified LPD print queueCscript prnmngr.vbs Add / Delete / List printersCscript prnjobs.vbs View / Manage print jobs on printer shareCscript prncfg.vbs View / Change settings of printersCscript prnqctl.vbs Pause / Resume printing, Clear print queue, Print test pageCscript prnport.vbs Administers all things related to printer portsCscript prndrvr.vbs Add / Delete / List printer drivers
Windows Server 2003 Support Tools.Install these tools from \Support\Tools folder of Windows Server 2003 CD ROM to \Program Files\Support Tools folder, and change directory to this in command prompt to execute.Acldiag ACL Diagnostics. Diagnose troubleshoot permission problem with
ADReplmon AD Replication Monitor. Display / Control AD replication informationSearch.vbs AD Search Tool. Script tool used to search an LDAP DirectoryAddiag Application Deployment Diagnostics. Displays the status of the
software deployed to the local computer using GPAdsiedit.msc ADSI Edit. Low level editor to Add / Move / Delete objects in ADApmstat Advanced Power Management Status. Provides information about
APM features in older laptop computersBindiff Binary File Difference finder. Compares 2 binary filesBitsadmin Administer BITS (Background Intelligent Transfer Service), which
manages background file transfers for IIS. Browstat Browser statusCabarc Cabinet Tool (.cab)Clonepr.dll Creates clones of Win NT4 users and groups for migrationDepends Dependency Walker, scans all Win32 modules and reports all
dependencies. Used to find a minimum set of files needed to launch an application
Devcon Device Console Utility. Device Manager at command promptTopchk.cmd DFS and SYSVOL Replication Topology Analysis ToolDhcpexim Export DHCP DB and configuration (Resource Kit)Dhcploc DHCP Server LocatorDiruse Directory Disk UsageDsacls Directory Services ACL EditorDsastat Directory Services UtilityDfsutil DFS UtilityDskprobe Diskprobe. Edit disk sector information (MBR)
Page 3 of 5
![Page 4: Windows Administration Commands](https://reader036.fdocuments.us/reader036/viewer/2022082511/547067cdb4af9f176c8b460c/html5/thumbnails/4.jpg)
Dmdiag Disk Manager DiagnosticsDnscmd DNS Server Troubleshooting ToolDsdiag DC Diagnostic ToolEfsinfo Encrypting File System InformationExctrlst Extensible Performance Counter ListFtonline Fault Tolerant Disk MounterWindiff File and Directory Comparison ToolNtfrsutil File Replication UtilityFilever File Version ReporterConnstat.cmd FRS Connection Status ReportHealth_chk.cmd FRS Health CheckLologsum.cmd FRS Inbound and Outbound Logs Summary Report ToolGetsid Get SIDGflags Global Flags (Registry Settings in use by Kernel) Editor.Httpcfg HTTP Configuration utlityIasparse IAS Parse Tool. IAS / RAS Log files parser.Ktpass Kerberos Keytab Setup. Configures a non-Windows KerberosKsetup Kerberos SetupLdp LDP ToolSetspn Manipulate Service Principal Names for AccountsPoolmon Memory Pool Monitor. Detects Memory LeaksMemsnap Memory Profiling ToolMovetree Move Users between DomainsNetdiag Network Connectivity TesterNetcap Network Monitor Capture UtilityNltest Query status of trusts, List PDC, Force shutdown, Force sync a
user DB to NT domainPortqry Troubleshoot TCP / UDP PortsPviewer Process Viewer. Change Priority / Kill ProcessRemote Run Command Line programs on remote computersRsdiag Remote Storage Diagnostic UtilityRsdir Remote Storage File Analysis UtilityRepadmin Replication Diagnostic ToolSidewalkShowaccsSidewalk.msc
Security Administration Tools. Manage ACL
Sdcheck Security Descriptor Check UtilitySpcheck Service Pack CheckNetdom Windows Domain ManagerMsicuu MSI Cleanup Utility. Removes registry entries of faulty entriesMsizapp MSI Zapper. Removes registry entries of faulty entries. Use as last
resortXcalcs Set / Display File ACLs
Windows Connectivity Commands
mstsc MS Terminal Services Clientconf Net Meetingping Packet Internet Groppernet Net use, net stop, net starttelnet telnetftp File transfer protocolNetstat Network statisticsNbtstat NetBIOS over TCP/IP statisticsTracert Trace routetsadmin Terminal Server Admin consoleTsmmc.msc Remote Desktops to TS servers
Page 4 of 5
![Page 5: Windows Administration Commands](https://reader036.fdocuments.us/reader036/viewer/2022082511/547067cdb4af9f176c8b460c/html5/thumbnails/5.jpg)
Windows Application Commands
CmdCommand
Cmd.exe (MS DOS / Windows console)Older version of Windows
iexplore Internet Explorerwinword MS Wordexcel MS Excelpowerpnt MS Power Pointoutlook MS Outlookmspub MS Publishermsaccess MS Accessexplorer Desktop / Windows ExplorerMspaint MS PaintClipbrd Clipboard ViewerCalc MS CalculatorWordpad MS Word PadWinchat Windows Chat ProgramDialer Phone DialerMplayer Windows Media Player
Miscellaneous Windows Commands
Saveinfo
Page 5 of 5