Like this:

Code:
  
; $System defines local machine (null) or remote server name
$System = SNVerify($HostName)
$System ? ; <-----<<



If KeyExist($System + $RegSoft + 'Windows NT') <> 0
'NT' ? ; <-----<<
$SClass = '' ; no "D" prefix
$NT = ' NT' ; " NT" required in Windows registry path

Else
'Desktop' ? ; <------<<
$SClass = 'D' ; "D" prefix for desktop systems
$NT = '' ; no NT in Windows registry path
$OS_Sp = 0 ; service pack level (none)
$OS_Role = 'Workstation' ; Workstation role

EndIf
'.' ? ; <-----<<




Note the variable printouts, messages, and '.' output. The '.' is useful for long processes and iterations, just to know something is happening, or to determine how far the script has progressed.

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