Copy file to startup folder in windows 7

1050 pts.
Tags:
Microsoft Windows 7
Microsoft Windows Server 2003
VBScript
Visual Basic
Windows 7 security
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 dim FSO Set FSO =CreateObject("scripting.FileSystemObject") FSO.CopyFile "\eosIS_ShareAuto-loginlock.vbs", "C:ProgramDataMicrosoftWindowsStart MenuProgramsStartup"

Software/Hardware used:
windows 7, server 2003

Answer Wiki

Thanks. We'll let you know when a new response is added.

Why don’t you use GPP’s or GPO’s within Active Directory to push our your settings?
Microsoft has introduced new security with User Access Controls with Vista and Windows 7. The UAC controls basically prevent a large portion of your scripting commands like mapping network drives from working.

You can try disabling UAC on the Desktop and then see if your permission errors go away.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • DoneThat
    I don't think all the characters came through on your question. Although not VBS, I use the following copy during each Telemarketer's log on... copy "\SeeligserversharedOperationsDesktopDesktopsTelemarketing*.*" "%USERPROFILE%Desktop*.*" This is XP workstation and SBS 2003. They do NOT have admin rights at there WS. I am copying to a sub of their desktop directory which allows it to happen. I was NOT able to get this to copy to any other directory even when I gave them admin rights.
    830 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following