Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: 12 Mar 2007 07:29:28 -0700,    group: microsoft.public.exchange.development        back       


Exchange rights within SYSTEM account   
Hi all,

I am having a problem with scripting and no ammount of google-ing has
come up with a solution as yet. I have a script which emails me a list
of Exchange mailboxes and their sizes. The script runs perfectly fine
if I login to the server with the admin account, it is based on
http://msdn2.microsoft.com/en-us/library/aa144767.aspx
with a bit of emailing code wrapped around it.

However when I install the script using the AT API for Scheduled
Tasks, it doesnt seem to return any instances of Exchange_Mailbox. The
script runs and emails me a blank log.

How do I get it working under the "NT AUTHORITY\SYSTEM" account (this
is what runs under the schduled tasks)?

It is a standard Exchange 2003 setup running on Windows 2003 SBS.

Thanks
Chris
date: 12 Mar 2007 07:29:28 -0700   author:   unknown

Re: Exchange rights within SYSTEM account   
To execute a query against the Exchange_Mailbox WMI class a user must have 
at least delegated View Only Admin rights. What I would suggest you do is 
instead of trying to run the job under the system context create a user for 
this purpose then delegate it view only admin rights and then set the job to 
run as this account. (you need to be carefull of your password expirations 
with this account)

Cheers
Glen

 wrote in message 
news:1173709768.834735.123280@c51g2000cwc.googlegroups.com...
> Hi all,
>
> I am having a problem with scripting and no ammount of google-ing has
> come up with a solution as yet. I have a script which emails me a list
> of Exchange mailboxes and their sizes. The script runs perfectly fine
> if I login to the server with the admin account, it is based on
> http://msdn2.microsoft.com/en-us/library/aa144767.aspx
> with a bit of emailing code wrapped around it.
>
> However when I install the script using the AT API for Scheduled
> Tasks, it doesnt seem to return any instances of Exchange_Mailbox. The
> script runs and emails me a blank log.
>
> How do I get it working under the "NT AUTHORITY\SYSTEM" account (this
> is what runs under the schduled tasks)?
>
> It is a standard Exchange 2003 setup running on Windows 2003 SBS.
>
> Thanks
> Chris
>
date: Tue, 13 Mar 2007 09:12:33 +1100   author:   Glen Scales [MVP]

Re: Exchange rights within SYSTEM account   
Thanks Glen, I thought it would have something to do with permissions.
Unfortunatly I need the scheduled task to be run under the system
context as this job ia created and deleted automatically by another
script. The script also needs to be able to run regardless of domain /
server / user names. How do I delegate View only admin rights to the
system account?

Thanks

Chris


On 12 Mar, 22:12, "Glen Scales [MVP]" 
wrote:
> To execute a query against the Exchange_Mailbox WMI class a user must have
> at least delegated View Only Admin rights. What I would suggest you do is
> instead of trying to run the job under the system context create a user for
> this purpose then delegate it view only admin rights and then set the job to
> run as this account. (you need to be carefull of your password expirations
> with this account)
>
> Cheers
> Glen
>
>  wrote in message
>
> news:1173709768.834735.123280@c51g2000cwc.googlegroups.com...
>
> > Hi all,
>
> > I am having a problem with scripting and no ammount of google-ing has
> > come up with a solution as yet. I have a script which emails me a list
> > of Exchange mailboxes and their sizes. The script runs perfectly fine
> > if I login to the server with the admin account, it is based on
> >http://msdn2.microsoft.com/en-us/library/aa144767.aspx
> > with a bit of emailing code wrapped around it.
>
> > However when I install the script using the AT API for Scheduled
> > Tasks, it doesnt seem to return any instances of Exchange_Mailbox. The
> > script runs and emails me a blank log.
>
> > How do I get it working under the "NT AUTHORITY\SYSTEM" account (this
> > is what runs under the schduled tasks)?
>
> > It is a standard Exchange 2003 setup running on Windows 2003 SBS.
>
> > Thanks
> > Chris
date: 13 Mar 2007 02:22:47 -0700   author:   unknown

Re: Exchange rights within SYSTEM account   
Same way as normal using Exchange System Manager right click the top of the 
organization and select delegate from the context menu have a look at the 
walk through on 
http://www.msexchange.org/articles/Understanding-Exchange-Access-Control-Administrative-Delegation.html

Cheers
Glen

 wrote in message 
news:1173777767.814554.235990@s48g2000cws.googlegroups.com...
> Thanks Glen, I thought it would have something to do with permissions.
> Unfortunatly I need the scheduled task to be run under the system
> context as this job ia created and deleted automatically by another
> script. The script also needs to be able to run regardless of domain /
> server / user names. How do I delegate View only admin rights to the
> system account?
>
> Thanks
>
> Chris
>
>
> On 12 Mar, 22:12, "Glen Scales [MVP]" 
> wrote:
>> To execute a query against the Exchange_Mailbox WMI class a user must 
>> have
>> at least delegated View Only Admin rights. What I would suggest you do is
>> instead of trying to run the job under the system context create a user 
>> for
>> this purpose then delegate it view only admin rights and then set the job 
>> to
>> run as this account. (you need to be carefull of your password 
>> expirations
>> with this account)
>>
>> Cheers
>> Glen
>>
>>  wrote in message
>>
>> news:1173709768.834735.123280@c51g2000cwc.googlegroups.com...
>>
>> > Hi all,
>>
>> > I am having a problem with scripting and no ammount of google-ing has
>> > come up with a solution as yet. I have a script which emails me a list
>> > of Exchange mailboxes and their sizes. The script runs perfectly fine
>> > if I login to the server with the admin account, it is based on
>> >http://msdn2.microsoft.com/en-us/library/aa144767.aspx
>> > with a bit of emailing code wrapped around it.
>>
>> > However when I install the script using the AT API for Scheduled
>> > Tasks, it doesnt seem to return any instances of Exchange_Mailbox. The
>> > script runs and emails me a blank log.
>>
>> > How do I get it working under the "NT AUTHORITY\SYSTEM" account (this
>> > is what runs under the schduled tasks)?
>>
>> > It is a standard Exchange 2003 setup running on Windows 2003 SBS.
>>
>> > Thanks
>> > Chris
>
>
date: Tue, 13 Mar 2007 08:00:47 -0700   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us