Start aplication from server at user logon

By AruJammer ·

I'm running Windows 2003 SP2 with Exchange 2003.

Anyone knows how i can start an aplication, when a user logs in on the network?

When a user login with his/her account on a PC on the network an installed program on the server automatically starts running on this pc.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Login script

by dan.cox In reply to Start aplication from ser ...

I would do it in the login script.
In the user profile setup you can specify a login script to run when the user logs in.
This is in the Profile tab of the user profile.
If you have not worked with login scripts themselves you can google them and get several examples. Another great source is the scripting guys from Microsoft.
Let me know if this helps.

Collapse -

Whilst I would agree with Dan that a login script is good

by neilb@uk In reply to Start aplication from ser ...

Depending on the number of users, I would hang it off a Group Policy Object and then you wouldn't have to enter it into every user's account details.

Collapse -

Thanx for replying but...

by AruJammer In reply to Whilst I would agree with ...

Thanx for replying,

Can someone just give me example how a command line should look like in a login script?

For example to start an application like mspaint?

I"m not a programmer, and I've been searching on the net for examples, only found about mapping network drives, adding printers, they worked just fine. But i can't get a command line to start an application

Collapse -


by dan.cox In reply to Thanx for replying but...

Here is a simple VBSCript command to launch an application. (Outlook)

Set objShell = CreateObject("Wscript.Shell")
objShell.Exec("%ProgramFiles%\Microsoft Office\Office11\OUTLOOK.EXE /recycle")

This launches Outlook.

Collapse -

Again, I slightly disagree with Dan

by neilb@uk In reply to Thanx for replying but...

whilst I would use one of the vbscript Shell methods, I would use the Run Command method as this will allow you to start the Application silently. Exec will flash up a black CMD window which can be annoying.

strCommand = chr(34) & "c:\program files\internet explorer\iexplore.exe" & chr(34) & " http:\\"
Set objShell=CreateObject("")
objShell.Run stCcommand, 10, False

In the first parameter, the chr(34) inserts a double quote into the string as the filename to run contains spaces.

The second parameter of the run method can take any value from 0 up to 10.
for the list. 0 is silent.

The third parameter, bWaitonReturn, is either true or false to determine whether to wait for the Run program to exit before continuing. Usually, you'd use False if you want to fire up a program and exit the script.


Save the three lines above as iestart.vbs and stick in the logon scripts section of a user GPO to fire up IE and set the page to Google UK.

Collapse -

Error Message

by AruJammer In reply to Again, I slightly disagre ...

I get this error message.

Windows Script Host
Script: C:\WINDOWS\SYSVOL\sysvol\mydomain\scripts\iestart.vbs
Line: 3
Char: 1
Error: Invalid procedure call or argument
Code: 800A0005
Source: Microsoft VBScript runtime error


Collapse -

Ooops! Spleling mistakes!

by neilb@uk In reply to Error Message

Notice the carefully missed out 'r' and added 'c'

objShell.Run stCcommand, 10, False

should read

objShell.Run strCommand, 10, False


The shame of two such mistakes in a single variable name...

Back to Networks Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums