Windows Logon Script: Creating a specific shortcut on all users desktop?

Discussion in 'Web Design & Coding' started by Punkrulz, Oct 3, 2007.

  1. Punkrulz

    Punkrulz Somewhat eXPerienced

    Messages:
    790
    Location:
    Woodbury, NJ
    Hey guys,

    While I really would like to deploy the actual shortcut using our version of PolicyMaker, I'm having a lot of issues with the group policy on our domain right now; nothing seems to ever work 100%. So in the mean time, I need to come up with a solution on how to get a specific shortcut on peoples' desktops of whom need it.

    Can I do this via a logon script, and if so, can someone please help me write it? I don't know anything about scripting, I have not found any adequate resources that would be able to teach me scripting online. Your help is appreciated!

    Thanks!
     
  2. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    What I would recommend is you create that shortcut somewhere that all users have read-access to. Then, add this line to the login script for those who need it:

    COPY MYSHORTCUT.LNK %userprofile%\Desktop

    Change the variables accordingly
     
  3. Punkrulz

    Punkrulz Somewhat eXPerienced

    Messages:
    790
    Location:
    Woodbury, NJ
    If I was to place the shortcut on our server named "controler", and the shortcut was pointing to here:

    \\dc_fin\programs\mcsj\mcsj.exe -s10.0.1.253 -dtestdb

    How would I change that, and are you referring to adding it to the main login script? Or creating another?
     
  4. Electronic Punk

    Electronic Punk Administrator Staff Member Political User Folding Team

    Messages:
    18,590
    Location:
    Copenhagen, Denmark
    Could also add it to the default user profile for future users.
     
  5. kcnychief

    kcnychief █▄█ ▀█▄ █ Political User Folding Team

    Messages:
    16,948
    Location:
    Massachusetts
    Create the shortcut first on any machine and verify it works. Then, save that shortcut, then point to the shortcut.

    From what I gather this doesn't go out to everyone, just select people.