Changing shortcut in start menu?

B

Ben Samuals

Does anyone have an idea for changing a start menu shortcut via gpo? I need
to push one out and delete a shortcut at the same time. This would be in the
start/programs/apps menu..

thx...
 
M

MS Newsgroups

Ben,

You have the option to write a script that deletes your shortcut and creates
a new one that you could deploy through a group policy. Below is a sample to
get you started. Save file with a .vbs extension.

'**SCRIPT START
Dim oWshNetwork
Dim oShell
Dim oFSO
Dim sMenuPath
Dim oShortCut

Set oWshNetwork=CreateObject("wscript.network")
Set oFSO=CreateObject("scripting.filesystemobject")
Set oShell=CreateObject("wscript.shell")

sMenuPath=oShell.ExpandEnvironmentStrings("%USERPROFILE%") & "\Start
Menu\Programs\"

oFSO.DeleteFile sMenuPath & "myShortcut.lnk" 'Put the name of your old
shortcut here

Set oShortcut=oShell.CreateShortcut(sMenuPath & "NewShortCut.lnk")

oShortCut.TargetPath="c:\Windows\Notepad.exe"
oShortCut.Save

'**SCRIPT END

Regards

Niclas Lindblom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top