Remove-SCOMRunAsProfile
从管理组中删除运行方式配置文件。
语法
Default (默认值)
Remove-SCOMRunAsProfile
[-RunAsProfile] <ManagementPackSecureReference[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Remove-SCOMRunAsProfile cmdlet 从管理组中删除运行方式配置文件。 运行方式配置文件是一组关联的运行方式帐户,用于管理凭据及其分发到不同的计算机。
示例
示例 1:删除运行方式配置文件
PS C:\>Get-SCOMRunAsProfile "Profile01" | Remove-SCOMRunAsProfile
此命令删除 Profile01 配置文件。 该命令使用 Get-SCOMRunAsProfile cmdlet 获取指定的配置文件,并使用管道运算符将其传递给 Remove-SCOMRunAsProfile cmdlet。
参数
-ComputerName
指定一个数组,其中包含用于建立连接的计算机的名称。 有效格式包括 NetBIOS 名称、IP 地址或完全限定的域名(FQDN)。 若要指定本地计算机,请指定计算机名称、localhost 或点(.)。
计算机必须运行 System Center Data Access 服务。
如果未指定此参数,则默认为当前管理组连接的计算机。
参数属性
| 类型: | String[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
| 类型: | SwitchParameter |
| 默认值: | False |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | cf |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Credential
指定运行管理组连接的用户帐户。
为此参数指定 PSCredential 对象,例如 Get-Credential cmdlet 返回的对象。
有关凭据对象的详细信息,请键入“Get-Help Get-Credential”。
如果出现该参数,则此帐户必须有权访问在 ComputerName 参数中指定的服务器。
如果未指定此参数,则默认为当前用户的帐户。
参数属性
| 类型: | PSCredential |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-RunAsProfile
指定要删除的运行方式配置文件的数组。
参数属性
| 类型: | ManagementPackSecureReference[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | 1 |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SCSession
指定 连接 对象的数组。 若要获取 连接 对象,请指定 Get-SCOMManagementGroupConnection cmdlet。
如果未显示此参数,cmdlet 将使用与管理组的活动持久连接。
使用 SCSession 参数指定不同的持久连接。
可以使用 ComputerName 和 Credential 参数创建与管理组的临时连接。
有关详细信息,请键入“Get-Help about_OpsMgr_Connections”。
参数属性
| 类型: | Connection[] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
参数属性
| 类型: | SwitchParameter |
| 默认值: | False |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | 无线 |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。