/build/static/layout/Breadcrumb_cap_w.png

Script Search "Favorites" Folder

Having the hardest time creating this script, hoping someone can help.
Is there a script to search all the “Favorites” Folders in “Documents and Settings” and create a Shortcut within the “Favorites” folder. This includes having multiple USERPROFILES. Thanks,

0 Comments   [ + ] Show comments

Answers (5)

Posted by: squeakstar 14 years ago
Orange Senior Belt
0
There's a user based group policy for that kind of thing which will create whatever shortcuts you like in peoples favourites.
Posted by: Kevster1983 14 years ago
Yellow Belt
0
Yeah I know we could use Group Policy, but our Sys Admin team dose not want to use them.
Posted by: squeakstar 14 years ago
Orange Senior Belt
0
Are they windows newbs or something? [;)]

Personally i will always go for group policy first before scripting, coz admittedly i'm a bit of a script kiddy when it comes to it - cut a bit out of here, change a variable there... we do have a bit of a shortcut script going on for user desktops which might set you on the right lines... I'm not saying this works outright mind coz i've cut loads of other crap out in betwen the interesting bits. using the variable %username%/favourites somewhere would probably help too.


Dim WSHShell

Set WSHShell = CreateObject("WScript.Shell")

'Create Helpdesk desktop Shortcut
SET oFSO = Wscript.CreateObject("Scripting.FileSystemObject")
strDsk = WshShell.SpecialFolders("Desktop")
' What is the label for the shortcut?
strshortcut = strDsk & "\IT Help Desk Request.url"
If Not oFSO.FileExists(strshortcut) Then
SET oUrlLink = WshShell.CreateShortcut(strshortcut)
' What is the path to the shared folder?
oUrlLink.TargetPath = "http://helpdesk"
oUrlLink.Save
End If


What have your sys admin team against group policy?
Posted by: Kevster1983 14 years ago
Yellow Belt
0
Because the Sys Admin Manager is an idiot!!! I've already used the script you posted and modified. Just having a hard time looping through all the profiles and then creating a shortcut within each %USERNAME%/favorites.
Posted by: squeakstar 14 years ago
Orange Senior Belt
0
why are those more senior than us mere minions so behind on processes in IT, or just too stubborn to try new ways? It drives me insane too!

can't you use the script or your variant as a logon script? Add it to either a GPO or the startup script of each users profile? That way it kicks in at logon and job done - or is that against your sysadmin?

You could have done all this in about 8 clicks with a GPO and have it out there already - I feel for ya guy [:(]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ