# script request for running powershell stored on endpoint

**URL:** <https://forum.xcitium.com/t/script-request-for-running-powershell-stored-on-endpoint/18818>\
**Category:** Uncategorized\
**Created:** [November 5, 2024, 11:00am UTC](https://forum.xcitium.com/t/script-request-for-running-powershell-stored-on-endpoint/18818 "2024-11-05T11:00:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve](https://forum.xcitium.com/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.xcitium.com/u/steve)\
**Post date:** [November 5, 2024, 11:00am UTC](https://forum.xcitium.com/t/script-request-for-running-powershell-stored-on-endpoint/18818/1 "2024-11-05T11:00:46Z")

</div>

I want to run a PowerShell as admin located in c:\path\runme.ps1 I am uploading this file to endpoint it needs to be ran on. I have tried a couple other scripts that take commands and make a ps1 in temp and run but they are not functioning as expected. I’m trying to use a PowerShell script to create a scheduled task. When I run PS as admin call the ps1 it works as expected. when I try it through a procedure it says created the task but the task is in fact not there.

---

<div class="post-metadata">

**Author:** ![nivedithab](https://forum.xcitium.com/user_avatar/forum.xcitium.com/nivedithab/32/883_2.png) [@nivedithab](https://forum.xcitium.com/u/nivedithab)\
**Post date:** [November 5, 2024, 11:01am UTC](https://forum.xcitium.com/t/script-request-for-running-powershell-stored-on-endpoint/18818/2 "2024-11-05T11:01:26Z")

</div>

hi @PremJKumar  
could you please look into this request.

---

<div class="post-metadata">

**Author:** ![PremJKumar](https://forum.xcitium.com/user_avatar/forum.xcitium.com/premjkumar/32/883_2.png) [@PremJKumar](https://forum.xcitium.com/u/PremJKumar)\
**Post date:** [November 6, 2024, 12:03pm UTC](https://forum.xcitium.com/t/script-request-for-running-powershell-stored-on-endpoint/18818/3 "2024-11-06T12:03:15Z")

</div>

Hi @steve ,

From your request, I understood that you want to create a Task scheduler using a PowerShell script, sorry if I misunderstood the request.

Please try this script and provide your feedback  
[https://scripts.xcitium.com/frontend/web/topic/task-scheduler-for-vbscriptpowershell-batchfile-wakupstart-application](https://scripts.xcitium.com/frontend/web/topic/task-scheduler-for-vbscriptpowershell-batchfile-wakupstart-application)

Add your Powershell script here and select option 8.

Kind Regards,  
PremJK
