Modifier

Partager via


Get-WdacBidTrace

Gets BidTrace settings.

Syntax

Get-WdacBidTrace
   [-Platform <String>]
   [[-Path] <String>]
   [-ProcessId <UInt32>]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
Get-WdacBidTrace
   [-Platform <String>]
   -Folder <String>
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]
Get-WdacBidTrace
   [-Platform <String>]
   [-IncludeAllApplications]
   [-CimSession <CimSession[]>]
   [-ThrottleLimit <Int32>]
   [-AsJob]
   [<CommonParameters>]

Description

The Get-WdacBidTrace cmdlet gets a list of Built-in Diagnostics Tracing (BidTrace) settings for different applications.

For more information about data access tracing, see Data Access Tracing (Windows 8) on the Microsoft Developer Network.

Examples

Example 1: Get all BidTrace settings

C:\PS>Get-WdacBidTrace

This command gets all BidTrace settings for both 32-bit and 64-bit platforms.

Example 2: Get the BidTrace setting for an application on a platform

C:\PS>Get-WdacBidTrace -Path "C:\temp\abc.exe" -Platform "32-bit"

This command gets the BidTrace setting for the application C:\temp\abc.exe and the specific settings for all its process instances on the 32-bit platform.

Example 3: Get the BidTrace setting for an application by using a Process ID

C:\PS>Get-WdacBidTrace -Path "C:\temp\abc.exe" -ProcessId 1234 -Platform "64-bit"

This command gets the BidTrace setting for the application C:\temp\abc.exe that has the Process ID 1234 on the 64-bit platform.

Example 4: Get the BidTrace setting for an application by using a wildcard character

C:\PS>Get-WdacBidTrace -Path "C:\*\abc.exe" -Platform "64-bit"

This command gets the BidTrace setting for the specified application on the 64-bit platform. The Path parameter uses a wildcard character.

Example 5: Get the BidTrace setting for application in a specified folder

C:\PS>Get-WdacBidTrace -Folder "C:\temp" -Platform "32-bit"

This command gets the BidTrace setting for the application located inside C:\temp on the 32-bit platform.

Example 6: Get the BidTrace setting for application in a folder that includes a wildcard character

C:\PS>Get-WdacBidTrace -Folder "C:\t*mp" -Platform "32-bit"

This command gets the BidTrace setting for the application in the specified location on the 32-bit platform. The Path parameter uses a wildcard character.

Example 7: Get the BidTrace settings for all 32-bit applications

C:\PS>Get-WdacBidTrace -IncludeAllApplications -Platform "32-bit"

This command gets the BidTrace settings for all 32-bit applications on the computer.

Example 8: Get BidTrace settings for both platforms

C:\PS>$BidArray = Get-WdacBidTrace

This command gets all BidTrace settings for both 32-bit and 64-bit platforms, and then store the results in the $BidArray variable.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

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

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Folder

Specifies a folder. This cmdlets gets Windows DAC BidTrace settings that are associated with the folder that this parameter specifies. You can use wildcard characters.

Type:String
Aliases:ApplicationFolder
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-IncludeAllApplications

Indicates that this cmdlet applies to all applications. If you specify this parameter, the cmdlet gets Windows DAC BidTrace settings for with all applications.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Path

Specifies the full path for an application. This cmdlet gets Windows Data Access Components (Windows DAC) BidTrace settings for the application that this parameter specifies. You can use wildcard characters. If you do not specify this parameter, this cmdlet gets all Windows DAC BidTrace settings.

Type:String
Aliases:ApplicationPath
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Platform

Specifies the platform architecture. This cmdlet gets Windows DAC BidTrace settings that belong to the architecture that this parameter specifies. The acceptable values for this parameter are:

  • 32-bit
  • 64-bit
  • All

The default value is 32-bit on a 32-bit process. The default value is 64-bit on a 64-bit process. If you run this cmdlet in a remote CIM session, this parameter refers to the platform architecture on the remote computer.

Type:String
Accepted values:32-bit, 64-bit, All
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ProcessId

Specifies a process ID. This cmdlet gets Windows DAC BidTrace settings for the process that has the ID that this parameter specifies. If you do not specify this parameter, this cmdlet gets all Windows DAC BidTrace settings.

Type:UInt32
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

CimInstance[]