Skip to content

Set CommonWDACConfig

Violet Hansen edited this page Nov 4, 2024 · 12 revisions

Set-CommonWDACConfig available parameters

image

Syntax

Set-CommonWDACConfig
    [[-CertCN] <String>]
    [[-CertPath] <FileInfo>]
    [[-SignToolPath] <FileInfo>]
    [[-UnsignedPolicyPath] <FileInfo>]
    [[-SignedPolicyPath] <FileInfo>]
    [[-StrictKernelPolicyGUID] <Guid>]
    [[-StrictKernelNoFlightRootsPolicyGUID] <Guid>]
    [[-LastUpdateCheck] <DateTime>]
    [[-StrictKernelModePolicyTimeOfDeployment] <DateTime>]
    [[-AutoUpdate] <Boolean>]
    [<CommonParameters>]

Description

Use this cmdlet to store the values for common and frequently used parameters so that you won't have to specify them again every time.

All of the applicable cmdlets of the module automatically check the User Configuration file for any available input, if you don't specify values for their parameters. Learn more about the User Configuration file here.


An Example

Instead of specifying all of the parameters for Edit-SignedWDACConfig cmdlet like this:

Edit-SignedWDACConfig -AllowNewApps -SuppPolicyName "App 1" -CertPath "Path To Certificate.cer" -PolicyPaths "Path To Policy.xml" -CertCN "Certificate Common Name"

You can just run this

Edit-SignedWDACConfig -AllowNewApps -SuppPolicyName "App 1"

If correct and valid values for the missing parameters exist in User Configuration file, the cmdlet will automatically detect and use them seamlessly.

Parameters

-CertCN

Common Name of an installed certificate. Supports argument completion so you don't have to manually enter the Certificate's CN, just make sure the certificate is installed in the personal store of the user certificates, then press TAB to auto complete the name. You can however enter it manually if you want to.

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

-CertPath

Path to the certificate .cer file. Press TAB to open the file picker GUI and browse for a .cer file.

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

-SignToolPath

Press TAB to open the file picker GUI and browse for SignTool.exe

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

-UnSignedPolicyPath

Path to the xml file of an Unsigned policy. Supports file picker GUI.

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

-SignedPolicyPath

Path to the xml file of a Signed policy. Supports file picker GUI.

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

-AutoUpdate

Enables/Disable check for and downloading of new version of the WDACConfig module whenever it's available.

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









C#


Clone this wiki locally