Disable-CMAmtAuditLog

Disables audit logging for Intel AMT-based computers.

Syntax

Disable-CMAmtAuditLog
       -Device <IResultObject>
       [-Force]
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Disable-CMAmtAuditLog
       -DeviceId <String>
       [-Force]
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Disable-CMAmtAuditLog
       -DeviceName <String>
       [-Force]
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-CMAmtAuditLog cmdlet disables audit logging for Intel Active Management Technology (Intel AMT)-based computers. The audit log records authorized and authenticated out-of-band management activities performed on Intel AMT computers.

You can specify computers by using the Microsoft System Center Configuration Manager device name or device ID, or you can use the Get-CMDevice cmdlet to get a device object. If you want to delete the current log entries, use the Clear-CMAmtAuditLog cmdlet.

Examples

Example 1: Disable audit logging for a device by using an ID

PS C:\>Disable-CMAmtAuditLog -DeviceID "16777230"

This command disables Intel AMT audit logging for a device that has the ID 16777230.

Example 2: Disable audit logging for named device

PS C:\>Disable-CMAmtAuditLog -DeviceName "Accn023.Contoso.com"

This command disables Intel AMT audit logging for a device named Accn023.Contoso.com.

Example 3: Disable audit logging by using a variable

PS C:\> $CMD = Get-CMDevice -Name "Accn023.Contoso.com"
PS C:\> Disable-CMAmtAuditLog -Device $CMD

The first command gets a device object by using the Get-CMDevice command, and then stores it in the $CMD variable.

The second command disables Intel AMT audit logging for the device in $CMD. The command uses the Force parameter. Therefore, it does not prompt you for confirmation.

Required Parameters

-Device

Specifies a device object. To obtain a device object, use Get-CMDevice.

Type:IResultObject
Aliases:InputObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-DeviceId

Specifies an array of IDs of devices.

Type:String
Aliases:ResourceId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DeviceName

Specifies an array of names of devices.

Type:String
Aliases:Name
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False