Solved

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

Posted on 2006-07-20
8
228 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
ID: 17145628
you need to script this - not a GPO trait unless you use GPO to push the script
0
 
LVL 3

Author Comment

by:ashkaat
ID: 17145887
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
ID: 17146171
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
ID: 17148671
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
ID: 17160573
i did it
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

685 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