Powershell script works in ISE, shell, and cmd.exe but not as a task -
i'm having trouble getting powershell script execute task manager.
it execute ise developed it, not task manager. i've been working on getting work while , i've got script closer , closer executing. i've been testing calling script command shell , has helped me figure out of problems. can't last error quit , hoping help. way call task manager , cmd.exe
powershell -noexit -command "& c:\processdata_sql\processdatatesting\processdata.ps1"
i pages , pages of errors exception calling "executenonquery" "0" argument: "failed convert parameter value string int32"
again code work ise powershell shell , cmd.exe.
hopefully can this.
ok found answer situation although makes no sense me.
here's how found it. decided map network drive trying using new-psdrive cmdlet. however, update needed run shell administrator. did , updated files , started testing psdive cmdlets , while doing noticed administrator when ran get-psdrive not seeing mapped drives!! yes running task "run highest privilege" checked. went in , unchecked box , started working.
Comments
Post a Comment