Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Vbscript is working on XP but gets access deneid on Windows 7/8 (Solved)

$
0
0

Hello,

I am a complete noobie in scripting but i need to make a basic script who check if two folder does exist and then copy the file if needed.

If i remove on Error resume next, windows 7 or Windows 8 display a access deneid error message.

I've tested the script with the same domain admin user on xp/7/8 and it only works on xp.

Here is the script

That is the error message that is displayed



From what i see, it seems to be unable to create the c:\program files\packages folder, why ? what needs to be modified for Windows7/8 machines ?

Thanks.

Edit 1 : I just found out that if running the script from a command prompt runned as administrator it does work.So it seems to being related just to the privileges.<o:p></o:p>

Edit 2 : From what i read on the internet, it seems that the following muss be modified thought gpo UAC : Detect Application Installation and prompt for elevation. I continue testing and see it this solve the issue.<o:p></o:p>





Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>