#1 24 Apr 2017 17:01

lousyd
Member
Registered: 03 Oct 2014
Posts: 4

Get-ChildItem Has No "-FilePath" Parameter

On this page: https://ss64.com/ps/set-authenticodesignature.html

...there is an example listed like this:

Examples

Retrieve a code-signing certificate from the certificate provider and use it to sign a PowerShell script:

PS C:\>$cert=Get-ChildItem -FilePath cert:\CurrentUser\my -CodeSigningCert
PS C:\>Set-AuthenticodeSignature PsTest.ps1 -cert $cert

That "-FilePath" parameter is invalid/non-existent. It should probably be "-Path".

Offline

#2 25 Apr 2017 00:42

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 894
Website

Re: Get-ChildItem Has No "-FilePath" Parameter

Fixed now, thanks for the heads up

Offline

Board footer

Powered by FluxBB