Remove-AzureVMMicrosoftAntimalwareExtension
從虛擬機器移除 Microsoft Antimalware 擴充功能。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Remove-AzureVMMicrosoftAntimalwareExtension
-VM <IPersistentVM>
[-Profile <AzureSMProfile>]
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
Remove-AzureVMMicrosoftAntimalwareExtension Cmdlet 會從虛擬機器中移除 Microsoft Antimalware 擴充功能。 如果已開啟監視,此 Cmdlet 也會移除 Microsoft Antimalware 事件的集合。
範例
範例 1:移除反惡意程式碼擴充功能
PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM
此命令會移除 Microsoft Antimalware 擴充功能。 此命令會使用 Get-AzureVM Cmdlet 來取得指定的虛擬機器物件,然後使用管線運算子將物件傳遞至目前的 Cmdlet。 Remove-AzureVMMicrosoftAntimalwareExtension 會移除延伸模組。 命令會將結果傳遞至 Update-AzureVM Cmdlet 以更新虛擬機器。
參數
-InformationAction
指定此 Cmdlet 如何回應資訊事件。
此參數可接受的值為:
- 繼續
- 忽略
- 詢問
- SilentlyContinue
- 停止
- 暫止
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
指定資訊變數。
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VM
將虛擬機器指定為 IPersistentVM 物件。
Type: | IPersistentVM |
Aliases: | InputObject |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸入
IPersistentVM
備註
- 為了避免干擾其他應用程式或服務的監視,此 Cmdlet 只會移除 Microsoft Antimalware 事件的集合。 它不會變更其他應用程式組態或預設監視組態。