Solved

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

Posted on 2006-07-20
8
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

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

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 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