Re: Login Script
- From: musosdev <musoswire@xxxxxxxxxxxxxxxx>
- Date: Fri, 19 Jan 2007 12:20:07 -0800
"Richard Mueller [MVP]" wrote:
Nigel wrote:
Basically just creating mapped drives dependant on AD security groups, and
also mapping to user folders based on AD user accounts.
The echo worked fine. Do you know if you can set it to display without
having to press ok, so I can just display the message with a timeout each
time.?
You can use the Popup method of the wshShell object. For example:
Set objShell = CreateObject("Wscript.Shell")
intAns = objShell.Popup("Please standby..", 10, "Logon Script", vbOKOnly +
vbInformation)
The parameters are message text, timeout in seconds, title, and
buttons/icons. However, script processing stops until the user either
presses OK, or the timeout expires. If you ask a question and use vbYesNo,
for example, Popup returns which button was selected.
--
We used this in a GPO setting to run Logon/Logoff scripts so we could
provide a way of know what extension no people were on in a hot desking
environment.
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Popup "Logging on...", 1, "Welcome", vbInformation
Which displays the popup for 1 second - no user interaction reqd.
.
- References:
- Re: Login Script
- From: Al Dunbar [MS-MVP]
- Re: Login Script
- From: Nigel Yardley [MCSE]
- Re: Login Script
- From: Al Dunbar [MS-MVP]
- Re: Login Script
- From: Nigel Yardley [MCSE]
- Re: Login Script
- From: Richard Mueller [MVP]
- Re: Login Script
- Prev by Date: Help with importing .dat file
- Next by Date: Re: Login Script
- Previous by thread: Re: Login Script
- Next by thread: Re: Login Script
- Index(es):
Relevant Pages
|