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 <damien.solo...@harrison.edu>
To: MS-Exchange Admin Issues <exchangelist@lyris.sunbelt-software.com> 
Sent: Monday, August 27, 2012 1:02 PM
Subject: RE: script issue


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 (fax)
HARRISON COLLEGE
 
From:phil levine [mailto:plevin...@yahoo.com] 
Sent: Monday, August 27, 2012 12:44 PM
To: MS-Exchange Admin Issues
Subject: Re: script issue
 
no it doesnt. based on this line where would I put it?


 
From:Damien Solodow <damien.solo...@harrison.edu>
To: MS-Exchange Admin Issues <exchangelist@lyris.sunbelt-software.com> 
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?
 
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
 
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -NoLogo 
-NonInteractive -File "c:\scripts\queuecheck.ps1" 
 
From:Damien Solodow <damien.solo...@harrison.edu>
To: MS-Exchange Admin Issues <exchangelist@lyris.sunbelt-software.com> 
Sent: Monday, August 27, 2012 11:37 AM
Subject: RE: script issue
 
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:plevin...@yahoo.com] 
Sent: Monday, August 27, 2012 11:36 AM
To: MS-Exchange Admin Issues
Subject: script issue
 
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-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
 
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
 
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist
---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Reply via email to