Re: script on xp comp

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

From: Robert L [MS-MVP] (noreply_at_hotmail.com)
Date: 01/13/05


Date: Thu, 13 Jan 2005 14:51:35 -0600

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: Slow VPN logon and Spuratic folder visibility
    ... I understand that the remote VPN client ... network configuration. ... the VPN client can access SBS fine? ... Slow VPN logon and Spuratic folder visibility ...
    (microsoft.public.windows.server.sbs)
  • Re: Best Way to connect remote client and share folder
    ... >>> the SBS2003 to access a shared folder on the VPN computer? ... >>> Ideally I would like a folder to appear in the Network Places ... > them to 3389 and the IP of THEIR workstation in the main network. ...
    (microsoft.public.windows.server.sbs)
  • Re: login script query
    ... Assuming you don't have DC and you want all users use the same logon script, save the script in startup folder under All Users. ... Networking, Internet, Routing, VPN Troubleshooting on ... i want to write a logon for a mapped drive on a small workgroup network. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Network Connections stumper
    ... Networking, Internet, Routing, VPN Troubleshooting on ... How to Setup Windows, Network, VPN & Remote Access on ... At the same time, I find on my desktop a folder named "_hiddenPbk", which, ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: Granting access based on user location
    ... > on Corporate network. ... > to only seeing info from folder A and B ... > attaching to the Corporate network. ... > If the user is using his laptop it will most likely be VPN, ...
    (microsoft.public.windows.server.security)