Archive for the ‘Commands’ Category

PING command using IPv4 vs IPv6

Wednesday, April 21st, 2010

If you ping a machine with IPv6 connectivity enabled you will get a IPv6 address. If you are looking for the IPv4 address instead you can use the following command

ping <ip adddress> -4

Command to choose a Specific NTP Server in Windows

Tuesday, January 5th, 2010

      1.       To set the NTP server run the following command

a.       net time /setsntp: yourservername.domain.com

2.       Stop and Start the NTP service:

a.       net stop w32time

b.      net start w32time

3.       w32tm /resync /rediscover

4.       net time /querysntp

View uptime of Windows system

Thursday, September 17th, 2009

Select Start > Run
In the Open: box type cmd and press OK
At the command prompt type: systeminfo
OR
At the command prompt type: net statistics workstation

Extract a Microsoft Service Pack

Wednesday, June 17th, 2009

Here is one that I have used a few times and never remember so I always have to search for it. The below steps will take a Microsoft Service Pack file and extract it into a folder in case only certain files are needed.

xpsp2.exe -x: c:\sp2_extracted
Press ENTER

This will extract the Service Pack files to a folder at the root of the c drive called “extracted_sp2”.

To make partition and make it bootable

Thursday, June 11th, 2009

diskpart
list disk
select disk 0
create partition primary size=xx
select partition 1
active

(xx = size of disk in MB e.g. 12000 = 12GB)