Using the PowerShell module, you can make all the main features of the VBA Access Library available in your PowerShell console or your own PowerShell script. As with the command line tools, you can analyze, browse, sign * and unlock Office documents. The PowerShell module is ideal for modern scripts or use by administrators (e.g. as part of user support).
To sign a document, f.e. use the following command:
Add-VBACertificate -File "c:office-dateienMyDocument.docm" -CertificateSubject "CN=proWare" -Overwrite $true
Explanation: With Add-VBACertificate, select the “Signing” function of the VBA Access Library. The file “c:office-fileienMyDocument.docm” is signed. With the parameter-CertificateSubject, you select the certificate. In this example, the certificate is installed in the certificate memory of the operating computer. With the-Overwrite parameter, you specify that any signatures that may exist should be overwritten. You can get detailed help with each command by calling via the PowerShell command help.