Need some help!! Basically create a shortcut within the "Favorites" folder for all the users with profiles on a computer. The code below will only create the
shortcut for the Logged on user. Need something that will loop through each profile and create a shortcut in the favorites folder.
Const ADMINISTRATIVE_TOOLS = 6
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(ADMINISTRATIVE_TOOLS)
Set objFolderItem = objFolder.Self
Set objShell = WScript.CreateObject("WScript.Shell")
FavoriteName = "WebVPN"
FavoriteUrl = "Set objURLShortcut = objShell.CreateShortcut(objFolderItem.Path &
"\" & FavoriteName & ".url")
objURLShortcut.TargetPath = FavoriteUrl
objURLShortcut.Save
shortcut for the Logged on user. Need something that will loop through each profile and create a shortcut in the favorites folder.
Const ADMINISTRATIVE_TOOLS = 6
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(ADMINISTRATIVE_TOOLS)
Set objFolderItem = objFolder.Self
Set objShell = WScript.CreateObject("WScript.Shell")
FavoriteName = "WebVPN"
FavoriteUrl = "Set objURLShortcut = objShell.CreateShortcut(objFolderItem.Path &
"\" & FavoriteName & ".url")
objURLShortcut.TargetPath = FavoriteUrl
objURLShortcut.Save