Sign PowerShell script from C#
问题 I'm looking to create a web service to sign powershell scripts for use within an intranet. Is it possible to replicate the block of encoded text at the end of a script that set-authenticodesignature creates? The MSDN documentation seems to say no. 回答1: .NET is not your friend on this one. No support that I've been able to find - I've searched on multiple occasions This is a VB example that uses Win32 API. Could be adapted to Powershell. http://blogs.msdn.com/b/alejacma/archive/2008/02/20/how