|
I have written a script that was suppose to map drive to different groups depending on which group the user belong to. The operating systems that are on the workstations are XP pro and 2000 pro. However though when the script is ran only the first set of code is ran to office Staff. If the users are not in the Office staff group then their drive is not mapping. Can any one help me? Either you can post it to this bulletin board or email at anwar@josmithinsurance.com
SetConsole ("HIDE")
If INGROUP ("Office Staff") USE P: /delete USE P: "\\josmith1\Jo Smith & Associates\Public" USE O: /delete USE O: "\\josmith1\Jo Smith & Associates\OfficeStaff" USE S: /delete USE S: "\\josmith1\Jo Smith & Associates\ScanDocs" USE N: /delete USE N: "\\josmith1\Jo Smith & Associates\Temp Employees"
If INGROUP ("Call Center") USE P: /delete USE P: "\\josmith1\Jo Smith & Associates\Public" USE T: /delete USE T: "\\josmith1\Jo Smith & Associates\CallCenter" USE S: /delete USE S: "\\josmith1\Jo Smith & Associates\ScanDocs" USE N: /delete USE N: "\\josmith1\Jo Smith & Associates\Temp Employees"
If INGROUP ("CCAdmin") USE J: /delete USE J: "\\josmith1\Jo Smith & Associates\Jo Doc" USE P: /delete USE P: "\\josmith1\Jo Smith & Associates\Public" USE T: /delete USE T: "\\josmith1\Jo Smith & Associates\CallCenter" USE S: /delete USE S: "\\josmith1\Jo Smith & Associates\ScanDocs" USE M: /delete USE M: "\\josmith1\Jo Smith & Associates\Accounting" USE N: /delete USE N: "\\josmith1\Jo Smith & Associates\Temp Employees"
If INGROUP ("Office Admin") USE J: /delete USE J: "\\josmith1\Jo Smith & Associates\Jo Doc" USE P: /delete USE P: "\\josmith1\Jo Smith & Associates\Public" USE O: /delete USE O: "\\josmith1\Jo Smith & Associates\OfficeStaff" USE S: /delete USE S: "\\josmith1\Jo Smith & Associates\ScanDocs" USE M: /delete USE M: "\\josmith1\Jo Smith & Associates\Accounting" USE N: /delete USE N: "\\josmith1\Jo Smith & Associates\Temp Employees"
If INGROUP ("President") USE J: /delete USE J: "\\josmith1\Jo Smith & Associates\Jo Doc" USE P: /delete USE P: "\\josmith1\Jo Smith & Associates\Public" USE S: /delete USE S: "\\josmith1\Jo Smith & Associates\ScanDocs" USE M: /delete USE M: "\\josmith1\Jo Smith & Associates\Accounting" USE N: /delete USE N: "\\josmith1\Jo Smith & Associates\Temp Employees" EndIf
EXIT
|