server important core commands its very simple and easy to learn with example so any one can...
-
Upload
tushar-kadam -
Category
Documents
-
view
213 -
download
0
Transcript of server important core commands its very simple and easy to learn with example so any one can...
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
1/8
Server 2008 Core Commands:
Set IP Address: o Netsh interface ip set address Local Area Connection static 192.168.10.10 255.255.255.0
192.168.10.1 Set DNS
o Netsh interface ip set dnsserver Local Area Connection static 192.168.10.10 Rename Computer:
o Netdom renamecomputer /newname: Join domain: please note paswordD should have two Ds because you are specif ying a Domain
password o Netdom join /domain: /userD: /passwordD: Enable Remote Administration
o netsh firewall set service RemoteAdmin ENABLE Set Firewall
o Netsh firewall set icmpsetting 8 ENABLE o Netsh firewall set opmode ENABLE
Map Network Drive: o net use [DriveLetter] \\Computername\ShareName
DriveLetter = D: E: F: Whatever you have available. Please omit the brackets whendefining the driveletter
Configuration and installation
Task Steps
Set the local administrative password At a command prompt, type: Net user administrator *
Join a computer to a domain 1. At a command prompt, type on one line:Netdom join %computername% /domain:
/userd:\username> /password:*
2. Restart the computer.
Confirm that the domain has changed At a command prompt, type: Set
Remove a computer from a domain At a command prompt, type: Netdom remove
Add a user to the local Administrators group. At a command prompt, type:
Net localgroup Administrators /add\
Remove a user from the local Administratorsgroup
At a command prompt, type: Net localgroup Administrators /delete
Add a user to the local computer At a command prompt, type: Net user /add *
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
2/8
Task Steps
Add a group to the local computer At a command prompt, type: Net localgroup /add
Change the name of a domain-joined computer At a command prompt, type:
Netdom renamecomputer %computername%/NewName:/userd: /password:*
Confirm the new computer name At a command prompt, type: Set
Change the name of a computer in a workgroup
1. At a command prompt, type:
Netdom renamecomputer /NewName:
2. Restart the computer.
Disable paging file management At a command prompt, type:
Wmic computersystem wherename="" setAutomaticManagedPagefile=False
Configure the paging file At a command prompt, type: Wmic pagefileset where name=setInitialSize=,MaximumSize= Where: path/filename is the path to and name of thepaging file initialsize is the starting size of the paging file inbytes. maxsize is the maximum size of the page file inbytes.
Change to a static IP address. 1. At a command prompt, type:Ipconfig /all
2. Record the relevant information or redirect it to a textfile (ipconfig /all >ipconfig.txt).
3. At a command prompt, type:
Netsh interface ipv4 show interfaces
4. Verify that there is an interface list.
5. At a command prompt, type:
Netsh interface ipv4 set address name source=static address= gateway=
6. Verify by typing Ipconfig /all at a command promptand checking that DHCP enabled is set to No .
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
3/8
Task Steps
Set a static DNS address. 1. At a command prompt, type:Netsh interface ipv4 add dnsserver name= address= index=1
2. At a command prompt, type:Netsh interface ipv4 add dnsserver name= address= index=2
3. Repeat as appropriate to add additional servers.
4. Verify by typing Ipconfig /all and checking that all theaddresses are correct.
Change to a DHCP-provided IP address from astatic IP address.
1. At a command prompt, type:
Netsh interface ipv4 set address name= source=DHCP
2. Verify by typing Ipconfig /all and checking that DCHPenabled is set to Yes .
Activate the server locally. At a command prompt, type: Slmgr.vbs -ato
Activate the server remotely. 1. At a command prompt, type:Cscript slmgr.vbs -ato
2. Retrieve the GUID of the computer by typing Cscriptslmgr.vbs -did
3. Type Cscript slmgr.vbs -dli
4. Verify that License status is set to Licensed (activated) .
Networking and firewall
Task Steps
Configure your server to use a proxy server. At a command prompt, type: Netsh Winhttp set proxy :
Configure your server to bypass the proxy for internet addresses.
At a command prompt, type: Netsh winttp set proxy :bypass-list=""
Display or modify IPSEC configuration. At a command prompt, type: Netsh ipsec
Display or modify NAP configuration. At a command prompt, type: Netsh nap
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
4/8
Task Steps
Display or modify IP to physical addresstranslation.
At a command prompt, type: Arp
Display or configure the local routing table. At a command prompt, type:
Route View or configure DNS server settings. At a command prompt, type:
Nslookup
Display protocol statistics and current TCP/IPnetwork connections.
At a command prompt, type: Netstat
Display protocol statistics and current TCP/IPconnections using NetBIOS over TCP/IP (NBT).
At a command prompt, type: Nbtstat
Display hops for network connections. At a command prompt, type: Pathping
Trace hops for network connections. At a command prompt, type: Tracert
Display the configuration of the multicast router. At a command prompt, type: Mrinfo
Enable remote administration of the firewall. At a command prompt, type: Netsh firewall set service remoteadmin enable
Updates, error reporting, and feedback
Task Steps
Install an update. At a command prompt, type: Wusa .msu /quiet
Remove an update. 1. Type at a command prompt:Expand /f:* .msu c:\test
2. Navigate to c:\test\ and open .xml in a texteditor.
3. In .xml, replace Install with Remove and savethe file.
4. At a command prompt, type:
Pkgmgr /n:.xml
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
5/8
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
6/8
Task Steps
List the running services. At a command prompt, type either of thefollowing:
Sc query Net start
Start a service. At a command prompt, type either of thefollowing:
SC start
Net start
Stop a service. At a command prompt, type either of thefollowing:
SC stop
Net stop
Retrieve a list of running applications andassociated processes.
At a command prompt, type: Tasklist
Stop a process forcibly. 1. Use the Tasklist command to retrieve the process ID(PID).
2. At a command prompt, type:
Taskkill /PID
Start Task Manager. At a command prompt, type: Taskmgr
Manage the performance counters and loggingwith commands suchas typeperf , logman ,relog , tracerprt .
See http://go.microsoft.com/fwlink/?LinkId=84872
Event logs
Task Steps
List event logs.
At a command prompt, type:
Wevtutil el
Query events in a specified log. At a command prompt, type: Wevtutil qe /f:text
Export an event log. At a command prompt, type: Wevtutil epl
http://go.microsoft.com/fwlink/?LinkId=84872http://go.microsoft.com/fwlink/?LinkId=84872http://go.microsoft.com/fwlink/?LinkId=84872http://go.microsoft.com/fwlink/?LinkId=84872 -
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
7/8
Task Steps
Clear an event log. At a command prompt, type: Wevtutil cl
Disk and file system
Task Steps
Manage disk partitions. For a complete list of commands, at acommand prompt, type: Diskpart /?
Manage software RAID. For a complete list of commands, at acommand prompt, type:
Diskraid /?
Manage volume mount points. For a complete list of commands, at acommand prompt, type: mountvol /?
Defragment a volume. For a complete list of commands, at acommand prompt, type: Defrag /?
Convert a volume to the NTFS file system. At a command prompt, type: Convert /FS:NTFS
Compact a file. For a complete list of commands, at acommand prompt, type: Compact /?
Administer open files. For a complete list of commands, at acommand prompt, type: Openfiles /?
Administer VSS folders. For a complete list of commands, at acommand prompt, type: Vssadmin /?
Administer the file system. For a complete list of commands, at acommand prompt, type:
Fsutil /? Verify a file signature. At a command prompt, type:
Sigverif /?
Take ownership of a file or folder. For a complete list of commands, at acommand prompt, type: Icacls /?
-
7/27/2019 server important core commands its very simple and easy to learn with example so any one can understand easily server important core commands its very sim
8/8