MOM 2005 Tasks - User Context
Home  » Operations Manager  » MOM 2005 Tasks - User Context

MOM 2005 Tasks - User Context
Posted: Tue, Feb 09, 2010 7:56 AM :: Rank: 4
Author
Points: 10599
Level: System Center Expert

In our old MOM 2005 environment we use Tasks to deploy custom applications.

It worked just fine, also under Server 2008 but since 2008 R2 we have the problem here that these tasks don't "really run" as the action account but as local system.

What I mean is:

I launch a VBScript that launches a Powershell Script that is supposed to write to the eventlog with this Description: "%username% $Environmentvar blahblah"

And what I get in the eventlog is:

"COMPUTERNAME$ blahblah" <- therefore the Environmentvar is null and user seems to be localsystem.

Now the funny thing is, the user that wrote into the eventlog is: The MOM Action Account.

 

The script mentioned here was just for testing purposes, the real script only relies on global variables that are loaded using Powershell Profiles, but when it runs as local system this profile won't get loaded.

As said, this occurs since Server 2008 R2 and I was wondering if anyone else faced a problem like this.

Reply  
Report Abuse
Re: MOM 2005 Tasks - User Context
Posted: Tue, Feb 09, 2010 8:14 AM :: Rank: 0
Author
Points: 24529
Level: System Center Expert
I have found this on the net http://technet.microsoft.com/en-us/magazine/ee677582.aspx . I looks like there may have been some changes to the Local Service and Local System accounts
Reply  
Report Abuse
Re: MOM 2005 Tasks - User Context
Posted: Tue, Feb 09, 2010 8:24 AM :: Rank: 0
Author
Points: 24529
Level: System Center Expert
These may help

http://technet.microsoft.com/en-au/library/dd367859(WS.10).aspx

http://www.microsoft.com/windowsserver2008/en/us/whats-new.aspx
Reply  
Report Abuse

Home  » Operations Manager  » MOM 2005 Tasks - User Context
Tag Cloud
Quick Links
Top Contributors
Pete Zerger
Points: 29220
Level: System Center Expert
Simon Skinner
Points: 24529
Level: System Center Expert
Tommy Gunn
Points: 20937
Level: System Center Expert
Stefan Koell
Points: 12514
Level: System Center Expert
MadHatter
Points: 11676
Level: System Center Expert