Uninstall Apps in Windows 10  

Page 61 of 66 FirstFirst ... 11515960616263 ... LastLast

  1. Posts : 250
    Windows 10 22H2
       #600

    these too:
    ;,=
    Code:
    -replace '[;,=() &^]'
      My Computers


  2. Posts : 7,607
    Windows 10 Home 20H2
       #601

    einstein1969 said:
    Code:
    C:\Users\fposc\Desktop\Pie & tea % @ ' $ ^
    and it seems to work.
    It will not work if you delete the space after the dollar sign.
      My Computer


  3. Posts : 4
    Win11
       #602

    @einstein1969 Nice Script. I do have a few suggestions:

    - add complete path to the directory, so deletion will be possible outside of windowsapps
    - get needed permissions and rights to delete the directories.

    Would be thanksful for a reply.
      My Computer


  4. Posts : 250
    Windows 10 22H2
       #603

    sorry for the delay but I was sick and I had a lot to do.

    I solved the various problems I will try to update the version as soon as possible
      My Computers


  5. Posts : 7,607
    Windows 10 Home 20H2
       #604

    Take your time. There is no rush.
      My Computer


  6. Posts : 250
    Windows 10 22H2
       #605

    Here is the new version with the path for poisonous characters and I fixed some minor bugs and cosmetic improvements

    I have tested only on windows 11

    Version 0.1.4 Beta
    CleanWA_0.1.4Beta_.zip

    - - - Updated - - -

    gerstemann said:
    @einstein1969 Nice Script. I do have a few suggestions:

    - add complete path to the directory, so deletion will be possible outside of windowsapps
    - get needed permissions and rights to delete the directories.

    Would be thanksful for a reply.
    I have added complete path

    I haven't gone into the permissions. If you have the solution post it here that I insert it in the script generation.

    - - - Updated - - -

    Matthew Wai said:
    Take your time. There is no rush.
    Hi Matthew
      My Computers


  7. Posts : 7,607
    Windows 10 Home 20H2
       #606

    einstein1969 said:
    Here is the new version with the path for poisonous characters
    Put the script into the following folder:

    $CleanWA_0.1.4Beta_

    Then, it will not work. The following code works with such a folder name.

    Code:
    Set "[-]=%ProgramData%\[-+~+-].cmd"
    (Fsutil Dirty Query %SystemDrive%>Nul)&&(Del "%[-]%"2>Nul&Goto [Run_it])
    Echo @Echo off^&"%~f0">"%[-]%" & PowerShell start "%[-]%" -verb RunAs
    If not %errorlevel%==0 (Del "%[-]%"&Exit) else (Exit /B)
    :[Run_it]
      My Computer


  8. Posts : 4
    Win11
       #607

    I haven't gone into the permissions. If you have the solution post it here that I insert it in the script generation.

    Here you have a solutiion for permissions:

    takeown /R /F "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe"
    icacls.exe "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe" /grant JederOI)(CI)(F) /L

    Be aware of the Smiley. It should be : ( (no Space)

    You have to use the 2 build in commands. Tested in W11. Takeown is you take the ownership of the dir, icacls is for changing the rights for your user to have pemission to delete the directory.

    Looking forward to 0.15
      My Computer


  9. Posts : 1,203
    11 Home
       #608

    gerstemann said:
    I haven't gone into the permissions. If you have the solution post it here that I insert it in the script generation.

    Here you have a solutiion for permissions:

    takeown /R /F "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe"
    icacls.exe "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe" /grant JederOI)(CI)(F) /L

    Be aware of the Smiley. It should be : ( (no Space)

    You have to use the 2 build in commands. Tested in W11. Takeown is you take the ownership of the dir, icacls is for changing the rights for your user to have pemission to delete the directory.

    Looking forward to 0.15
    For security reasons, you probably shouldn't grant Full Control to Everyone (Jeder is Everyone on German language versions of Windows) for anything that's under %PROGRAMFILES%\WindowsApps. Instead, you should give this permission to the Administrators group:
    Code:
    icacls %PROGRAMFILES%\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe /grant *S-1-5-32-544:(OI)(CI)F /L
    To work around the problem of internatialisation, S-1-5-32-544, the security identifier of the Administrators group can be used with an asterisk [*] like shown in the above command.
      My Computers


  10. Posts : 4
    Win11
       #609

    hdmi said:
    For security reasons, you probably shouldn't grant Full Control to Everyone (Jeder is Everyone on German language versions of Windows) for anything that's under %PROGRAMFILES%\WindowsApps. Instead, you should give this permission to the Administrators group:
    Code:
    icacls %PROGRAMFILES%\WindowsApps\Microsoft.DesktopAppInstaller_2022.310.2344.0_neutral_~_8wekyb3d8bbwe /grant *S-1-5-32-544:(OI)(CI)F /L
    To work around the problem of internatialisation, S-1-5-32-544, the security identifier of the Administrators group can be used with an asterisk [*] like shown in the above command.
    You are right. Jeder can be a Problem with international Versions. But you give only full access to the directory you are deleting. So that shouldnt be a security risk as you dont grant access to the WindowsApps directory.
      My Computer


 

Tutorial Categories

Uninstall Apps in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
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 07:51.
Find Us




Windows 10 Forums