PowerCLI

 View Only
  • 1.  Script is not digitally signed

    Posted Sep 05, 2010 10:55 AM

    Hi,

    i have downloaded a script "Get-VMLastPowerOnOffDate-v2.ps1". I am trying to run it on my vcenter server it is giving error that, it is not digitally signed.

    Error displayed :

    C:\Program Files\VMware\Infrastructure\vSphere PowerCLI> K:\Get-VMLastPowerOnOffDate-v2.ps1

    File K:\Get-VMLastPowerOnOffDate-v2.ps1 cannot be loaded. The file K:\Get-VMLas

    tPowerOnOffDate-v2.ps1 is not digitally signed. The script will not execute on

    the system. Please see "get-help about_signing" for more details..

    At line:1 char:35

    + K:\Get-VMLastPowerOnOffDate-v2.ps1 <<<<

    + CategoryInfo : NotSpecified: (:smileyhappy: [], PSSecurityException

    + FullyQualifiedErrorId : RuntimeException

    Note: i have set Set-ExecutionPolicy RemoteSigned before running this script.

    please can anyone let me know what shall i do.

    Thanks in Advance.



  • 2.  RE: Script is not digitally signed

    Posted Sep 05, 2010 12:01 PM

    Does it run if you change execution policy to : Set-ExecutionPolicy Unrestricted



  • 3.  RE: Script is not digitally signed

    Posted Sep 06, 2010 03:27 AM

    Thanks it worked.