PoshCode Archive  Artifact [4dee61bdc0]

Artifact 4dee61bdc072f216034aad222a11edc4bd7000796521e2e0d153cdfc2e3c2f10:

  • File OpsMgr-psd1.ps1 — part of check-in [b3236d39aa] at 2018-06-10 13:10:03 on branch trunk — A module manifest Wrapper for Microsoft’s Operations Manager Shell. Requires Operations Manager Shell on build machine, but resulting module can be copied/used on clients w/o Operations Manager installation. (user: unknown size: 2452)

# encoding: utf-8
# api: powershell
# title: OpsMgr.psd1
# description: A module manifest Wrapper for Microsoft’s Operations Manager Shell. Requires Operations Manager Shell on build machine, but resulting module can be copied/used on clients w/o Operations Manager installation.
# version: 0.1
# type: module
# license: CC0
# x-poshcode-id: 2425
# x-archived: 2011-01-01T01:11:52
#
#
<# 
#Run the following code to create OpsMgr module
#To Use run import-module OpsMgr; Start-OperationsManagerClientShell -ManagementServerName: "" -PersistConnection: $true -Interactive: $true;
if (-not (test-path $home\Documents\WindowsPowerShell\Modules\OpsMgr))
{new-item  $home\Documents\WindowsPowerShell\Modules\OpsMgr -type directory}
Set-Location "C:\Program Files\System Center Operations Manager 2007"
Copy-Item "Microsoft.EnterpriseManagement.OperationsManager.ClientShell.dll","Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Format.ps1xml",`
"Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Types.ps1xml","Microsoft.EnterpriseManagement.OperationsManager.ClientShell.dll-help.xml",`
"Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Functions.ps1","Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Startup.ps1",`
"Microsoft.EnterpriseManagement.OperationsManager.ClientShell.NonInteractiveStartup.ps1" `
-destination $home\Documents\WindowsPowerShell\Modules\OpsMgr
Set-Location "C:\Program Files\System Center Operations Manager 2007\SDK Binaries"
Copy-Item  "Microsoft.EnterpriseManagement.OperationsManager.dll","Microsoft.EnterpriseManagement.OperationsManager.Common.dll" -destination $home\Documents\WindowsPowerShell\Modules\OpsMgr
#>


@{
ModuleVersion="0.0.0.1"
Description="A Wrapper for Microsoft's Operations Manager Shell "
Author="Chad Miller"
Copyright="© 2010, Chad Miller, released under the Ms-PL"
CompanyName="http://sev17.com"
CLRVersion="2.0"
FormatsToProcess="Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Format.ps1xml"
NestedModules="Microsoft.EnterpriseManagement.OperationsManager.ClientShell"
RequiredAssemblies="Microsoft.EnterpriseManagement.OperationsManager.dll","Microsoft.EnterpriseManagement.OperationsManager.Common.dll"
TypesToProcess="Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Types.ps1xml"
ScriptsToProcess="Microsoft.EnterpriseManagement.OperationsManager.ClientShell.Functions.ps1"
}