How to create a shortcut on the desktop of the new Windows user?

dcunsam

New Member
I'm trying to create desktop shortcuts with CMD and setupcomplete.cmd and can't get them created.

Try:

echo Set oWS = WScript.CreateObject("WScript.Shell") > CreateShortcut.vbs
echo sLinkFile = "%HOMEDRIVE%\Users\unsam\Desktop\Installer.lnk" >> CreateShortcut.vbs
echo Set oLink = oWS.CreateShortcut(sLinkFile) >> CreateShortcut.vbs
echo oLink.TargetPath = "%SYSTEMDRIVE%\Install\Installer.exe" >> CreateShortcut.vbs
echo oLink.Save >> CreateShortcut.vbs
cscript CreateShortcut.vbs
del CreateShortcut.vbs

It works only if I run it properly, but if I add it to the setupcompete.cmd it doesn't work.
 
In the user folder of the C disk, there is a hidden folder named Default, which can store the premade user properties. There is a desktop folder in the Default folder, which is the desktop shortcut for the new user. All you need to do is put the specified shortcut or file or application in this desktop folder, and when a new user logs into their account, they will be displayed on their desktop
 
There are at least three different solutions:
1. Copy a shortcut to \Users\Default\Desktop
2. Copy a shortcut to \Users\Public\Public Desktop
3. Add a logon script which creates a new shortcut for each user

\Users\Default content is copied to every new user's profile, so everyone gets a private copy. The user can delete this shortcut.
\Users\Public is a shared copy, that everyone sees but cannot delete.
 
Back
Top