Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I would like to find a typical example of a WIN2K logon script written in VB script.
What are most people using.

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

'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, dmnNameSet myNetwork = CreateObject("Wscript.Network")
Set fso = CreateObject("Scripting.FileSystemObject")
Set wsShell = CreateObject("Wscript.Shell")dmnName = myNetwork.UserDomain
dmnUser = myNetwork.UserNameIf fso.DriveExists("X:") = False Then
myNetwork.MapNetworkDrive "x:", "\\NT2K_Dom\" & dmnUser
End IfIf Hour(Now) > 12 Then
GreetTime = "Good Afternoon"
ElseIf Hour(Now) > 18 Then
GreetTime = "Good Evening"
Else
GreetTime = "Good Morning"
End IfdmnGreeting = GreetTime & ", " & dmnUser
wsShell.popup dmnGreeting,0

![]() |
![]() |
![]() |

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