-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathGetPasswordFromRunasProfile.xml
More file actions
109 lines (104 loc) · 5.33 KB
/
GetPasswordFromRunasProfile.xml
File metadata and controls
109 lines (104 loc) · 5.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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>