Question Locked

Pushing a shortcut to the domain users

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to place a shortcut on every domain user's desktop. I have tried a VB script that will work on the local desktop but when I try to apply it through group policy it will not run. I tried to apply it to the desktop parameter but ended up with an active desktop with the URL that was in the shortcut. Any suggestion on how to deploy this shortcut?

4 replies

by arujammer

If you post the logon script i can take a look at it.

in most cases, the script cant find the file.

by v47vtk

Here is the script to place the shortcut on the desktop.

thanks

Eric

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

strDesktop = WshShell.SpecialFolders("Desktop")

IF Not objFSO.FileExists(strDesktop & "\Maintimizer.lnk") THEN
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Maintimizer.lnk")
oShellLink.TargetPath = "http://intranetca:8081"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:\WINDOWS\system32\url.dll"
oShellLink.Description = "Maintimizer"
oShellLink.WorkingDirectory = "http://intranetca:8081"
oShellLink.Save
set oShellLink = NOTHING
END IF

Set WshShell = NOTHING
Set objFSO = NOTHING

This discussion is closed to new replies.