#131391 - 2004-12-15 11:17 PM
Active Directory Groups and Drive Mapping
|
susan_ling
Lurker
Registered: 2004-12-15
Posts: 1
|
first of all i am new here and having a hard time finding the post link / start a new topic.
anyways, need help here with the script.
somehow the drives do not map. the only one that does is the one outside the loop.
where am i going wrong. susan_ling@yahoo.com
Dim $server1 Dim $server2 Dim $index Dim $group Dim $profile Dim $location Dim $dom
; *** assign values to the variables here *** $server1 = "lantestsvr" $server2 = "lantestsvr" $dom = "lantest"
DO $group = ENUMGROUP($index)
IF $group="Accounting" Or $group="lantest\Accounting" USE U: "\\$server1\groups\accounting" ENDIF
IF $group="FoodBeverage" Or $group="lantest\FoodBeverage" USE V: "\\$server1\groups\foodbeverage" ENDIF
IF $group="HumanResource" Or $group="lantest\HumanResource" USE W: "\\$server1\groups\humanresource" ENDIF
IF $group="Programs" Or $group="lantest\Programs" USE H: "\\$server1\groups\programs" ENDIF
UNTIL Len($group) = 0
USE Q: "\\$server1\public"
EXIT
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1551 anonymous users online.
|
|
|