Sign in to follow this  
Followers 0
nivtop

Windows 7 filecopy stop security prompts

5 posts in this topic

Hello,

I made a script that works perfectly on windows xp although when I use it on windows 7 the script doesn't copy files properly because windows 7 security prompts popup when the script is trying to filecopy...

Is there a way to get around this?

Can someone please help!

My script is trying to copy files from external harddrive to C:\Users\Accountname\Desktop ... \Favorites ... \Documents..etc

Also I don't have this issue on my home computer but this script is meant for my company which I use at work and the computers at work are windows 7 and on a DOMAIN and the user account has administrative privileges.

Thanks

Share this post


Link to post
Share on other sites



I assume you are talking about UAC.

This security feature is designed to resist automation, think about why that is. And with that in mind, search the forum with these words "Disable UAC" and you will find a solution to disable it via the registry.

Also be aware that at some point, during this process the user is going to have to physically interact in one fashion or another, with the security prompt.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

If the user running it has admin rights you can add the #RequireAdmin keyword to the beginning of your script and it will ask at the launching of the script and then should leave you alone after that.

Share this post


Link to post
Share on other sites

Thanks for the replies guys, I'm going to try the tips you gave.

Thanks again!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0