Announcement

Collapse
No announcement yet.

GPO - Deploy Application to User Desktop as shortcut.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPO - Deploy Application to User Desktop as shortcut.

    Dear all,

    Recently I have study on create shortcut to Lock Computer.
    Refering below link.
    http://www.microsoft.com/windowsxp/u.../schnoll1.mspx

    After study and tested, result is working.

    May I know is there any solution to use GPO for deploy this shortcut in all users Desktop?

    Please advise.

  • #2
    Re: GPO - Deploy Application to User Desktop as shortcut.

    Why not just use Windows Key + L? Just a thought.

    I think that deploying shortcuts via GPO is done with a logon script:

    http://forums.petri.com/showthread.php?t=7718

    Comment


    • #3
      Re: GPO - Deploy Application to User Desktop as shortcut.

      Originally posted by kynixtanls View Post
      is there any solution to use GPO for deploy this shortcut in all users Desktop?
      Configure a Computer Startup Script (since the target is the All Users desktop folder you can not run it as a user logon script unless all the users are local admins).

      - If using a batch startup script:
      you can perform a file copy to copy the short cut from a share to the all users folder on the computer.
      Batch sample: http://forums.petri.com/showpost.php...14&postcount=4

      - Or when using a vbs startup script
      you create the shortcut with the script.
      Vbscript sample:
      Code:
      ' Const CSIDL_USER_DESKTOP = &H10&
      Const CSIDL_ALLUSERS_DESKTOP = &H19&
      
      Dim WshShell: set WshShell = CreateObject("WScript.Shell")
      
      With CreateObject("Shell.Application")
         Set objAllUsersDesktop = .Namespace(CSIDL_ALLUSERS_DESKTOP)
      End With
      
      strLNKPath = objAllUsersDesktop.Self.Path
      strLNKname = "Lock Session"
      strTarget = "rundll32.exe"
      strArguments = "user32.dll,LockWorkStation"
      Call CreateShortcut(strLNKPath, strLNKname, strTarget, strArguments)
      
      Sub CreateShortcut(sFolder, sName, sTarget, sArgs)
         With WshShell '(has a global scope)
            With .CreateShortcut(sFolder &"\" & sName  &".LNK")
               .TargetPath = sTarget
               .Description = sName
               .Arguments = sArgs
               'icons, http://www.mvps.org/serenitymacros/iconlist.html
               .IconLocation = "shell32.dll, 44"
               .WindowStyle = 3
               .WorkingDirectory = "."
               .Save
            End With
         End With
      End Sub
      \Rems

      This posting is provided "AS IS" with no warranties, and confers no rights.

      __________________

      ** Remember to give credit where credit's due **
      and leave Reputation Points for meaningful posts

      Comment


      • #4
        Re: GPO - Deploy Application to User Desktop as shortcut.

        If you have 2008 DC running in your AD environment you should be able to take advantage of a new "Preferences" feature that contains a setting for creating/deploying shortcuts using GPO.
        Regards,
        John

        Comment

        Working...
        X