Forum Discussion
Ameerm2023
Apr 27, 2023Copper Contributor
Not getting the values in CSV
I have the PowerShell scripts which is giving output saved as CSV file if i run the scripts manually but If create the windows scheduler to run it automatically i am not getting any result saved in t...
Andres-Bohren
Apr 27, 2023Iron Contributor
Hi Ameerm2023
Did you run the Interactive Script "As Administrator"? So the Files might have a Flag the User can't overwrite if he is not running with highest privileges (Basically: Run as Administrator)
You can try to run the Script "with highest privileges"
Did you select "Run wehther user is logged on or not"?
Regards
Andres
Ameerm2023
May 01, 2023Copper Contributor
I am using the same account for other tasks scheduler and even in the same folder i am getting other records are getting saved but i dont know why this script is having the issue
- Andres-BohrenMay 01, 2023Iron ContributorDid you set a Path in Actions > "Start in" on your Scheduled Task?
Otherwise try to set a Full Path for your CSV's in your Script: C:\Script\Output.csv
Regards
Andres