July 2018
Beginner
552 pages
13h 18m
English
We recommend signing your scripts and modules when publishing them to a gallery. You can view this as a seal of approval. Signing scripts not only enables you to use an AllSigned execution policy, it also protects you, as a developer, from trouble. If users change a script that you have signed with your personal code-signing certificate, you can easily prove that your script did not cause the 48th outage in production, but the small code change that the recipient of your script introduced:
# Signing your modules$codeSigningCert = Get-ChildItem Cert:\CurrentUser\my -CodeSigningCert$param = @{ FilePath = @( '.\Ch10\VoiceCommands\VoiceCommands.psd1' '.\Ch10\VoiceCommands\VoiceCommands.psm1' )}$setParam = $param.Clone()$setParam.IncludeChain ...Read now
Unlock full access