• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Group policy to add url shortcut with customized icon in start menu?!

HI AT!! I am looking for an automated way to add a customized shortcut to the start menu in ALL USERS account WITH a CUSTOMIZED ICON!

It should be persistent in that if a user decides to delete it, it will return upon login.

What's the best way to do this?
 
You could create a computer startup script that contains your .lnk file and a batch file. The batch file would check to see if the icon exists and if it doesnt copy it over. Quick and dirty:
IF EXIST "%allusersprofile%\start menu\my shortcut.lnk" GOTO END
copy "my shortcut.lnk" "%allusersprofile%\start menu\my shortcut.lnk"
:END
If they delete it than it would return the next time the computer was restarted. You dont want to have a login scrip copying a file to the all users profile because it will fail if they arent an admin.
 
also, if they aren't admin, they won't be able to delete it anyway (none of your users should be admin).
 
Originally posted by: spyordie007
You could create a computer startup script that contains your .lnk file and a batch file. The batch file would check to see if the icon exists and if it doesnt copy it over. Quick and dirty:
IF EXIST "%allusersprofile%\start menu\my shortcut.lnk" GOTO END
copy "my shortcut.lnk" "%allusersprofile%\start menu\my shortcut.lnk"
:END
If they delete it than it would return the next time the computer was restarted. You dont want to have a login scrip copying a file to the all users profile because it will fail if they arent an admin.

I'll give it a try. Thanks : )
 
Originally posted by: spyordie007
You could create a computer startup script that contains your .lnk file and a batch file. The batch file would check to see if the icon exists and if it doesnt copy it over. Quick and dirty:
IF EXIST "%allusersprofile%\start menu\my shortcut.lnk" GOTO END
copy "my shortcut.lnk" "%allusersprofile%\start menu\my shortcut.lnk"
:END
If they delete it than it would return the next time the computer was restarted. You dont want to have a login scrip copying a file to the all users profile because it will fail if they arent an admin.
correction, the path should be:
%allusersprofile%\start menu\programs\my shortcut.lnk
 
Hm.. not sure if I'm gettin you here. I've created a .bat file with the filename url.bat located in a share where UNC path to share is and is read only by everyone in the domain.

\\server100\folder\url.bat

The batch file contains only the code:

IF EXIST "%allusersprofile%\start menu\url.lnk" GOTO END
copy "\\server100\folder\url.lnk" "%allusersprofile%\start menu\url.lnk"
:END

I load the url.bat file via User Configuration Logon script for an OU GP and not directly as a login script for an AD user. I browse to the file located in Netlogon and enter no parameters.

It doesn't work. Nothing happens. What am I doing wrong?
 
Back
Top