Excellent. Swapped a couple of the variables around and all works now.
WshShell.Popup "Good " & GreetingTime & " " & strUser & "!" ,2, "Welcome"
WshShell.Popup "You are now being logged into the system",2, "Log on"
Now to add my proxy configuration check.
ok thankyou. How can I include the following though
"Good " & GreetingTime & " " & strUser & "!"
I have the script before recognising what the time is and sending that to the GreetingTime so that it then prints depending on the time of day and then the user's name.
Hi,
I'm trying to create a logon script and have my mappings and everything working, but struggling with the Greetings.
I have this at the moment
' let's display a welcome message
dim sTime, sDate, strUser
sTime = Hour (now)
sDate = Now
strUser = objnetwork.UserName
If sTime <=11 Then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.