Re: mapped drives

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





"Olaf Engelke [MVP Windows Server]" wrote:

> Hi,
> sherman wrote:
> >> Hi,
> >> sherman wrote:
> >>> Within my script i have set it up for 4 mapped drives, but for some
> >>> reason when I log on, only 2 show up although I am suppose to have 3
> >>> mapped drives in my profile. Is there a setting within windows 2000
> >>> server that you can set to limit the amount a drives? Where can I go
> >>> to fix this problem?
> >>
> >> if you run the script later manually from the same user account,
> >> does it execute properly then?
> >> Would you post the contents of your script?
>
> are the Group memberships for the logging in accounts really correct (are
> they member of all the groups)?
> Would the mappings work, if you make a simple script without IF conditions
> and error checking?
> Btw.: Your error messages everytime point to drive S: .
> Are the drive letters already connected (open a cmd prompt and execute the
> command
> net use
> Best greetings from Germany
> Olaf
>
> > Here is the script
>
> > IF INGROUP("Counselors")
> > USE I: "\\spms1\Counselors"
> > IF @error
> > ? "Couldn't map drive S:"
> > ? "ERROR: " @error " " @serror
> > sleep 5
> > End IF
> > END IF
> >
> > IF INGROUP("Office")
> > USE E: "\\spms1\Office"
> > IF @error
> > ? "Couldn't map drive S:"
> > ? "ERROR: " @error " " @serror
> > sleep 5
> > End IF
> > END IF
> >
> > IF INGROUP("SummerSchool")
> > USE J: "\\spms1\SummerSchool"
> > IF @error
> > ? "Couldn't map drive S:"
> > ? "ERROR: " @error " " @serror
> > sleep 5
> > End IF
> > END IF
> >
> >
> > IF INGROUP("Aeries Users")
> > IF @DOS="4.0"
> > USE S: "\\10.1.1.4\AERIES"
> > IF @error
> > ? "Couldn't map drive S:"
> > ? "ERROR: " @error " " @serror
> > sleep 5
> > END IF
> > ENDIF
> > ENDIF
> >
> > If i manually execute the script i would get the welcome screen and
> > it would map
> > only the drive that I manually set in the account in active directory
> > and the first drive
> > within the script itself
>
> the drive that i want to connect to is drive E: for the Office group and it doesn't map. Only my home drive which I manually set up in active directory and the I: drive for the ingroup "Councelors" in the scrip maps. I used the net use command in DOS to map the E: drive and it worked. I just don't understand why it isn't working in the script.
.



Relevant Pages

  • Re: Will Linux become as vulnerable as MS ??
    ... > beeing vulnerable to viruses. ... > that they know are executable, and execute intentionally. ... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ...
    (comp.os.linux.security)
  • Re: Small, understandable Forth
    ... intelligence from the word to the script. ... niclos file script files, but only in the directory in which they are ... \ there are required support vocabularies, ... RDROP EXECUTE DEFINITIONS; ...
    (comp.lang.forth)
  • Re: [Full-Disclosure] ColdFusion cross-site scripting security vulnerability of an error page
    ... > execute the arbitrary javascript and HTML code which the attacker ... > It is possible to display the contents transmitted from the client ... > cross-site scripting attack can be executed. ... the script will be executed when the script for an attack ...
    (Full-Disclosure)
  • CGIscript.net - csMailto.cgi - Remote Command Execution
    ... CGIscript.net - csMailto.cgi - Remote Command ... csMailto is a perl cgi formmail script developed by ... execute command on server and mail output to anyone ...
    (Bugtraq)
  • Re: Extracting data from an XML to put into a constant
    ... ExecuteGlobal "Const cnUB = 9" ... The following script causes the same error. ... Ordinary variables and constants defined with execute statements have ... no value until their defining statement is executed at run time. ...
    (microsoft.public.scripting.vbscript)