I would like to use a script to copy a .vbs file to a users startup folder in Windows 7.
The user has admin rights but I continue to get "access denied" errors.
Any help with this one?
I can copy it manually, with no problems
Here is my script
Set FSO =CreateObject("scripting.FileSystemObject")
FSO.CopyFile "\eosIS_ShareAuto-loginlock.vbs", "C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup"
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!