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.