Friday, July 10, 2015

Win10: How can I delete driver files? (C:WindowsSystem32DriverStoreFileRepository)



My situation and goal:
I have a Asus Laptop which I upgraded from Win7 to Win10 a year ago. So far so good. My Account is since ever defined as administrator, but actually it can't proceed administrator tasks.


I want to delete driver files. The path is in the title of the question. My account is an administrator account but I can't delete files in this folder.


When I move files from folder A to folder B it happens that I have to confirm moving them or I have to give allowance to applications to install files. This experiences brought me to the point that I see something with the administrator rights is not correct. I assumed that my account has problems with the administrator rights and I have to fix these before I can delete the targeted files.


What I tried to solve the administrator issue:


I tried several ways to get administrator rights.


1) I tried to change account typ from standard to administrator. Not possible, because when I choose this option the button to accept the choice gets inactive.
button gets inactive when I select administrator. And as you can see the account is defined as administrator, but is from type standard.


enter image description here


2) I activated an administrator account via cmd-window and "net user administrator /active:yes". It worked but this account is not able delete files which need administrator rights. It seems this account is an administrator account but has not the rights for it.


3) I tried to change the administrator rights for my standard account and administrator account in "Save mode" of windows. the same situation like in point 1.


4) By solving the administrator issue, I found out that my windows lakes functionalities. I wanted to take control over this problem by using the "Computer Manager", but the area where you can manage accounts and group is not existing. The local group policy window doesn't work. (see below in the comments the screenshots)


Something in the system is messed up. What is wrong or what else can I do to make it possible to control this kind of files in Windows 10?


enter image description here
enter image description here
enter image description here
enter image description here


Answer




When I move files from folder A to folder B it happens that I have to
confirm moving them or I have to give allowance to applications to
install files.



Depending on the specifics, the destination folder likely is a protected directory, which has required to elevate operation since Windows Vista. In other words, what you describe in this statement, is not abnormal in the slightest.



I tried to change account type from standard to administrator. Not
possible, because when I choose this option the button to accept the
choice gets inactive. button gets inactive when I select
administrator. And as you can see the account is defined as
administrator, but is from type standard.



The account in the screenshot is an Administrator. There is no evidence from the screenshots you provided that, the account depicted in the screenshots, is anything but an Administrator.



3) I tried to change the administrator rights for my standard account
and administrator account in "Save mode" of windows. the same
situation like in point 1.



I think you actually mean Safe Mode, instead of Save Mode, but there is not evidence that your account is anything but an Administrator.



2) I activated an administrator account via cmd-window and "net user
administrator /active:yes". It worked but this account is not able
delete files which need administrator rights. It seems this account is
an administrator account but has not the rights for it.



Your conclusion is incorrect. The built-in Administrator account has less restrictions then a user account that is created and placed in the Administrator user group. The account in the screenshot is a member of this group. The built-in Administrator account, has all permissions that a user account that is created, which was placed in the Administrator user group has.


The computer management on my workstation looks exactly like this:
enter image description here


You need to launch explorer.exe as an Administrator, and take ownership of the folder in question, if you want to delete the highlighted folder. Of course you should NOT do this because your attempting to remove the folder and the driver contained within it the incorrect way. Additionally having to escalated, the action to delete a protected directory like the one you have highlight, is actually normal behavior.


enter image description here


This behavior:


enter image description here


Typically happens when you don't have permissions to the folder. Due to the location of the folder, only system accounts are given access to it, because they are not supposed to be deleted by hand. If you still want to delete the folder, take ownership of the folder and add your user to the ACL, then escalate the permissions of explorer.exe and you can delete the folder. This again is not the suggest method of getting rid of this driver. Once you take ownership of this file you WILL cause problems. You still won't be able to delete it if Windows is using the driver.


Conclusion: Your system does not appear to have any problems. Your user account that exists is an Administrator. Everything you describe, and believe to be a problem, is actually normal Windows behavior.


The correct way to remove drivers is the following:




  1. Within an elevated command prompt run the following command:


    run pnputil -e > C:\drivers.txt


  2. Open the file drivers.txt and look which .inf file is associated with the driver you want to remove


  3. run pnputil.exe -d oem.inf


If you want an easier way to remove it. You can use, DriverStore
Explorer [RAPR]
, to enumerate the drivers then press delete.



Source: How do I delete folders from the Windows 7 DriverStore?


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...