I have ISE open as admin but still cannot get child items from User profile application Data What am I doing wrong
Get-ChildItem : Access to the path ‘C:\users\108736\AppData\Local\Application Data’ is denied.
I have ISE open as admin but still cannot get child items from User profile application Data What am I doing wrong
Get-ChildItem : Access to the path ‘C:\users\108736\AppData\Local\Application Data’ is denied.
Your scenario is a little unclear.
When you say “I have the ISE open as admin” it can mean one of two things.
Simply doing #1 will get you access denied since UAC will run it in the lower privilege state. The way you can tell definitively is to run …
whoami /priv
In the lower state you will only have five privileges. In the higher state you will have upwards of 20 (actual count varies by OS).
bingo you hit it I am doing run as administrator I will switch to an admin box Gah powershell can be a pain sometimes
Be careful now. This is NOT a PowerShell issue. It’s the way UAC runs in Windows.