I’m experiencing that I can not use Get-Item -Force C:\pagefile.sys (even though this is it’s current location). It throws the following error:
get-item : Cannot find path ‘C:\pagefile.sys’ because it does not exist.
attrib.exe says that the pagefile.sys has the ASH attributes. If I set these attributes on a test file I create I can use Get-Item -Force on this file. So the attributes doesn’t seem to be the problem.
This does not happen on computers that have powershell 2 (I can get the file as expected without an error). It only happens on computers with powershell 4, but this might be a coincidence.
Does anyone know why the error is thrown?