Re: script issue

2012-08-27 Thread phil levine
I got it fixed. Thanks everyone. had to put that "Add-PSSnapin *Exchange*" at the top of my script and it worked like a champ. From: Damien Solodow To: MS-Exchange Admin Issues Sent: Monday, August 27, 2012 1:02 PM Subject: RE: script issue It would be at

RE: script issue

2012-08-27 Thread Damien Solodow
It would be at the top of queuecheck.ps1; MBS sent a good link with what you’ll need: http://theessentialexchange.com/blogs/michael/archive/2012/04/27/how-to-make-your-powershell-session-into-an-exchange-management-shell.aspx DAMIEN SOLODOW Systems Engineer 317.447.6033 (office) 317.447.6014 (fa

Re: script issue

2012-08-27 Thread phil levine
no it doesnt. based on this line where would I put it? From: Damien Solodow To: MS-Exchange Admin Issues Sent: Monday, August 27, 2012 12:13 PM Subject: RE: script issue Does the script start with some add-pssnapin or an invoke of the EMS launch script?   D

RE: script issue

2012-08-27 Thread Campbell, Rob
You want to use the same command line that’s used to launch the EMS for your version of Exchange. From: phil levine [mailto:plevin...@yahoo.com] Sent: Monday, August 27, 2012 10:53 AM To: MS-Exchange Admin Issues Subject: Re: script issue C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe

RE: script issue

2012-08-27 Thread Damien Solodow
Does the script start with some add-pssnapin or an invoke of the EMS launch script? DAMIEN SOLODOW Systems Engineer 317.447.6033 (office) 317.447.6014 (fax) HARRISON COLLEGE From: phil levine [mailto:plevin...@yahoo.com] Sent: Monday, August 27, 2012 11:53 AM To: MS-Exchange Admin Issues Subject

RE: script issue

2012-08-27 Thread Michael B. Smith
http://theessentialexchange.com/blogs/michael/archive/2012/04/27/how-to-make-your-powershell-session-into-an-exchange-management-shell.aspx From: phil levine [mailto:plevin...@yahoo.com] Sent: Monday, August 27, 2012 11:36 AM To: MS-Exchange Admin Issues Subject: script issue I'm trying to set u

Re: script issue

2012-08-27 Thread phil levine
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NonInteractive -File "c:\scripts\queuecheck.ps1" From: Damien Solodow To: MS-Exchange Admin Issues Sent: Monday, August 27, 2012 11:37 AM Subject: RE: script issue You running the scheduled

Re: script issue

2012-08-27 Thread Rob Bonfiglio
Have you loaded the Exchange snapins? Add-PSSnapin *Exchange* On Mon, Aug 27, 2012 at 11:36 AM, phil levine wrote: > I'm trying to set up a scheduled task to run against my queues and it > works fine from inside the EMS but when I run it as a scheduled task I get > the error "the term get-queue

RE: script issue

2012-08-27 Thread Campbell, Rob
You don't have the required Exchange snapin loaded in the PS session the scheduled task is running. From: phil levine [mailto:plevin...@yahoo.com] Sent: Monday, August 27, 2012 10:36 AM To: MS-Exchange Admin Issues Subject: script issue I'm trying to set up a scheduled task to run against my que

RE: script issue

2012-08-27 Thread Damien Solodow
You running the scheduled task with the same user account? What is the command line you're using for the task? I'd guess that the task doesn't have the Exchange snapins loaded.. DAMIEN SOLODOW Systems Engineer 317.447.6033 (office) 317.447.6014 (fax) HARRISON COLLEGE From: phil levine [mailto:pl

script issue

2012-08-27 Thread phil levine
I'm trying to set up a scheduled task to run against my queues and it works fine from inside the EMS but when I run it as a scheduled task I get the error "the term get-queue is not recognized"   What am I missing?   Thanks   Phil --- To manage subscriptions click here: http://lyris.sunbelt-soft