Thanks again! now's here's a new one. I'm trying to set the default printer depending on the group there in. I've created groups in the AD having the following format: P-<printername>. So I thought I could take this info from the membership and strip the P- part and use the rest to set the defaultprinter. So i've "made" this script:
Code:
;ShowStatusPrinter()
Function ShowStatusPrinter($sStatus)
Dim $asGroupBits
Dim $asGroups
Dim $sPrintserver
$asGroups=EnumGroup(@USERID)
$asGroupBits=Split($asGroups,"P-")
$sPrintserver = "\\FINASSERVER\"
If $sStatus = 1
? ""+$sPrintserver +$asGroupBits""
EndIf
EndFunction
The ? part is just to test if the correct info is used in the script, but I'm getting the message:
ERROR : error in expression: this type af array is not supported in expressions.!
regards,
jeroen