System Center 2012 SP1 之五 使用App Controller Cmdlet

根据 Windows PowerShell 技术,System Center 2012 - App Controller cmdlet 能够向管理员提供自动化 App Controller 管理的功能。

一、 访问 App Controller cmdlet

1、 访问 App Controller cmdlet方式

您可以使用以下两种方法之一在 App Controller 服务器上访问 App Controller cmdlet:

1) 打开 App Controller 命令行界面。如果您打开 App Controller 命令行界面,则 Windows PowerShell 窗口也会打开并且会为您导入 App Controller 模块。

a) 要打开 App Controller 命令行界面,请在 App Controller 服务器上,按Win键,右击空白处,在下方点击“所有应用”,找到“Windows PowerShell module for App Controller”并点击打开。

System Center 2012 SP1 之五 使用App Controller Cmdlet_第1张图片

b) 点击打开后如下图:

p_w_picpath

2) 导入 App Controller 模块。您可以将 App Controller 模块导入到打开的 Windows PowerShell 会话中。

a) 若要导入 App Controller 模块,请右击任务栏上的Windows PowerShell快捷按钮并以管理员身份运行,然后在 Windows PowerShell 命令提示符处输入 Import-Module -Name AppController。

System Center 2012 SP1 之五 使用App Controller Cmdlet_第2张图片

b) 若要验证是否已将 App Controller 模块导入到当前的 Windows PowerShell 会话,请在 Windows PowerShell 命令提示符处输入 Get-Module。你应该会在返回的模块列表中看到名称 AppController。

System Center 2012 SP1 之五 使用App Controller Cmdlet_第3张图片

2、 若要列出 App Controller cmdlet,请输入 Get-Command -Module AppController。

 

3、 若要获取任何 App Controller cmdlet 的帮助,请输入 Get-Help

 

二、 App Controller SP1 Cmdlets

下面列表包含了System Center 2012 Service Pack1(SP1)App Controller cmdlets和功能的帮助主题的链接:

Name

Description

Add-SCACAzureDisk

Adds a virtual hard disk to Windows Azure.

Add-SCACAzureImage

Adds a virtual hard drive to the Windows Azure p_w_picpath store.

Add-SCACAzureSubscription

Adds a Windows Azure subscription to App Controller.

Add-SCACCloudSystem

Adds a new connection to a VMM management server or Service Provider Foundation.

Add-SCACShare

Adds a library share.

Add-SCACUserRole

Creates an App Controller user role.

Add-SCACUserRoleMember

Adds a member to a user role.

Add-SCACUserRoleScope

Adds Windows Azure subscription and Service Provider Foundation connection cloud objects to the scope of objects that a user role can manage.

Export-SCACAesKey

Exports the App Controller AES key from the registry to the specified file.

Get-SCACAdminSetting

Gets one or more administrator settings from the App Controller server.

Get-SCACAzureHostedService

Gets the hosted services on a specified Windows Azure cloud.

Get-SCACAzureRoleInstance

Gets all role instances running in Windows Azure.

Get-SCACAzureServiceDeployment

Gets a specified Windows Azure service deployment.

Get-SCACCloud

Gets one or more App Controller cloud objects.

Get-SCACCloudSystem

Gets one or more cloud systems on an App Controller server.

Get-SCACJob

Gets App Controller jobs.

Get-SCACServer

Gets and establishes a connection with an App Controller server.

Get-SCACServiceDeployment

Gets the service deployment for a cloud.

Get-SCACTemporaryStorage

Gets the temporary storage used by the App Controller server.

Get-SCACUserRole

Gets user roles on the App Controller server.

Remove-SCACAzureSubscription

Removes a Windows Azure subscription from App Controller.

Remove-SCACCloudSystem

Removes a connection to a cloud system.

Remove-SCACShare

Removes a library share.

Remove-SCACUserRole

Removes the specified user role.

Remove-SCACUserRoleMember

Removes a member from a user role.

Remove-SCACUserRoleScope

Removes a Windows Azure subscription cloud object from the scope of objects that a user role can manage.

Resume-SCACServiceDeployment

Resumes the specified suspended service deployment.

Set-SCACAdminSetting

Sets an administrator setting to a specified value.

Set-SCACCloudSystem

Updates the properties of a cloud system.

Set-SCACTemporaryStorage

Sets the temporary storage used by the App Controller server.

Suspend-SCACServiceDeployment

Suspends the specified service deployment.

至此,本篇《System Center 2012 SP1之五 使用App Controller Cmdlet》全部内容已完成。

更多精彩分享,期待您的关注!