W4RH4WK / Debloat-Windows-10

A Collection of Scripts Which Disable / Remove Windows 10 Features and Apps
Other
6.05k stars 846 forks source link

Dependency step denied. #211

Closed philandy closed 5 years ago

philandy commented 5 years ago
PS C:\WINDOWS\system32> ls -Recurse *.ps1 | Unblock-File
ls : Access to the path 'C:\WINDOWS\system32\LogFiles\WMI\RtBackup' is denied.
At line:1 char:1
+ ls -Recurse *.ps1 | Unblock-File
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (C:\WINDOWS\syst...es\WMI\RtBackup:String) [Get-ChildItem], UnauthorizedAccessException
    + FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand
W4RH4WK commented 5 years ago

You have to run this command in the downloaded repository, not the system32 folder.