genesis Posted June 14, 2020 Posted June 14, 2020 Hi We use logon VBS script for staff . I have created a shortcut for Word file and which is located on a shared location on our file server. When the staff login I would like the script to copy both of these shortcuts to All Users Desktop. When they login again into the same PC or different PC and if these shortcuts are already present on the All users desktop , I would like the script to ignore the copying the shortcuts again. Will it be better to create a separate script and put under the Computer OU - GPO - Computer configuration-Windows settings-Scripts-Startup or add the script to the logon script. Please post me the syntax and any help much appreciated. Thanks
FN-GM Posted June 14, 2020 Posted June 14, 2020 You would be better using group policy preferences https://www.driftar.ch/index.php/2016/11/12/microsoft-active-directory-desktop-shortcuts-with-group-policy/.
DJ-1701 Posted June 15, 2020 Posted June 15, 2020 Hi We use logon VBS script for staff . I have created a shortcut for Word file and which is located on a shared location on our file server. When the staff login I would like the script to copy both of these shortcuts to All Users Desktop. When they login again into the same PC or different PC and if these shortcuts are already present on the All users desktop , I would like the script to ignore the copying the shortcuts again. Will it be better to create a separate script and put under the Computer OU - GPO - Computer configuration-Windows settings-Scripts-Startup or add the script to the logon script. Please post me the syntax and any help much appreciated. Thanks As the others have said, it would be better, and easier using Group Policy Preferences... but if you are determined to go down that route, the syntax for a bat file would be... If Not Exist "C:\Users\Public\Desktop\Internet Explorer.lnk" Copy "\\Server\Share$\Internet Explorer.lnk" "C:\Users\Public\Desktop\Internet Explorer.lnk" [/Code] It would also be easier to do that as a computer startup script, rather than login, as that should have the right access permissions.
QwertyMash Posted June 15, 2020 Posted June 15, 2020 I can only repeat what others have said the better options would be to use Group Policy Preferences, if you need help with this let us know.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now