Results 1 to 3 of 3

Thread: Run these programs at user logon & environment variables

  1. #1
    fedayn is offline Getting Started on GPanswers.com
    Join Date
    Jan 2010
    Posts
    4

    Default Run these programs at user logon & environment variables

    Hi,

    Trying to run an application when the users logon to the domain and it only works when specifying the full path, but it doesn't work the case I use environtment variables.

    I've look on the Internet and I've seen a few sites saying that it's better to use environment variables.

    Thanks in advance.
    Attached Images Attached Images

  2. #2
    jeff_longley is offline 30+ Helpful Posts 50+ Helpful Posts
    Join Date
    Dec 2010
    Posts
    61

    Default

    Whats the application? Where does it live - Server side or client? Whats the command line your executing?

  3. #3
    fedayn is offline Getting Started on GPanswers.com
    Join Date
    Jan 2010
    Posts
    4

    Default

    Hi Jeff,

    Thank you for your answer.

    I've created and script to modify the registry key objShell.RegWrite HKCU\Software\Microsoft\Windows\CurrentVersion\Run Once\Communicator withe the path of the communicator.exe %ProgramFiles%\Microsoft Office Communicator\communicator.exe and everything went well. Communicator ran just once as wanted. The registry value has to be a REG_EXPAND_SZ as you're using environment variables and the path within quotation marks.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO