I am counting the number of files in a folder - simple. Kind of a loop- have an array of shared/folders.
when I run the ps script, I am admin. works great. But the PS script, when put in a job will likely need to run under another id.
That custom ID already exists with the permission to the folders.
So what is the best way to force security to us the custom id/password before it hits get-childitem
I would still like to stay with get-childitem.