# Run a script as a scheduled task as Administrator

**URL:** <https://forums.powershell.org/t/run-a-script-as-a-scheduled-task-as-administrator/24344>\
**Category:** PowerShell Help\
**Created:** [June 25, 2024, 9:38am UTC](https://forums.powershell.org/t/run-a-script-as-a-scheduled-task-as-administrator/24344 "2024-06-25T09:38:18Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 2, 2024, 8:35pm UTC](https://forums.powershell.org/t/run-a-script-as-a-scheduled-task-as-administrator/24344/18 "2024-07-02T20:35:10Z")

</div>

If you use this you end up with the account of the user running the code/script creating the scheduled task - not the user currently logged on to the computer during the runtime of the task. ☝🏼😉

---

_[View the full topic](https://forums.powershell.org/t/run-a-script-as-a-scheduled-task-as-administrator/24344)._
