Re: Login Script

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





"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.
.



Relevant Pages

  • Re: Login Script
    ... Do you know if you can set it to display without ... so I can just display the message with a timeout each ... You can use the Popup method of the wshShell object. ... script processing stops until the user either ...
    (microsoft.public.scripting.wsh)
  • Re: Is threading the right solution for this challenge?
    ... The CPU will not cycle out of control on the display thread, ... WITH TIMEOUT would be fairly ... "I've got a cart with a donkey which has a HUGE ... purely a Character Mode display. ...
    (comp.lang.cobol)
  • Re: Attempted summary of suspend-blockers LKML thread
    ... So you would not want to suspend the system just because there were ... this is the sort of timeout I am talking about. ... the CPU is asleep (the OLPC and the Kindle, two different display ... I think that there are relativly few apps that you ...
    (Linux-Kernel)
  • Re: Is threading the right solution for this challenge?
    ... Have a continually refreshing display screen that also ... In ACCEPT with TIMEOUT, what happens if the user was in the process of entering data, and then the timeout occurs? ... threaded applications and try to discern what I can. ...
    (comp.lang.cobol)
  • Re: .Popup method in logon script in Vista
    ... Let the popup come up as per settings aka 'backward to win32'. ... time-out of 0 seconds will display. ... logon script time-out), and does not display on Vista. ...
    (microsoft.public.scripting.wsh)