Closed philandy closed 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
You have to run this command in the downloaded repository, not the system32 folder.
system32