Results 1 to 3 of 3

Thread: Placing an icon on desktop using group policy

  1. #1
    Join Date
    Feb 2006
    Posts
    98

    Placing an icon on desktop using group policy

    I am looking to place an icon that will be a shortcut for an intranet site on all the users desktop using group policy. I have checked the group policy but there is nothing which I can use to address my problem. Can anyone please help me out? Thanks.

  2. #2
    Join Date
    Jan 2006
    Posts
    6,878

    Re: Placing an icon on desktop using group policy

    You can try to write a new VB logon script that will create the shortcut and use Group Policy to assign the script. Check the below code that will work for you:
    Code:
    Set objShell = WScript.CreateObject("WScript.Shell")
    strDesktop = objShell.SpecialFolders("Desktop")
    Set objShortcut= objShell.CreateShortcut(strDesktop & "\Simon's new
    Shortcut.lnk")
    With objShortcut
    .TargetPath = "\\server\share\app.exe"
    .WorkingDirectory = strDesktop
    .Save

  3. #3
    Join Date
    Sep 2009
    Posts
    1

    Re: Placing an icon on desktop using group policy

    Thanks! Your script works... almost ;)

    Just add End With after your last line .Save

    //Cptred

Similar Threads

  1. Force desktop icons using Group Policy?
    By Mr. DR in forum Windows Security
    Replies: 2
    Last Post: 19-10-2011, 03:29 PM
  2. Using local group policy to override domain group policy
    By Nickason in forum Active Directory
    Replies: 3
    Last Post: 28-09-2011, 04:20 AM
  3. Active desktop background in group policy
    By m3pilot in forum Active Directory
    Replies: 3
    Last Post: 20-06-2011, 01:33 PM
  4. Replies: 2
    Last Post: 17-04-2009, 07:55 PM
  5. Active desktop background in group policy based on web
    By yosemite_85 in forum Windows Software
    Replies: 2
    Last Post: 24-03-2009, 04:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,555,324.65740 seconds with 18 queries