10-19-2018, 04:08 PM
Probably CreateShortcut thinks that "firstname.lastname" is "filename.extension" and replaces "extension" with "lnk". Try
CreateShortcut(F"$Desktop$\{username}.lnk" serverprofilepath)
CreateShortcut(F"$Desktop$\{username}.lnk" serverprofilepath)