Re: Logon Scripts for Dept. and Printers based on Groups and IP
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Tue, 29 Apr 2008 18:34:24 +0200
<miketir@xxxxxxxxx> wrote in message
news:abbad4b5-d0e8-46e4-88a5-9ea3b6679173@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a script that was put together by a several different scripts
and some reading I have done on scripting. Anyhow, I?ve attached a
script located below that will map department shares based on the
users active directory group membership and connected printer(s)
based on their IP address. The script works well until the IP address
part. If anyone can help, that would be great. Feel free to modify
it in any way that would make the script better!
Thanks?.
=============
Splitting a string into its components is usually done with the
inbuilt "split" function:
arrOctets = Split(sIP, ".")
'Assuming IP's 172.23.1.0, 172.23.2.0, 172.23.3.0....
if arrOctets(2) = 1 Then Loc = "Floor7"
if arrOctets(2) = 2 Then Loc = "Floor9"
if arrOctets(2) = 3 Then Loc = "Floor10"
.
- Follow-Ups:
- Re: Logon Scripts for Dept. and Printers based on Groups and IP
- From: Richard Mueller [MVP]
- Re: Logon Scripts for Dept. and Printers based on Groups and IP
- References:
- Prev by Date: Logon Scripts for Dept. and Printers based on Groups and IP
- Next by Date: Re: Logon Scripts for Dept. and Printers based on Groups and IP
- Previous by thread: Logon Scripts for Dept. and Printers based on Groups and IP
- Next by thread: Re: Logon Scripts for Dept. and Printers based on Groups and IP
- Index(es):
Relevant Pages
|