Windows 8 and 8.1 Forums


Batch script -> Access Denied to C:\Windows\

  1. #11


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    You may run into a few difficulties with doing a lot of things on win8.

    If you are trying to replace or even place a file into Windows dir - you may need to muck about with the security settings . It is annoying.

    MS are not expecting the average user will do that kind of thing. They haven't made it easy.

      My System SpecsSystem Spec

  2. #12


    Posts : 21
    Windows 8 Pro x64


    Quote Originally Posted by SIW2 View Post
    You may run into a few difficulties with doing a lot of things on win8.

    If you are trying to replace or even place a file into Windows dir - you may need to muck about with the security settings . It is annoying.
    I had expected as much.

    Running an elevated command prompt to launch the batch file manually by relocating to its directory in the following manner
    Click image for larger version
    allows for the file to execute and copy the files smoothly, but if I right click the batch file and 'Run as Administrator', it doesn't do anything at all.

    This is very strange behaviour.
      My System SpecsSystem Spec

  3. #13


    Out of curiosity is the file even in c:\windows?
      My System SpecsSystem Spec

  4. #14


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    You will get plenty of strange behaviour.

    I am resorting to Helge's setacl more and more to try and beat win8 into submission.

    If you try and make yourself decent pe media, you will have a hell of a job.

    I ended up replacing some files with those from win7 - MS have made things difficult for those who do more than just jabbing at little squares.
      My System SpecsSystem Spec

  5. #15


    Newport, South Wales, UK
    Posts : 573
    Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu


    Not done much DOS Batch files for a while, but you may want to have a look at using the RunAs command with the Administrator Username and password within your batch file, and including the full path to the EXE file - it has solved problems for me in the past, and I believe it's still in Win8 implimentation

    Could just be a one line batch file to run the EXE
      My System SpecsSystem Spec

  6. #16


    Posts : 21
    Windows 8 Pro x64


    Quote Originally Posted by Barman58 View Post
    Not done much DOS Batch files for a while, but you may want to have a look at using the RunAs command with the Administrator Username and password within your batch file, and including the full path to the EXE file - it has solved problems for me in the past, and I believe it's still in Win8 implimentation

    Could just be a one line batch file to run the EXE
    This is not a solution for me as this file is used to automate a process on client computers.
    The administrator passwords will not be consistent.

    I don't know what you're referring to with EXE files.

    Quote Originally Posted by Lucas89 View Post
    Out of curiosity is the file even in c:\windows?
    The batch file is written to copy two files in to C:\Windows\, and they weren't copied in when the access was denied.
    It doesn't need to be in C:\Windows\.

    MS have made things difficult for those who do more than just jabbing at little squares.
      My System SpecsSystem Spec

  7. #17


    I'm guessing you have checked permissions on the windows dir?
      My System SpecsSystem Spec

  8. #18


    i just checked permissions on the windows dir on my machine. some new stuff in there....and not much of it has write permissions. i would say start there. as to witch one to change i can't tell you. maybe some one els will know a little more about the new stuff aka all application packages.
      My System SpecsSystem Spec

  9. #19


    Posts : 21
    Windows 8 Pro x64


    Quote Originally Posted by Lucas89 View Post
    i just checked permissions on the windows dir on my machine. some new stuff in there....and not much of it has write permissions. i would say start there. as to witch one to change i can't tell you. maybe some one els will know a little more about the new stuff aka all application packages.
    My user account is a member of the Administrators group.
    It does look like the Administrators group has some special permission setup — there is write permissions, but it's set up as special permissions. Oddly enough, I can't seem to find an instance that would show I shouldn't be able to write in there.
    Click on Advanced. You'll see what I mean.
      My System SpecsSystem Spec

  10. #20


    very weird settings, its a little on its head. i would go with temp giving app packages write permissions and see how you go.
      My System SpecsSystem Spec

Page 2 of 4 FirstFirst 1234 LastLast
Batch script -> Access Denied to C:\Windows\
Related Threads
Hello guys. I'm facing some problems trying to instal new fonts on my Windows 8.1. I downloaded the font, but when i click instal on it, a dialog window appears saying : Windows font folder - access is denied. I also tried copying the font, to the Fonts folder at control panel, but i recieve the...
Hello, Following a recent Windows Update, Windows Firewall on my Windows 8 system was disabled. Upon attempting to start the firewall through the services.msc dialog, I receive an error code 1068, informing that the dependency service or group failed to start. After doing some googling to...
Greetings I am attempting to write a batch script that uses a program called Mailsend to send an email. The script then examines Mailsend's log output to determine if the email was successfully sent. This is what I have so far: mailsend1.17b14.exe -to <snip personal info> -log temp.txt...
Hi, I have the same issue. System stopped booting, HDD - "Access Denied" when I'm trying to transfer data on other computers. Tried taking the ownership, still nothing has changed. I've followed a suggestion on one of the Forums to boot from Windows 7 bootable disk. Te result - "Wrong...
Hi All! I'm relatively new here and I have a very annoying problem with my new laptop that, (unfortunately), runs the despicable OS, Windows Hate....oops, I mean '8'. I'm the ONLY user, the owner AND Administrator of my laptop, but I'm denied access to my own files!! I'm only a casual user,...
Hey guys, I'm new to forum posting so bare with me. We just purchased a new office computer and it came equipped with windows 8. Everything seemed to set up wonderfully as I connected back up to the server we have here in the office that is running Windows 2008 Server. I set up my printers, I...
Since installing Windows 8, I have been having sporadic problems with access denied. Examples follow: PIMEX is a Personal Information Manager that I have been using through several generations of Windows. When I first converted to Windows 8, this program worked with no problems. Now, however,...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook