Link to home
Start Free TrialLog in
Avatar of tballin
tballin

asked on

PowerShell Script Problem

When I run the attached script in the PowerShell ISE it works as expected, however, when I attempt to run it directly in PowerShell I don’t get any results.  What am I doing wrong?
test.txt
Avatar of bigbigpig
bigbigpig

Are you running it on the same machine as you're running ISE?  Try opening PowerShell with elevation (Run As Administrator).
Avatar of tballin

ASKER

Yes, this is all happening on  the same machine...

Opening the PS window with elevated has no effect (That's actually how I've been running it).

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tballin

ASKER

Thanks!