-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create GetPasswordFromRunasProfile.xml
- Loading branch information
1 parent
825c6cf
commit 9cdde65
Showing
1 changed file
with
109 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" SchemaVersion="2.0" OriginalSchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<Manifest> | ||
<Identity> | ||
<ID>GetPasswordFromRunasProfile</ID> | ||
<Version>1.0.0.29</Version> | ||
</Identity> | ||
<Name>GetPasswordFromRunasProfile</Name> | ||
<References> | ||
<Reference Alias="MSDL"> | ||
<ID>Microsoft.SystemCenter.DataWarehouse.Library</ID> | ||
<Version>7.0.8432.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
<Reference Alias="SC"> | ||
<ID>Microsoft.SystemCenter.Library</ID> | ||
<Version>7.0.8432.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
<Reference Alias="MSNL"> | ||
<ID>Microsoft.SystemCenter.Notifications.Library</ID> | ||
<Version>7.0.9538.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
<Reference Alias="Windows"> | ||
<ID>Microsoft.Windows.Library</ID> | ||
<Version>7.5.8501.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
<Reference Alias="System"> | ||
<ID>System.Library</ID> | ||
<Version>7.5.8501.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
<Reference Alias="Unix"> | ||
<ID>Microsoft.Unix.Library</ID> | ||
<Version>7.6.1092.0</Version> | ||
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken> | ||
</Reference> | ||
</References> | ||
</Manifest> | ||
<Monitoring> | ||
<Tasks> | ||
<Task ID="GetPasswordFromRunasProfile.GetRunAsCreds" Accessibility="Public" Enabled="true" Target="SC!Microsoft.SystemCenter.ManagementServer" Timeout="300" Remotable="true"> | ||
<Category>Maintenance</Category> | ||
<ProbeAction ID="Probe" TypeID="Windows!Microsoft.Windows.PowerShellProbe"> | ||
<ScriptName>DisplayCredentials.ps1</ScriptName> | ||
<ScriptBody>Param( | ||
$Microsoft_SystemCenter_DataWarehouse_ActionAccount, | ||
$Microsoft_SystemCenter_DatabaseWriteActionAccount, | ||
$Microsoft_SystemCenter_DataWarehouse_ReportDeploymentActionAccount, | ||
$Microsoft_SystemCenter_Notification_NotificationActionAccount, | ||
$Microsoft_SystemCenter_DataWarehouse_SdkSqlAuthenticationActionAccount, | ||
$Microsoft_Unix_ActionAccount, | ||
$Microsoft_Unix_AgentMaintenanceAccount, | ||
$Microsoft_Unix_PrivilegedAccount | ||
) | ||
|
||
# Michel kamp | ||
# http://michelkamp.wordpress.com | ||
|
||
|
||
# output the input paramters | ||
$PSBoundParameters.GetEnumerator() | foreach { Write-Output "Account detail of profile" $_.Key $_.Value } | ||
|
||
# end script | ||
|
||
</ScriptBody> | ||
<SnapIns /> | ||
<Parameters> | ||
<Parameter> | ||
<Name>Microsoft_SystemCenter_DataWarehouse_ActionAccount</Name> | ||
<Value>$RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.ActionAccount"]/UserName$ / $RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.ActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft.SystemCenter.DatabaseWriteActionAccount</Name> | ||
<Value>$RunAs[Name="SC!Microsoft.SystemCenter.DatabaseWriteActionAccount"]/UserName$ / $RunAs[Name="SC!Microsoft.SystemCenter.DatabaseWriteActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_SystemCenter_DataWarehouse_ReportDeploymentActionAccount</Name> | ||
<Value>$RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.ReportDeploymentActionAccount"]/UserName$ / $RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.ReportDeploymentActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_SystemCenter_Notification_NotificationActionAccount</Name> | ||
<Value>$RunAs[Name="MSNL!Microsoft.SystemCenter.Notification.NotificationActionAccount"]/UserName$ / $RunAs[Name="MSNL!Microsoft.SystemCenter.Notification.NotificationActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_SystemCenter_DataWarehouse_SdkSqlAuthenticationActionAccount</Name> | ||
<Value>$RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.SdkSqlAuthenticationActionAccount"]/UserName$ / $RunAs[Name="MSDL!Microsoft.SystemCenter.DataWarehouse.SdkSqlAuthenticationActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_Unix_ActionAccount</Name> | ||
<Value>$RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/UserName$ / $RunAs[Name="Unix!Microsoft.Unix.ActionAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_Unix_AgentMaintenanceAccount</Name> | ||
<Value>$RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/UserName$ / $RunAs[Name="Unix!Microsoft.Unix.AgentMaintenanceAccount"]/Password$</Value> | ||
</Parameter> | ||
<Parameter> | ||
<Name>Microsoft_Unix_PrivilegedAccount</Name> | ||
<Value>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/UserName$ / $RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/Password$</Value> | ||
</Parameter> | ||
</Parameters> | ||
<TimeoutSeconds>300</TimeoutSeconds> | ||
<StrictErrorHandling>true</StrictErrorHandling> | ||
</ProbeAction> | ||
</Task> | ||
</Tasks> | ||
</Monitoring> | ||
</ManagementPack> |