Re: script on xp comp
From: Robert L [MS-MVP] (noreply_at_hotmail.com)
Date: 01/13/05
- Next message: Eric the IT Idiot: "Re: Cannot see some computers on the network"
- Previous message: Chuck: "Re: Error 624"
- In reply to: samrod: "script on xp comp"
- Next in thread: samrod: "Re: script on xp comp"
- Reply: samrod: "Re: script on xp comp"
- Messages sorted by: [ date ] [ thread ]
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 !!!
- Next message: Eric the IT Idiot: "Re: Cannot see some computers on the network"
- Previous message: Chuck: "Re: Error 624"
- In reply to: samrod: "script on xp comp"
- Next in thread: samrod: "Re: script on xp comp"
- Reply: samrod: "Re: script on xp comp"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|