Re: Logon Scripts for Dept. and Printers based on Groups and IP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




<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"


.



Relevant Pages

  • Where did the prophet really live?
    ... > under "North Arabian" is Classical Arabic and idioms that, ... explains why Old Arabic and ANA where written in the Sabaic script. ... Sabaic was the prestige script of the region. ... One doesn't need to dissociate the great reading from the prophet to ...
    (soc.religion.islam)
  • Re: No such file or directory
    ... Still cannot see why Perl complains that Could not open file for reading. ... I have modified my script and now using Getopt::Long module instead of the ... foreach $list { ...
    (perl.beginners)
  • RE: Trace Viewer
    ... no way from the current API of reading in a random acess form. ... so they are in more managable sizes (I'll attach a script to the ... | I tried to write one trace viewer using virtual list view control. ...
    (microsoft.public.vsnet.enterprise.tools)
  • Re: To Kill and English Teacher
    ... I used to use both Kes and Shakespeare, ... reading bits of the script. ... killed, rolled up newspaper swords, and chopping the script into one-line specials and handing them out randomly. ... By the end of a 14 week term they have a essay about character development, one about plot and sub-plot, one comparing a film version to the script as published, and one about Mr S's use of language, plenty of oral grades for the 'drama' lessons and discussions, and udually some fun bits like Wanted posters for Romeo and news reports about the deaths. ...
    (uk.rec.sheds)
  • Re: Re-opening a file
    ... I can't read it back until I run the script again. ... doing X between closing and re-opening the file?". ... server. ... For instance there are many ways for reading from a file. ...
    (comp.lang.php)