Maybe not a bug, but a loss of functionality now exists in the @PRODUCTTYPE macro for Windows 2008 platforms.

In all prior versions of the Windows OS, the PRODUCTTYPE macro differentiated between Servers and Domain Controllers. That allowed something like
 Code:
If Instr(@PRODUCTTYPE, 'Server') Or Instr(@PRODUCTTYPE, 'Controller')
  $IsServer = 1
  If Instr(@PRODUCTTYPE, 'Controller')
    $IsDC = 1
  EndIf
EndIf
to set flags for Server and DC roles.

On Windows 2008, the Domain Controller is no longer listed as a separate product type. All DCs and servers are now simply listed as "Server" (yes, there are several classes of "Windows Server 2008...", but none list "Domain Controller".

There are WMI methods to determine DC roles, but it's now extra code. It would be nice to have this functionality extended to the Windows 2008 descriptions.

Alternately, a DOMAINROLE macro that returned the same values as the WMI DomainRole values would be a nice addition:
Value Hex value DomainRole
0 0x0 Standalone Workstation
1 0x1 Member Workstation
2 0c2 Standalone Server
3 0x3 Member Server
4 0x4 Backup Domain Controller
5 0x5 Primary Domain Controller

OK - I'm done whining... ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D