Solved

i want to push short cut in all the desktop using group policy

Posted on 2006-07-20
8
223 Views
Last Modified: 2013-12-04
i want to push short cut in all the desktop using group policy ,i have win20003 DC
0
Comment
Question by:ashkaat
8 Comments
 
LVL 48

Accepted Solution

by:
Jay_Jay70 earned 168 total points
Comment Utility
you need to script this - not a GPO trait unless you use GPO to push the script
0
 
LVL 3

Author Comment

by:ashkaat
Comment Utility
yes , i think i have to write script in logon
you can help me on this? i like to add short cut
0
 
LVL 26

Assisted Solution

by:Pber
Pber earned 166 total points
Comment Utility
In either a GPO logon script or a logon script use the following VBS script:

'start of Shortcut.VBS
Dim strPath,strWorking,strShortcutName
strPath = "C:\windows\system32\notepad.exe"
strWorking = "C:\windows\system32"
strShortcutName = "My Notepad Shortcut"
'just edit the 3 lines above

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
Dim MyShortcut, MyDesktop, DesktopPath
'DesktopPath = WSHShell.SpecialFolders("Desktop")
DesktopPath = "C:\Documents and Settings\All Users\Desktop"
Set MyShortcut = WSHShell.CreateShortcut(DesktopPath & "\" & strShortcutName & ".lnk")
MyShortcut.TargetPath = WSHShell.ExpandEnvironmentStrings (strPath)
MyShortcut.WorkingDirectory = WSHShell.ExpandEnvironmentStrings(strWorking)
MyShortcut.WindowStyle = 4
MyShortcut.IconLocation = WSHShell.ExpandEnvironmentStrings (strPath & ", 0")
MyShortcut.Save
0
 
LVL 13

Assisted Solution

by:prashsax
prashsax earned 166 total points
Comment Utility
Just a simple  user logon script will do this.
Create a shortcut which you want to push on the desktop of the user.
Put it on a share folder where everyone should have read access.
Now lets say, the shortcuts is at Server1 and in folder apps.
So complete path to shortcut is:

\\Server1\apps\shortcut.lnk

--------------------------------------------------------------------------
@echo off
echo Copying Shortcut............
copy \\server1\apps\shortcut.lnk %userprofile%\Desktop
-------------------------------------------------------------------------

Put the above 3 line a file, name it login.bat and put this as login script using GP on a OU.
Just remeber to change the \\server1\apps\shortcut.lnk with the original path of the shortcut.

Now, whenever a user logs into a machine the shortcut will be copied to his desktop.
0
 
LVL 3

Author Comment

by:ashkaat
Comment Utility
i did it
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now