Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How do I give PowerShell access to folders?

$
0
0

I have this array of servers.  What I'm trying to do is access one folder and search all items in the folder for specific criteria that I provide.  The problem is that the folder itself has a yellow lock on it and when I try to access via powershell I get the error "access to this folder is denied".  However if I go into the console and access the folder I can click on any contents in it.

What I want to do is be able to get around the access denied for the powershell session.  What would I have to put into my function to allow the powershell session access to the folder??

If i need to provide a better explination I can.

THx.


JCtech1123, Cheers


Viewing all articles
Browse latest Browse all 2562

Trending Articles