I have a logon VB script that creates desktop icons on our users pc's for some commonly used links. For whatever reason sometimes when they log on some of the icons are not there. They log off and back on and they appear. This seems to be only related to windows 7 machines. Do you know of any issues with 7 that would cause this or is there something wrong with my script. Here is a copy of my script. THank you
'FORCE EXPLICIT VARIABLE DECLARATION
option explicit
'STEP OVER ERRORS FOR CUSTOM ERROR REPORTING
on error resume next
'DECLARE VARIABLES
dim shell, desktopPath, link, sys32Path
'INSTANTIATE THE WINDOWS SCRIPT HOST SHELL OBJECT
Set shell = WScript.CreateObject("WScr
ipt.shell"
)
'SET THE PATH TO THE WINDOWS DESKTOP FOLDER & MY DOCUMENTS FOLDER
desktopPath = shell.SpecialFolders("Desk
top")
sys32Path = "
http://home"
'CREATE A SHORTCUT ON THE USER'S DESKTOP
Set link = shell.CreateShortcut(deskt
opPath & "\TriCounty Citrix.lnk")
'SET THE PROPERTIES FOR THE SHORTCUT
link.Description = "My Shortcut"
link.TargetPath = sys32Path
link.WindowStyle = 0
link.WorkingDirectory = desktopPath
link.IconLocation = "\\tch16\IT\ShortcutIcons\
epic.ico"
link.Save
'CLEANUP OBJECTS
set shell = nothing
a) Create a new GPO that is filtered and effectively only for Windows 7 machines.
b) Setup Shortcuts preferences inside this new GPO.
The scripts will still function for your older workstations, however, with the new capabilities of Group Policy you're going to want to use the new stuff. Easier to manage and grow.