Computing.Net > Forums > Windows 2000 > WIN2K VBS logon scripts

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

WIN2K VBS logon scripts

Reply to Message Icon

Name: Paul Harper
Date: October 19, 2000 at 03:03:19 Pacific
Comment:

I would like to find a typical example of a WIN2K logon script written in VB script.
What are most people using.



Sponsored Link
Ads by Google

Response Number 1
Name: torn
Date: October 22, 2000 at 17:43:44 Pacific
Reply:

I wish I could help you but I am also having an issue with this. If you find an example or solution please let me know.
Thank you,

Jeremy


0

Response Number 2
Name: John S. Cole
Date: November 18, 2001 at 23:05:43 Pacific
Reply:

'Here's an example of one that I have
'working on my network. I have been
'having some issues trying to get it to work
'with Win9x clients, but it works like a
'charm with Win2K and WinXP clients.
no keys--------
Option Explicit
'This is a log in script for users in my Domain.
'The script will map a drive for the user who logs on
Dim myNetwork
Dim fso
Dim wsShell
Dim dmnGreeting, GreetTime
Dim dmnUser, dmnName

Set myNetwork = CreateObject("Wscript.Network")
Set fso = CreateObject("Scripting.FileSystemObject")
Set wsShell = CreateObject("Wscript.Shell")

dmnName = myNetwork.UserDomain
dmnUser = myNetwork.UserName

If fso.DriveExists("X:") = False Then
myNetwork.MapNetworkDrive "x:", "\\NT2K_Dom\" & dmnUser
End If

If Hour(Now) > 12 Then
GreetTime = "Good Afternoon"
ElseIf Hour(Now) > 18 Then
GreetTime = "Good Evening"
Else
GreetTime = "Good Morning"
End If

dmnGreeting = GreetTime & ", " & dmnUser
wsShell.popup dmnGreeting,0


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: WIN2K VBS logon scripts

vbs logon scripts www.computing.net/answers/windows-2000/vbs-logon-scripts/19401.html

vbs logon scripts www.computing.net/answers/windows-2000/vbs-logon-scripts/9273.html

Running logon script on win2K Serve www.computing.net/answers/windows-2000/running-logon-script-on-win2k-serve/52202.html