This will automatically extract the SCOMAgentHelper PowerShell module archive to the default Modules folder. This will overwrite any existing SCOMAgentHelper module files. Enabled this ONLY if the .PSX1 deployment rule fails.
This will extract the contents of the specified resource .zip (SCOMAgentHelper PowerShell Module) to the destination directory.
Typically you would enable this as an alternative ONLY if the primary deployment rule (SCOMAgentHelper.DeploySCOMAgentHelperPowerShellModulePSX1.Rule) failed.
Name | Description | Default Value |
DestDir | Folder to where the files will be placed. | C:\Program Files\WindowsPowerShell\Modules\SCOMAgentHelper |
ExtractArchive | If the resource file is a .zip, this tells the datasource script to either copy the .zip to the destination or extract the contents of the .zip to the destination. | true |
OverwriteIfAlreadyExists | This will determine if any existing files will be overwritten when the rule executes. Typically you would want the files to be updated in the event of a management pack update. | true |
SourceFilePath | This is the location to the resources file(s) in the MPB. This can be a semicolon-separated list of paths. Typically you would not modify this. | $FileResource[Name='SCOMAgentHelper.SCOMAgentHelper.psd1.Resource']/Path$;$FileResource[Name='SCOMAgentHelper.SCOMAgentHelper.psm1.Resource']/Path$ |
WriteActionTimeoutSeconds | The amount of time that the Write Action will attempt to create the event before aborting the workflow. | 30 |
WriteToEventLog | This will control debug info written to the Operations Manager event log. | false |
Target | Microsoft.SystemCenter.Agent |
Category | Operations |
Enabled | False |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | SCOMAgentHelper.CopyResourceToFolder.Schedule.DS | Default |
WA | WriteAction | SCOMAgentHelper.CopyResourceToFolder.WA | Default |
<Rule ID="SCOMAgentHelper.DeploySCOMAgentHelperPowerShellModuleZIP.Rule" Target="SC!Microsoft.SystemCenter.Agent" Enabled="false" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Operations</Category>
<DataSources>
<DataSource ID="DS" TypeID="SCOMAgentHelper.CopyResourceToFolder.Schedule.DS">
<IntervalSeconds>86400</IntervalSeconds>
<!--<IntervalSeconds>300</IntervalSeconds>-->
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="SCOMAgentHelper.CopyResourceToFolder.WA">
<DestDir>C:\Program Files\WindowsPowerShell\Modules\SCOMAgentHelper</DestDir>
<ExtractArchive>true</ExtractArchive>
<OverwriteIfAlreadyExists>true</OverwriteIfAlreadyExists>
<SourceFilePath>$FileResource[Name='SCOMAgentHelper.SCOMAgentHelper.zip.Resource']/Path$</SourceFilePath>
<WorkflowName>SCOMAgentHelper.DeploySCOMAgentHelperPowerShellModuleZIP.Rule</WorkflowName>
<WriteActionTimeoutSeconds>300</WriteActionTimeoutSeconds>
<WriteToEventLog>false</WriteToEventLog>
</WriteAction>
</WriteActions>
</Rule>