I installed ScriptLogic 5.52 and instructed it to not remove the kix service on my domain controllers.
The following has since quit working:
Code:
if InGroup ("Educate Group","Research-Institute Group")
use r: /del
use r: "\\research\education"
endif
if ComputerInGroup ('Softmed Computers')=1
use m: /del
use m: "\\sft-01\softmed\wpdata"
use s: /del
use s: "\\sft-01\softmed"
endif
Function ComputerInGroup($group,optional $Domain)
Dim $oGrp
if not $domain $domain=@domain endif
$oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
if @error exit 1 endif
if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
$ComputerInGroup=1
else
$ComputerInGroup=0
endif
endfunction
No error received on the ComputerInGroup, but no mapping either. The following error results from the InGroup with two groups specified:
Script error : invalid/function call: too many parameters !
If InGroup (“Educate Group”,”Research-Institute Group”)
Anyone else have this version of ScriptLogic? I have submitted this to ScriptLogic, and will share any response I receive (if any).
tjcarst