• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Windows 8 file access to c:

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
fsandve
Asked:
fsandve
  • 2
2 Solutions
 
McKnifeCommented:
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
 
fsandveAuthor Commented:
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
 
McKnifeCommented:
>  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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now