= Fix: Editing Excel Documents With Powershell as Scheduled Job Fails =
**Summary**: When automating excel tasks with powershell as a scheduled job you might run into issues, as server-side office tasks are not always that easy. But sometimes the fix is very easy. \\
**Date**: Around 2019 \\
**Refactor**: 2 January 2025: Checked links and formatting. \\
{{tag>fix office powershell}}
Due to some weird issues with excel or powershell (nobody knows for sure although Microsoft claims it's not supported [[http://support.microsoft.com/kb/257757|here]] ) it seems impossible to edit, create or save Excel documents with powershell when running it as a scheduled job, when set that the user running the task does not have to be logged on. Searching the Internet there is a solution, which worked for me and a lot of other people. You'll have to create some folders depending on if you're running Windows in 32bits or 64bits:
You'll always have to create this folder:
C:\Windows\System32\config\systemprofile\Desktop
And if you're running 64bits you also have to create this folder:
C:\Windows\SysWOW64\config\systemprofile\Desktop
Now it will work.