Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

need to execute a sharepoint powershell in task manager

$
0
0

here his my script

i named my script pascal.bat on my desktop

i copied some internet samples to execute my script

my script is in c:\script\export.ps1

for testing purposes
first i open and sharepoint powershell and then i drag my script to that windowd and it executes well so i know my script.ps1 is working and it does what it should do.
I just can't add it to my task manager

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command".’C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\CONFIG\POWERSHELL\Registration\SharePoint.ps1'; c:\scripts\export.ps1"

i get an error message and i don't know wh

T

Thanks everyone for reading my thread its really appreciated


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>