Re: Help on script

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Chris Jones (cka691_at_alltel.net)
Date: 03/16/04


Date: Tue, 16 Mar 2004 16:43:54 -0500

By the way........change the \\server01\seals to match your servername and
drive name

"Chris Jones" <cka691@alltel.net> wrote in message
news:OXVUt85CEHA.1600@tk2msftngp13.phx.gbl...
> Try this I would email the script to you, but being you dont know me you
> wouldnt open it, I wouldnt either. Put this into a text file and rename it
> something.vbs call on it in you SBS Login .bat file.
>
> Set WshShell = WScript.CreateObject("WScript.Shell")
> Set WshNetwork = WScript.CreateObject("WScript.Network")
> Set AllDrives = WshNetwork.EnumNetworkDrives()
>
> DriveLetter = "Z:" 'must be capitalized
> RemotePath = "\\Server01\SEALS"
>
>
> AlreadyConnected = False
> For i = 0 To AllDrives.Count - 1 Step 2
> If AllDrives.Item(i) = DriveLetter Then AlreadyConnected = True
> Next
>
> If AlreadyConnected = False then
> WShNetwork.MapNetworkDrive DriveLetter, RemotePath
> WshShell.PopUp "Drive " & DriveLetter & " connected successfully."
>
> Else
> WShNetwork.RemoveNetworkDrive DriveLetter
> WshShell.PopUp "Drive " & DriveLetter & " disconnected."
> End if
>
>
>
>
>
>
> "Per Bäckman" <anonymous@discussions.microsoft.com> wrote in message
> news:b17501c40b56$d1629b90$a601280a@phx.gbl...
> > I would like to mapp up some drivletters for all users.
> > I edited C:\WINDOWS.2
> > \SYSVOL\domain\scripts\SBS_LOGIN_SCRIPT.bat (strange wit
> > the 2 in the filename)
> > so that it look like:
> > \\SERVER\Clients\Setup\setup.exe /s SERVER
> > Net Use o: \\server\hi-fog
> > Net Use m: \\server\spcs4
> > and so on
> >
> > Every time I log on to the clients i get "system error 85"
> > but the drives are mapped up. I seems like that it tries
> > for more tha once.
> > I also find foldernames like c:\windows.0, c:\windows.1,
> > c:\windows.2 on my drive. Yes I did create a large
> > partition of all from the start.
> > Question
> > What is the problem with my script
> > What are the miltipple kind of Windows folders?
> > Help me out pliiiiize
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.622 / Virus Database: 400 - Release Date: 3/13/2004
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.622 / Virus Database: 400 - Release Date: 3/13/2004


Relevant Pages

  • Re: Post from 2003-11-07 20:18 contains virus in attached file.
    ... There was no payload in the script. ... Ham just wants to perform a clean registery ... |> | Outgoing mail is certified Virus Free. ...
    (microsoft.public.security.virus)
  • Re: changing NT passwords across the Internet using SSL
    ... the password, but you still need a script, probably an ADSI script, to ... search www.google.com or www.microsoft.com/support for "ADSI ... Outgoing mail is certified Virus Free. ...
    (microsoft.public.inetserver.iis.security)
  • Assistance for product ids
    ... i need a script to enable me to list the product ids of installed ... Outgoing mail is certified Virus Free. ...
    (microsoft.public.scripting.wsh)
  • Re: Failed XP-HOME installation
    ... why didn't you format the drives NTFS.... ... Outgoing mail is certified Virus Free. ... Checked by AVG anti-virus system. ...
    (microsoft.public.windowsxp.general)
  • Re: General info request
    ... Use this script: ... Sean. ... Outgoing mail is certified Virus Free. ...
    (microsoft.public.frontpage.addins)