< Back

Add-Config

Sat Jan 18, 2020 9:45 pm

NAME Add-Config



SYNOPSIS

Addes a config file to be used for code signing.





SYNTAX

Add-Config [-File] <String> [-Name] <String> [<CommonParameters>]





DESCRIPTION





PARAMETERS

-File <String>

The PowerShell data file containing the configuration.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

A logical name for the configration, it does not need to mach the file name.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





This will copy the config specified by -File into the user's %LOCALAPPDADA% directory, changing the name

to the value of the -Name paramter followed by .psd1 .



A sambple config is show below:



@{

# list as many rfc3161 timestamping urls as designed.

timeStampers = @( "http://timestamp.globalsign.com/scripts/timstamp.dll",

"http://tsa.startssl.com/rfc3161",

"http://timestamp.comodoca.com/?td=sha256",

"http://sha256timestamp.ws.symantec.com/sha256/timestamp"

)



# Set this to a thumbprint of you code signing certificate.

thumbprint = "b6b248ff8ab1bf545d3f8db6c2695a6863f4bb3c"

}



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-Config -File MyConfig.psd1 -Name ForQA















RELATED LINKS