|
I am trying to get the ingroup statement to work and think I must be missing something. I have a W2K domain with 98\2000 clients. I have the DSclient loaded. Is there anything I should know when it comes to group placement and accounts in Acive Directory? Any ideas?? Thanks
;----- Common variables $x="$$" $user="@userid"
;----- HS Variables $hs01="\\hs01\" $hs02="\\hs02\" $ho03="\\hs03\" $hsfol="cc40"
;----- Set home drive variable (will add ingroup/subnet later for location)
$hshome=$hs01+$user+$x $hsfollet=$hs01+$hsfol+$x ;----- Map home drive
$drname = "u:" $shname = $hshome gosub mapdr
;----- Follet mappings If ingroup("HSFollet") $drname = "z:" $shname = $hsfollet gosub mapdr endif
;----- End of script exit
;----- Drive deletion, mapping and error checking :mapdr ? "Mapping " + $drname use $drname /delete /persistent use $drname $shname if @error <> 0 ? " " + $shname + " " + @serror sleep 2 else " (complete)" endif
|