Solved

Windows 8 file access to c:

Posted on 2013-06-25
3
227 Views
Last Modified: 2013-06-25
When scripting installation of program on a Win8 machine I can not put anything directly on c:. Normally I put a .tst file there for check if the program is install or not. This work for Win7 but not for Win8. Why?
0
Comment
Question by:fsandve
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
McKnife earned 500 total points
ID: 39274670
Hi.

Short answer: don't use c:, use %temp% and all is well.
Long: Since xp (and vista and 7), you can only write to c: if you are admin. Since vista, you would also need to write there elevated. With UAC off, this elevation restriction does not apply.
0
 

Author Comment

by:fsandve
ID: 39276063
Thanks for the suggestion. Sorry i forgot to mention that i am an administrator. That is i put domain users in the local administrators group so i should have the rights to write the file. Looks to me that even as a member of the local administrators group i am not allowed to write anything to the root. Thus these rights apply to the user and not to the Group?
0
 
LVL 53

Assisted Solution

by:McKnife
McKnife earned 500 total points
ID: 39276180
>  i put domain users in the local administrators group so i should have the rights to write the file - no, not correct. That would require elevation, being admin alone does not help. This is 100% as it was with 7, by the way. If the UAC is off on your win7 System, that would explain the difference.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Ever wondered why Windows 8 and 10 don't seem to accept your GPO-based software deployment while Windows 7 does? Read on.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now