RE: Logon Script
- From: Tim <Tim@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 13:24:17 -0700
Hey Jaime,
I'm not a scripting guru so this is what I use in a batch file.
:group1
ifmember group1 (this is where you have a unique group ie Finance)
if not errorlevel 1 goto group2
net use P: \\server\%username%$
net use s: \\server\shared
exit
:group2
ifmember group2
if not errorlevel 1 goto group3
net use P: \\server\%username%$
net use s: \\server\shared
exit
:group3
ifmember group3
if not errorlevel 1 goto done
net use P: \\server\%username%$
net use s: \\server\shared
exit
:done
exit
Let me know if you have anyquestions
"Jaime" wrote:
> I am looking for a script that users can run at logon that will map drives
> and printers. I would like for it to check what group the users belong to
> (global group.."Accounting", "Finance") and then map the corresponding
> drives. We are currently using batch files that are for specific groups and
> I would like to consolidate them into one file for easy maintenance. We have
> no need to keep batch files. We are open to any scripting language.
>
>
> Jaime
>
.
- Prev by Date: RE: Query AD for existence of a user account.
- Next by Date: Re: Renaming Computers
- Previous by thread: service.vbs /i snmp
- Next by thread: New 2k3 migration Help Please
- Index(es):
Relevant Pages
|