Skip to content

Instantly share code, notes, and snippets.

@treyharris
Created July 24, 2017 16:40
Show Gist options
  • Save treyharris/743d1d16e2ae6a714fd42f4f45e4ef5a to your computer and use it in GitHub Desktop.
Save treyharris/743d1d16e2ae6a714fd42f4f45e4ef5a to your computer and use it in GitHub Desktop.
Remove-Item error
PS C:\Program Files (x86)\Steam\steamapps\common\SteamVR\content> Remove-Item -Path 'C:\Program Files (x86)\Steam\steamapps\common\SteamVR\content\panorama\window_keybinds.cfg\' -Force
Remove-Item : Access is denied
At line:1 char:1
+ Remove-Item -Path 'C:\Program Files (x86)\Steam\steamapps\common\Stea ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Program File...w_keybinds.cfg\:String) [Remove-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : ItemExistsUnauthorizedAccessError,Microsoft.PowerShell.Commands.RemoveItemCommand
Remove-Item : Cannot find path 'C:\Program Files (x86)\Steam\steamapps\common\SteamVR\content\panorama\window_keybinds.cfg\' because it does not exist.
At line:1 char:1
+ Remove-Item -Path 'C:\Program Files (x86)\Steam\steamapps\common\Stea ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Program File...w_keybinds.cfg\:String) [Remove-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment