Install a pfx certificate into Cert:/LocalMachine/Root store.
Version : 1.0
File Name : installpfx.ps1
Author : Adewale Azeez - iamthecarisma@gmail.com
Date : Jan-09-2020
Install a pfx certificate into Cert:/LocalMachine/Root store. This
command is a shorthand for using installpfxx
to install into the
Cert:/LocalMachine/Root store.
The pfx certificate is installed into the system trusted location. Only the pfx certificate location and password is required and this does not prompt a confirm dialog.
installpfx [-cert_path] <String> [-password_] <Object>
[<CommonParameters>]
attr |
value |
---|---|
Required? |
true |
Position? |
1 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
attr |
value |
---|---|
Required? |
true |
Position? |
2 |
Default value |
|
Accept pipeline input? |
false |
Accept wildcard characters? |
false |
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).
System.String[]
System.String
installpfx ./Certificate.pfx password
Install the pfx Certificate into the system trusted location Cert:/LocalMachine/Root
installpfx ./Certificate2.pfx youshallnotpass
Install the pfx Certificate2 into the system trusted location Cert:/LocalMachine/Root