Hello Everyone,
I have recently needed to do some work with LAPS that uses the AdmPwd.PS Module. In the past (as in a few months ago) i had no problems importing the module. Now when I attempt to import it I get the error shown in the text at the end of this post. Now I can bypass this by running Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass but it just seems strange that Microsoft would not sign its own stuff. What I'm trying to figure out is if this is an issue on Microsoft's end or my end. I have tried uninstalling the package and LAPS all together and reinstalling it on my machine with the latest release from Microsoft's website but that did not help. Any assistance you could provide would be much appreciated. Thank you!
PS C:\Windows\system32> import-module AdmPwd.ps
import-module : Errors occurred while loading the format data file:
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AdmPwd.ps\AdmPwd.PS.format.ps1xml, ,
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AdmPwd.ps\AdmPwd.PS.format.ps1xml: The file was skipped because of
the following validation exception: File
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AdmPwd.ps\AdmPwd.PS.format.ps1xml cannot be loaded. The file
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\AdmPwd.ps\AdmPwd.PS.format.ps1xml is not digitally signed. You
cannot run this script on the current system. For more information about running scripts and setting execution policy,
see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170..
At line:1 char:1
+ import-module AdmPwd.ps
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], RuntimeException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand