Needed to quickly get a new shortcut out to a group of terminal server users on their desktops and start menus. Nothing particularly complicated about the script, but it did the job:
for /f “tokens=*” %a in (‘dir C:\Docume~1\ /b *.’) do copy C:\Docume~1\AllUse~1\Desktop\ProgramShortcut.lnk C:\Docume~1\%a\Desktop
Takes a list of all the directories in “C:\Documents and Settings”, loops over and copies ProgramShortcut.lnk to the user’s Desktop folder. Replace Desktop with StartM~1 to copy to the root of their start menu.