Page 2 of 28 FirstFirst 123412 ... LastLast
  1.    20 Feb 2017 #11
    Join Date : Feb 2017
    Posts : 11
    win10x64

    are you going into safe mode with your user account or as Administrator? It works so I'm not sure what your doing
    Attached Thumbnails Attached Thumbnails 111.jpg  
      My ComputerSystem Spec
  2.    20 Feb 2017 #12
    Join Date : Jul 2015
    Posts : 3,753
    10 Pro

    Quote Originally Posted by mattws10 View Post
    ...contain a sintax error due to y not being an allowable parameter for /d (despite being reported as allowable in the documentation); how can I fix that?
    Quote Originally Posted by mattws10 View Post
    PS: I apology for any language mystake, English is not my first idiom.
    What language is your Windows installation?

    Apparently the default answer you specify after the /d switch has to be the first letter of the word that means "Yes" in your Windows system language.

    I can't confirm as I always install en-US but it is what it claims here: https://social.technet.microsoft.com...10itprogeneral
    and here:
    Take Ownership - Add to Context Menu in Windows 10

    So in French you would specify (from an administrator command prompt)

    takeown /f "C:\Program Files\WindowsApps" /r /d O
    (because "O" is short for "Oui" which means "Yes").

    All the examples I could find were French so just try picking the first letter of whatever the word "Yes" is in your language if it is something else.
      My ComputerSystem Spec
  3.    21 Feb 2017 #13
    Join Date : Feb 2017
    Posts : 1
    Windows 10

    This worked for me, thanks. Quick question though. After system is Restored, should I change the name back to WindowsApp or does it matter for functionality.

    I should add that I was getting an error message in the Command line after the Rename stage. After going back in and looking at the file (WindowsApp), I realized that the folder was Read Only and Hidden, then I had to authorize administrators to view/edit. After I made those changes I was able to Restore my system back.

    One issue I have and still have, is that Windows10 mysterious lost/hid every file and some sub folders within a folder I use often. I noticed it was missing after I downloaded an app, which asked for updates, so I deleted the app and Restored the system. Still can't see files in folder.


    Quote Originally Posted by cgdsatx View Post
    boot to SAFE MODE

    make sure theres a space between /d y

    or put

    attrib "c:\program files\windowsapps" -h

    then

    takeown /f "C:\Program Files\WindowsApps" /r /d y


    AND no space in Windowsapps on ANY commands AND put your username not administrators

    icacls "C:\Program Files\WindowsApps" /grant YOURUSERNAME:F /t (whatever you login to safe mode with)

    rename "C:\Program Files\WindowsApps" WindowsAppsold

    and to rename you may have to ,if you didn't before

    attrib "c:\program files\windowsapps" -h








      My ComputerSystem Spec
  4.    22 Feb 2017 #14
    Join Date : Feb 2017
    Posts : 8
    Windows 10

    Quote Originally Posted by cgdsatx View Post
    are you going into safe mode with your user account or as Administrator? It works so I'm not sure what your doing
    I go into safe mode as in Option one here : https://www.tenforums.com/tutorials/...a.html#option1
    Thank you for trying to help me
      My ComputerSystem Spec
  5.    22 Feb 2017 #15
    Join Date : Feb 2017
    Posts : 8
    Windows 10

    Quote Originally Posted by lx07 View Post
    What language is your Windows installation?

    Apparently the default answer you specify after the /d switch has to be the first letter of the word that means "Yes" in your Windows system language.

    I can't confirm as I always install en-US but it is what it claims here: https://social.technet.microsoft.com...10itprogeneral
    and here:
    Take Ownership - Add to Context Menu in Windows 10

    So in French you would specify (from an administrator command prompt)

    takeown /f "C:\Program Files\WindowsApps" /r /d O
    (because "O" is short for "Oui" which means "Yes").

    All the examples I could find were French so just try picking the first letter of whatever the word "Yes" is in your language if it is something else.
    Typing "TAKEOWN /?" allows me to see how the command works, and it shows that 'y' should be the right parameter for what I want to do. I also tried with the first letter of our "yes-word" and it doesn't worked. By the way, thank you for trying to help me.
      My ComputerSystem Spec
  6.    22 Feb 2017 #16
    Join Date : Jul 2015
    Posts : 3,753
    10 Pro

    Quote Originally Posted by mattws10 View Post
    Typing "TAKEOWN /?" allows me to see how the command works, and it shows that 'y' should be the right parameter for what I want to do. I also tried with the first letter of our "yes-word" and it doesn't worked. By the way, thank you for trying to help me.
    You are welcome but your analysis is wrong. takeown /? shows you the help text translated from English. It was never correctly translated. There are hundreds of posts about this but let us not go off on a tangent.

    Just let me know what chcp (with no parameters) shows. Perhaps there is a problem in your language but as I don't know what your language is I'd be guessing.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	155 
Size:	4.3 KB 
ID:	122379

    After that we can forget language and just convert your code page into en-US (for the specific terminal session) and see if that works.

    Like this:
    Code:
    chcp
    chcp 437
    takeown /f "C:\Program Files\WindowsApps" /r /d Y

    If that doesn't work post a screenshot as otherwise I'm just guessing.

    If you can show me a screenshot of the error I'm happy to install Windows in your language and see if I can recreate it.
      My ComputerSystem Spec
  7.    22 Feb 2017 #17
    Join Date : Feb 2017
    Posts : 8
    Windows 10

    Quote Originally Posted by lx07 View Post
    You are welcome but your analysis is wrong. takeown /? shows you the help text translated from English. It was never correctly translated.
    You were right! Now takeown works, but i still have problems with 'icacls "C:\Program Files\Windows Apps" /grant administrators:F /t', which comes up whit an access denied statement
    Quote Originally Posted by lx07 View Post
    Just let me know what chcp (with no parameters) shows. Perhaps there is a problem in your language but as I don't know what your language is I'd be guessing.
    I'm not sure I understood how chcp works; what is supposed to do?

    Quote Originally Posted by lx07 View Post
    If you can show me a screenshot of the error I'm happy to install Windows in your language and see if I can recreate it.
    I'd prefer to not borrowing you so much, unless we don't find other solutions, but thank you.
      My ComputerSystem Spec
  8.    22 Feb 2017 #18
    Join Date : Jul 2015
    Posts : 3,753
    10 Pro

    Quote Originally Posted by mattws10 View Post
    You were right! Now takeown works, but i still have problems with 'icacls "C:\Program Files\Windows Apps" /grant administrators:F /t', which comes up whit an access denied statement
    OK, one step forward Is your user name "administrators" though as @cgdsatx said to put in? I guess not.

    Quote Originally Posted by mattws10 View Post
    I'm not sure I understood how chcp works; what is supposed to do?
    chcp changes (or displays) the code page of the current job. It is slightly more complicated than this but you can think of a code page as the language. 437 is English. Anything you type after that will be assumed to be in English. This applies to input you give the shell but it doesn't invoke some sort of dictionary.

    If there exists a group object called "Utilisatuers" it will not transfer it into "Users" for you.

    Quote Originally Posted by mattws10 View Post
    I'd prefer to not borrowing you so much, unless we don't find other solutions, but thank you.
    I'm more than happy to but as you wish. I can't help if you don't say what you've done though.

    All these switches make a difference though. When you take ownership and assign authority you have to do it for the same person.

    You could try this:

    Change your job to English
    Code:
    chcp 437
    Take ownership for yourself
    (note there is no /a here assigning it to administrators group, the /r means recuse and the default in /d is defined as Y which is Yes in English which is the language you just told it you would write in.
    Code:
    takeown /f "C:\Program Files\WindowsApps" /r /d Y
    Give yourself full authority
    Don't change this. Just copy it exactly as it is.
    Code:
    icacls "C:\Program Files\WindowsApps" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    Specifically to not change "%USERDOMAIN%\%USERNAME%" to your PC name or your name or "Administrator" or "Administrateur" or "Administrateurs" or anything. These names are system language specific and are not affected by what language you are writing in. They are objects that exist with specific names created when you install Windows. The shell will populate it for you.

    You can see this if you enter (just for interest)
    Code:
    echo "%userdomain%\%username%"
    I really can't help any more unless you say what language you are using and give a screenshot of the error but I will say this is one reason I install Windows as en-US. It simply makes life easier.
      My ComputerSystem Spec
  9.    22 Feb 2017 #19
    Join Date : Feb 2017
    Posts : 4
    Windows 10 Pro

    Hello, I am having this same issue.
    Recently it seemed like my PC was running some game worse than it had been a week ago and I thought maybe something had changed or I had a virus, but virus scans showed no issues.
    I normally just do a system restore when something like this happens, but I got the error "0x80070091" so I thought maybe I did have a virus because I have seen a virus kill system restore many times before. Anyway, I first did a Windows 10 reset and still had the same System Restore issues just doing a quick create and restore, so thought maybe the virus was still there.
    So then I did a full new install of Windows 10, a new System Restore seemed to work fine, but after another day and some software installs and Windows updates another System Restore test failed with same error. Check Disks look fine also.
    I have not tried the fix here yet, but I am more trying to figure out why this fix is needed on a new install, if this a windows update bug? I never noticed this before but I can not even browse "c:\program files\windowsapps" at all, is that normal, I have not really poked around Windows 10 much but I am not used to there being a directory on my own OS that I can not look in to.
    My system seems to be running fine now, and I can live without System Restore, but am totally lost how Microsoft can break things like this and not know it.
    Thanks.
      My ComputerSystem Spec
  10.    22 Feb 2017 #20
    Join Date : Feb 2017
    Posts : 11
    win10x64

    Quote Originally Posted by mdc View Post
    This worked for me, thanks. Quick question though. After system is Restored, should I change the name back to WindowsApp or does it matter for functionality.

    I should add that I was getting an error message in the Command line after the Rename stage. After going back in and looking at the file (WindowsApp), I realized that the folder was Read Only and Hidden, then I had to authorize administrators to view/edit. After I made those changes I was able to Restore my system back.

    One issue I have and still have, is that Windows10 mysterious lost/hid every file and some sub folders within a folder I use often. I noticed it was missing after I downloaded an app, which asked for updates, so I deleted the app and Restored the system. Still can't see files in folder.
    it makes a new windows app folder during restore you can copy and drag the stuff from the old to the new if you want
    probably doesn't matter but if you want to you can do this

    How to reinstall all the Windows 10 default apps with PowerShell | Digital Citizen


    the attrib command should have "unhide" the app folder , before the restore I mean once restore goes through it will be hidden again , check hidden items in view tab of explorer .

    the missing files I don't know, maybe check hidden items in view tab of explorer see if they're "hidden" files , or I've heard to check under the C:\USERS some times there in another users folder or under c:\windowsold\users or even in public .
    If you created a new Microsoft account when you upgraded from Windows 7, your files may be located in a disabled administrator account. You'll need to enable this account and sign in again to see your files.
    Personally what I would do is type a name of a file or folder that was missing and I remember and just search the HD. There's other options but those are most common to try first.
    Last edited by cgdsatx; 22 Feb 2017 at 20:09.
      My ComputerSystem Spec

 
Page 2 of 28 FirstFirst 123412 ... LastLast


Similar Threads
Thread Forum
System Restore Fails Error 0x80070005
So I try to restore any point and get an error: 35772 I have turned off Malwarebytes and SuperAntiSpyware. I also did a sfc /scannow with no integrity violations. Running Windows 10 Pro 64bit... Any suggestions?
Backup and Restore
Tired of Giving Permission Rights In WindowsApp Folder
I have installed one app in Windows 10 through Win store, and I want to move one file to that app folder, but every time it is asking me, u need to perform this action - try again or cancel. I have permission to all the groups to move that file,...
User Accounts and Family Safety
Solved System restore doesn't restore uninstalled software.
Maybe I have a misunderstanding of how System Restore works. Yesterday I uninstalled a program that I'd like to now get back. The company that made the program no longer offers archive downloads for that program in particular. Today it occurred to...
Software and Apps
Solved Task Scheduler fails to schedule Restore Point Creation
I have set up the following in Task Scheduler:- 50990 However it does not work! Any ideas anyone? PS: How can I enable history?
Backup and Restore
System Restore not making restore point before updates.
So why did Microsoft change this? If I remember correctly all previous versions would create a system restore point before doing Microsoft updates. Since 10 installed all updates that come in for me are downloaded and installed without a restore...
Backup and Restore
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 06:34.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums