Posts Tagged Windows Server

DSQuery Operating System Service Pack Version

I had a requirement recently to get the service pack versions for all workstations on the domain. I tried a few different options but the easiest option was to use the extremely useful dsquery tool.

Without further ado, this is the command:

dsquery * -scope subtree -attr “cn” “operatingSystem” “operatingSystemServicePack”  -filter “(&(objectclass=computer)(objectcategory=computer)(operatingSystem=Windows XP*))” -limit 100000

The output of this command would be as follows:

cn                 operatingSystem                      operatingSystemServicePack
WRK001    Windows XP Professional     Service Pack 1
WRK002    Windows XP Professional     Service Pack 2
WRK003    Windows XP Professional     Service Pack 3

Where, cn is the workstation name and the others are self explanatory.

Share your handy little tips and tricks!

, , , , ,

No Comments

Diskpart.exe Warning when expanding drive

Recently when using diskpart.exe to expand a volume on a Windows Server 2000 SP4 machine, we got a warning "Deleting the primary partition has modified the partition number of the partition that contains your Windows 2000 system files.  The old partition number was 2; the new partition number is 1."

We changed the boot.ini file from:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Microsoft Windows 2000 Server" /fastdetect

to:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Server" /fastdetect

On rebooting the server, the server refused to boot throwing an NT Kernel not found error.

How to fix it:

Read the rest of this entry »

, ,

1 Comment

A Certificate could not be found that can be used with this Extensible Authentication Protocol

I got this error today when I tried configuring a RADIUS server on Windows Server 2003.  This error occurs when the server that you are trying to configure RADIUS on does not have a computer certificate assigned to it.

If you have IIS installed, requesting a certificate for any website will make this problem go away. If you dont have IIS installed, do the following:

Read the rest of this entry »

, , ,

2 Comments