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: 39
Author
Points: 27584
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.

   Report Abuse
Re: MOM 2005 Tasks - User Context
Posted: Tue, Feb 09, 2010 8:14 AM :: Rank: 57
Author
Points: 40744
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
   Report Abuse
Re: MOM 2005 Tasks - User Context
Posted: Tue, Feb 09, 2010 8:24 AM :: Rank: 51
Author
Points: 40744
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
   Report Abuse

Home  » Operations Manager  » MOM 2005 Tasks - User Context
Top Contributors
Featured Members
Pete Zerger
Points: 65502
Level: System Center Expert
Tommy Gunn
Points: 42718
Level: System Center Expert
Simon Skinner
Points: 40744
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27584
Level: System Center Expert