RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Derrenbacker, L. Jonathan
transaction(s) or tax-related matter(s) addressed herein. From: Steven Peck [mailto:sep...@gmail.com] Sent: Thursday, March 7, 2013 5:46 PM To: NT System Admin Issues Subject: Re: Running Powershell script as scheduled task fails with 0x1 If you dig down in task scheduler there are tons

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Brian Desmond
Admin Issues Subject: RE: Running Powershell script as scheduled task fails with 0x1 I always wrap powershell in a BAT and schedule the BAT. -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 7, 2013 2:34 PM To: NT System Admin Issues Subject: Re: Running

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Michael B. Smith
Easier to change a BAT than change something in task scheduler. I'm lazy. -Original Message- From: Brian Desmond [mailto:br...@briandesmond.com] Sent: Friday, March 8, 2013 2:38 PM To: NT System Admin Issues Subject: RE: Running Powershell script as scheduled task fails with 0x1 Really

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Webster
And old! Thanks Webster -Original Message- From: Michael B. Smith [mailto:mich...@smithcons.com] Subject: RE: Running Powershell script as scheduled task fails with 0x1 Easier to change a BAT than change something in task scheduler. I'm lazy. ~ Finally, powerful endpoint

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Michael B. Smith
I'll always be younger than you. -Original Message- From: Webster [mailto:webs...@carlwebster.com] Sent: Friday, March 8, 2013 2:54 PM To: NT System Admin Issues Subject: RE: Running Powershell script as scheduled task fails with 0x1 And old! Thanks Webster -Original Message

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Andrew S. Baker
. -Original Message- From: Webster [mailto:webs...@carlwebster.com] Sent: Friday, March 8, 2013 2:54 PM To: NT System Admin Issues Subject: RE: Running Powershell script as scheduled task fails with 0x1 And old! Thanks Webster -Original Message- From: Michael B. Smith

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Todd Lemmiksoo
with 0x1 I always wrap powershell in a BAT and schedule the BAT. -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 7, 2013 2:34 PM To: NT System Admin Issues Subject: Re: Running Powershell script as scheduled task fails with 0x1 Sorry; this is Win

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-08 Thread Joseph L. Casale
] Sent: Thursday, March 7, 2013 1:59 PM To: NT System Admin Issues Subject: Re: Running Powershell script as scheduled task fails with 0x1 On Thu, Mar 7, 2013 at 2:37 PM, Webster webs...@carlwebster.commailto:webs...@carlwebster.com wrote: I thought it was -File c:\scripts\myscript.ps1. See

Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
I can't understand why my script is failing. I can run it from a Powershell prompt (I have to Run as administrator, because the script is deleting some files in a backup directory). But it works perfectly when I do it that way. But when I create a Scheduled Task to do it, it fails with 0x1. I

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
Sorry; this is Win 2008 R2. On Thu, Mar 7, 2013 at 2:30 PM, Michael Leone oozerd...@gmail.com wrote: I can't understand why my script is failing. I can run it from a Powershell prompt (I have to Run as administrator, because the script is deleting some files in a backup directory). But it

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Webster
Powershell script as scheduled task fails with 0x1 I can't understand why my script is failing. I can run it from a Powershell prompt (I have to Run as administrator, because the script is deleting some files in a backup directory). But it works perfectly when I do it that way. But when I create

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael B. Smith
I always wrap powershell in a BAT and schedule the BAT. -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 7, 2013 2:34 PM To: NT System Admin Issues Subject: Re: Running Powershell script as scheduled task fails with 0x1 Sorry; this is Win 2008 R2

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
http://www.CarlWebster.com -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 07, 2013 2:30 PM To: NT System Admin Issues Subject: Running Powershell script as scheduled task fails with 0x1 I can't understand why my script is failing. I can

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Crawford, Scott
Webster Consultant and Citrix Technology Professional http://www.CarlWebster.com -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 07, 2013 2:30 PM To: NT System Admin Issues Subject: Running Powershell script as scheduled task fails with 0x1 I

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Crawford, Scott
Subject: RE: Running Powershell script as scheduled task fails with 0x1 Total guess coming :) It seems like -Command would be used when you just want to run a one liner by passing the command directly, but -File is used when you want to run a .ps1. That being said, I just did a quick test from cmd

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Steven Peck
fails. -Original Message- From: Crawford, Scott [mailto:crawfo...@evangel.edu] Sent: Thursday, March 7, 2013 3:04 PM To: NT System Admin Issues Subject: RE: Running Powershell script as scheduled task fails with 0x1 Total guess coming :) It seems like -Command would be used when