hi....

i did get the format i wanted for the output:
Code:
 
WHILE $Line <> '' AND @ERRORLEVEL=0
$aPerms=Split($Line,':')
$sPerms=$aPerms[1]
;//get the username//
$data=split($line,'')
IF Perms($sPerms)
? $data[0] + ' has $sPerms permissions assigned'
ELSE
? 'No perms found'
ENDIF
$Line=ReadLine(1)
LOOP
$RC=Close(1)


I will use your suggestion to output to the datafile.

I was told this morning that there is an added requirement to the query (when is there not???)
We need to be able to determine if the USB device is enabled or disabled. I was able to use a WMI query that I found in the post that shows the USB devices (i.e. controllers), but I need to know if there is an easy way to flag the device if it is enabled which we then pass off to the datafile...

_________________________
John
LM Contractor
One of the 2 dads