Jump to content

Recommended Posts

Posted

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

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...