Chris,
What are you going to do with the info once it's in a TXT file? Also how are you going to deal with multiple entries from the same machine.
If you plan to use the collected data programmatically, then I still say an INI file is the way to go.
Here's an exerpt from a script I started a while back that will take the default printer from the reg and write it to an INI.
code:
break on
$_ = SetOption("WrapAtEOL", "On")
$OldPS = "FF_TREE"
$NewPS = "FFPRINT"
$WkstaINI = "\\PDC\Logs\Wksta.ini"
; Retrieve default printer from Registry
;
$PrnMigINI = "\\PDC\Logs\PrnMig.ini"
$HKCUSMWNTCVW = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows"
$CurDefPrnValDat = ReadValue($HKCUSMWNTCVW,"Device")
;?"Cur Def Printer Value: " + $CurDefPrnValDat
$CurDefSvrPrn = "\\" + SubStr($CurDefPrnValDat,3,InStr($CurDefPrnValDat,",")-3)
?"Cur Default Server\Printer: " + $CurDefSvrPrn
$CurDefSvr = SubStr($CurDefSvrPrn,3,InStrRev($CurDefSvrPrn,"\")-3)
?"Cur Default Server: " + $CurDefSvr
;*************************************************************
; Write default printer to INI
;
$RC = WriteProfileString($WkstaINI,@Wksta,"DefaultPrinter",$CurDefSvrPrn)
get $_