It doesn’t seem to matter whether I logon with a regular user ID or my Admin ID (my Admin ID has both Local Admin and Domain Admin rights), the results are the same.
code:
:AddCommonApps
;*************
;
; Copy Common apps to desktop and start menu
if "$Verbose" = "Yes"
? "Add common applications" + $NL
endif
;
; Add common program shportcuts to user's desktop
shell 'cmd /c xcopy "$FIAApps\Common\*.lnk" "$Desktop_Folder" /F'
;
; Add Start Menu\Programs\Common folder and add common program shortcuts
shell 'cmd /c xcopy "$FIAApps\Common\*.lnk" "$Programs_Folder" /F'
;
; Add Start Menu\Programs\Accessories folder and add accessory program shortcuts
shell 'cmd /c xcopy "$FIAApps\Accessories\*.lnk" "$Programs_Folder\Accessories" /F'
;
; Copy common startup programs to user's startup folder
shell 'cmd /c xcopy "$FIAApps\Common\Startup" "$Programs_Folder\Startup" /F'
return
;