Is there an Application that can remove every folder containing a specific name string such as "coffee" in the C drive; including whats on "AppData, ProgramData" and other deeply rooted folders.
Example regid.1234-12.com.coffee where every folder containing the word "coffee" is deleted
Or what script does this? I tried this one proposed here https://stackoverflow.com/questions...e-folder-with-a-specific-name-with-powershell
---------------------------------------------------------------------------------------------------
Get-ChildItem -Filter coffee -Recurse -Force | Remove-Item -Recurse -Force
---------------------------------------------------------------------------------------------------
But i get this errors:
========================================================================================
Get-ChildItem : Access to the path
'C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5' is denied.
At line:1 char:1
edAccessException
+ FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
Get-ChildItem : Access to the path 'C:\Windows\system32\LogFiles\WMI\RtBackup' is denied.
At line:1 char:1
edAccessException
+ FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
========================================================================================
Example regid.1234-12.com.coffee where every folder containing the word "coffee" is deleted
Or what script does this? I tried this one proposed here https://stackoverflow.com/questions...e-folder-with-a-specific-name-with-powershell
---------------------------------------------------------------------------------------------------
Get-ChildItem -Filter coffee -Recurse -Force | Remove-Item -Recurse -Force
---------------------------------------------------------------------------------------------------
But i get this errors:
========================================================================================
Get-ChildItem : Access to the path
'C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5' is denied.
At line:1 char:1
- Get-ChildItem -Filter coffee -Recurse -Force | Remove-Item -Recurs ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edAccessException
+ FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
Get-ChildItem : Access to the path 'C:\Windows\system32\LogFiles\WMI\RtBackup' is denied.
At line:1 char:1
- Get-ChildItem -Filter coffee -Recurse -Force | Remove-Item -Recurs ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
edAccessException
+ FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
========================================================================================