Announcement

Collapse
No announcement yet.

How do I Add desktop shortcuts using GP without login scrips

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

  • How do I Add desktop shortcuts using GP without login scrips

    Ok so what I need to do is add a shortcut to a website on 150 machines. I want to do this without using the logon scrips. Is this possible? I appreciate the help very much. Email me @[email protected]
    ________
    LeiaSwift
    Last edited by meterman; 16th August 2011, 12:14.

  • #2
    Re: How do I Add desktop shortcuts using GP with login scrips

    ok, how about with a logon script?
    ________
    Vanilla
    Last edited by meterman; 16th August 2011, 12:14.

    Comment


    • #3
      Re: How do I Add desktop shortcuts using GP without login scrips

      xcopy \\servername\sharename\shortcut.lnk c:\location\location\ (etc etc)
      1 1 was a racehorse.
      2 2 was 1 2.
      1 1 1 1 race 1 day,
      2 2 1 1 2

      Comment


      • #4
        Re: How do I Add desktop shortcuts using GP without login scrips

        I want to use a .vbs, and deploy in the GPO. Can you post a working script. please. I need some sleep
        ________
        Maurizz
        Last edited by meterman; 16th August 2011, 12:14.

        Comment


        • #5
          Re: How do I Add desktop shortcuts using GP without login scrips

          Why not open gpedit.msc

          Browse to the following

          User Configuration\Administrative Templates\Active Desktop and look for Add/Delete Items

          Hopefully that will help

          Comment


          • #6
            Re: How do I Add desktop shortcuts using GP without login scrips

            One reason why he wouldn't do that is that Active Desktop is junk! And he would need to enable it.... probably one of the worst piece of MS additions ever.
            Server 2000 MCP
            Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

            ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

            Comment


            • #7
              Re: How do I Add desktop shortcuts using GP without login scrips

              Originally posted by meterman
              I want to use a .vbs, and deploy in the GPO. Can you post a working script. please. I need some sleep
              Would have been nice to have that piece of info before I wasted my time posting.
              http://www.google.com.au/search?sour...+copy+shortcut
              1 1 was a racehorse.
              2 2 was 1 2.
              1 1 1 1 race 1 day,
              2 2 1 1 2

              Comment


              • #8
                Re: How do I Add desktop shortcuts using GP without login scrips

                ok I got the script, but what is this other way?
                the "User Configuration\Administrative Templates\Active Desktop and look for Add/Delete Items "
                When I try to do this I get a webpage on my desktop and no shortcut.
                What am I doing wrong here?

                thanks
                ________
                BBW live
                Last edited by meterman; 16th August 2011, 12:14.

                Comment


                • #9
                  Re: How do I Add desktop shortcuts using GP without login scrips

                  Ok firstly don't use Active Desktop. As i said it is junk. Secondly why do you want to use vbs? A batch file is much simpler to use and if you dont know how to script vbs files then when problems occur you will struggle to debug them. GP can deploy scripts using batch and VBScript.
                  Server 2000 MCP
                  Development: ASP, ASP.Net, PHP, VB, VB.Net, MySQL, MSSQL - Check out my blog http://tonyyeb.blogspot.com

                  ** Remember to give credit where credit is due and leave reputation points sigpic where appropriate **

                  Comment


                  • #10
                    Re: How do I Add desktop shortcuts using GP without login scrips

                    Is there ANY way I can do this without a login script?
                    Thanks.
                    ________
                    Web Shows
                    Last edited by meterman; 16th August 2011, 12:14.

                    Comment


                    • #11
                      Re: How do I Add desktop shortcuts using GP without login scrips

                      Well, there are other methods:

                      1) Distributed to the Active Desktop via GPO (even though some of us here clearly detest Active Desktop - it is an available option).

                      2) Using a program like SMS.

                      3) Use a .vbs script run via GPO

                      One can use a batchfile, but the batchfile has to be run on each workstation and you would have to manually (using sneakernet) go round to each workstation to run it unless you put it in the login script.

                      The code for the .vbs script is as follows:

                      Set WshShell = CreateObject("WScript.Shell")
                      set objFSO = CreateObject("Scripting.FileSystemObject")

                      strDesktop = WshShell.SpecialFolders("Desktop")

                      IF Not objFSO.FileExists(strDesktop & "\DesktopIconName.lnk") THEN
                      set oShellLink = WshShell.CreateShortcut(strDesktop & "\DesktopIconName.lnk")
                      oShellLink.TargetPath = "http://WebSiteAddress"
                      oShellLink.WindowStyle = 1
                      oShellLink.IconLocation = "SHELL32.dll, 18"
                      oShellLink.Description = "DesktopIconDescription"
                      oShellLink.WorkingDirectory = "http://WebSiteAddress"
                      oShellLink.Save
                      set oShellLink = NOTHING
                      END IF

                      Set WshShell = NOTHING
                      Set objFSO = NOTHING

                      In the GPO Edit, go to the User Configuration --> Windows Settings --> Scripts --> Logon. You can enter the location of the script to be run there (remember that it has to be a share which all of the desired users can access with enough rights for them to run the script).
                      I know that this definitely works for me (have it running in production right now).

                      Hope this help - let me know if the code doesn't work.

                      James

                      Comment


                      • #12
                        Re: How do I Add desktop shortcuts using GP without login scrips

                        how do I do the number 1 option with active desktop?
                        ________
                        teen girl Cams
                        Last edited by meterman; 16th August 2011, 12:15.

                        Comment


                        • #13
                          Re: How do I Add desktop shortcuts using GP without login scrips

                          This is the script I am using: But I want to do it without a script or another application. when I go to "User Configuration\Administrative Templates\Active Desktop and look for Add/Delete Items "
                          When I try to do this I get a webpage on my desktop and no shortcut.
                          What am I doing wrong here?




                          ' Create a ShortCut to the ExecuTrain Libraries on desktop:
                          'Create a WshShell Object
                          Set WshShell = Wscript.CreateObject("Wscript.Shell")
                          'Create a WshShortcut Object
                          strDesktop = WshShell.SpecialFolders("Desktop")
                          Set oURLLink = WshShell.CreateShortcut(strDesktop + "\www.execurain-aus.com.URL")
                          'Set the Tragte URL
                          oURLLink.TargetPath = "http://www.execurain-aus.com/"
                          'Save the shortcut
                          oURLLink.Save
                          ________
                          CALIFORNIA MEDICAL MARIJUANA DISPENSARY
                          Last edited by meterman; 16th August 2011, 12:15.

                          Comment


                          • #14
                            Re: How do I Add desktop shortcuts using GP without login scrips

                            Also about the scripts. What credentials do they run under. What if the user does not have the rights to modify the desktop....
                            ________
                            WEB SHOWS
                            Last edited by meterman; 16th August 2011, 12:15.

                            Comment


                            • #15
                              Re: How do I Add desktop shortcuts using GP without login scrips

                              'Windows Script Host (WSH)
                              Set fso = CreateObject("Scripting.FileSystemObject")
                              Set WshShell = CreateObject("WScript.Shell")
                              on error resume next
                              Desktop = WSHShell.SpecialFolders("Desktop")
                              'WinWord
                              Set shortcut = WSHShell.CreateShortcut(Desktop & "\WinWord.lnk")
                              Shortcut.WindowStyle = 3
                              Shortcut.TargetPath = "C:\Programs File\Microsoft Office\OFFICE11\WINWORD.EXE"
                              Shortcut.WorkingDirectory = " C:\Programs File\Microsoft Office\OFFICE11"
                              Shortcut.IconLocation = "C:\Programs File\Microsoft Office\OFFICE11\WINWORD.EXE"
                              Shortcut.Save

                              'Host Emulation 3270
                              Set Shortcut = WSHShell.CreateShortcut(Desktop & "\Emulación 3270.lnk")
                              Shortcut.WindowStyle = 3
                              Shortcut.TargetPath ="C:\Archivos de programa\Microsoft Host Integration Server\system\win3270.exe"
                              parametro1="c:\windows\production.cfg"
                              Shortcut.WorkingDirectory = chr(34)&destino&chr(34)&chr(32)&chr(34)&parametro1 &chr(34)
                              Shortcut.WorkingDirectory = "C:\Programs File\Microsoft Host Integration Server\system"
                              Shortcut.IconLocation = "C:\Programs File\Microsoft Host Integration Server\system\win3270.exe"
                              Shortcut.Save


                              Set fso=nothing
                              Set WshShell = nothing
                              Sub Print(x)
                              WScript.Echo x
                              End Sub

                              sub BorraFichero(fichero)
                              if fso.FileExists(fichero) then fso.DeleteFile(fichero)
                              end sub

                              Comment

                              Working...
                              X