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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -