Re: script on xp comp

From: samrod (samrod_at_discussions.microsoft.com)
Date: 01/14/05


Date: Thu, 13 Jan 2005 18:03:03 -0800

hello!!!!
 tried creating this batch file ....
          @echo off
          net use /persistent:no
          net use x:\\server\shared
          net use x:\\server\home folder
was place on the following... \document and settings\all users\start
menu\programs\startup\netlogon.bat (m using an xp machine). i have mapped the
drive at first to make sure it is connecting then created the netlogon batch
file. i got "system error 67 network path not found". this error was after i
restarted the machine to test. any idea on how i can make this work. i made
sure the correct drive are mapped... then this error .... please advise!!!!

"Robert L [MS-MVP]" wrote:

> these may help. quoted from http://www.ChicagoTech.net
> Example of VBScript - Mapping a network drive based on the group
>
> ' Map a network drive if the user is a member of the group.
> ' Alert the user if the drive cannot be mapped.
> If IsMember(objUser, "accounting") Then
> If Not MapDrive("Q:", "\\chicagotech\data") Then
> MsgBox "Unable to Map Q: to AdminShare"
> End If
> End If
>
> Example of batch file
>
> net use h: \\hostname\sharedname
>
> Where is logon script located
>
> By default, on Windows NT 3.x and 4.0 DC and workstations, the
> %SystemRoot%\System32\Repl\Import\Scripts folder is shared as NETLOGON for
> saving logon script. On Windows 2000/2003 servers, the
> %SystemRoot%\Sysvol\Sysvol\domainname\Scripts folder is shared as NETLOGON.
> On Windows 2000/XP workstation, the default location for local logon scripts
> is the %Systemroot%\System32\Repl\Imports\Scripts folder. The
> %Systemroot%\System32\Repl\Imports\Scripts folder is not created on a new
> installation of Windows. Therefore, the
> %SystemRoot%\System32\Repl\Imports\Scripts folder must be created and shared
> out with the share name netlogon.
>
>
> --
> For more and other information, go to http://www.ChicagoTech.net
>
> Don't send e-mail or reply to me except you need consulting services.
> Posting on MS newsgroup will benefit all readers and you may get more help.
>
> Bob Lin, MS-MVP, MCSE & CNE
> Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on
> http://www.ChicagoTech.net
> Networking Solutions, http://www.chicagotech.net/networksolutions.htm
> VPN Solutions, http://www.chicagotech.net/vpnsolutions.htm
> VPN Process and Error Analysis, http://www.chicagotech.net/VPN%20process.htm
> VPN Troubleshooting, http://www.chicagotech.net/vpn.htm
> This posting is provided "AS IS" with no warranties.
> "samrod" <samrod@discussions.microsoft.com> wrote in message
> news:1D44E020-47D5-4D08-9CFA-CEA0CB27D0BF@microsoft.com...
> > can anyone create or is there a site on how to make a simple logon script
> > for
> > me so i stay connected to my home network. just workgroup no domain. where
> > would a place the script/what extension.
> > any help is greatly appreciated !!!
>
>
>



Relevant Pages

  • Re: logon script
    ... Where is logon script located ... By default, on Windows NT 3.x and 4.0 DC and workstations, the ...
    (microsoft.public.windowsxp.network_web)
  • Re: Logon Script
    ... written into the unique folder related to the policy you used to associate ... the script command itself if you use Group Policy, or it needs to be in the ... That's where the logon script needs to be. ... If you want to put it further below the Netlogon share, ...
    (microsoft.public.windows.server.sbs)
  • Re: ifmember logon script?
    ... > If the logon script batch file and ifmember.exe are in the same folder it ... >> Years ago in Novell I remember doing an ifmember logon script - eg. ... >> I never got one to work using a batch file for Windows ...
    (microsoft.public.windows.server.scripting)
  • Re: some questions about user login script?
    ... of your logon script, map the netlogon share to a different ... It follows that if you don't have a netlogon share ... > i run win2000 but without domain, only as server. ... > folder. ...
    (microsoft.public.win2000.setup)
  • Re: Loginscript occasionally failing
    ... but I have several times seen reports where a batch file failed ... uses "z:\Login.bat" to launch the logon script. ... the drive mapping can disappear. ... clients with NT or above use UNC rather than a temporary drive to ...
    (microsoft.public.windows.server.scripting)