Intel vPro® Platform
Intel Manageability Forum for Intel® EMA, AMT, SCS & Manageability Commander
2966 Discussions

Failed to run Intel vPro Technology Module

MasafumiDeguchi
2,595 Views

I wanted to try Intel AMT Power Management in Powershell, so after installing IntelvProModule_16.0.5.1, I followed the guide to run "Invoke-AMTPowerManagement" and got the error messages .
I checked "Get-Command -Module IntelvPro" and  the function of "Invoke-AMTPowerManagement" seems to be enabled, but any cmdlet of vPro module showed similar messages. I checked that the client computer had AMT Provisioning enabled and was accessible from the AMT WEB GUI (Port 16992).
I don't understand what the following message means. What are the possible causes?

----------------------------------------------------------------------------------------------------------

PS C:\Program Files\Intel\IntelvProModule_16.0.5.1\Bin> Invoke-AMTPowerManagement -ComputerName:<computername> -Username <username> -Password <password> -Operation poweroff
The property 'AcceptSelfSignedCertificate' cannot be found on this object. Verify that the property exists and can be set.
At C:\Program Files\Intel\IntelvProModule_16.0.5.1\Bin\IntelvPro\Invoke-AMTPowerManagement.ps1:268 char:3
+ $Connection.Options.AcceptSelfSignedCertificate=$false;
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound

 

ComputerName :
Port :
Operation :
Status : Cannot connect
Reason : Cannot find type [Intel.Management.Wsman.WsmanConnection]: verify that the assembly containing this type is loaded.

------------------------------------------------------------------------------------------------------------

 

0 Kudos
7 Replies
MIGUEL_C_Intel
Moderator
2,575 Views

Hello, MasafumiDeguchi,


Thank you for using our community.


Do you mind answering the questions below:

  1. Where are the server machine and the endpoint located? Same LAN, remote, etc.
  2. Which is the Intel® AMT version of the endpoint?
  3. Did you create the Certificate and PS credential?
  4. Do you mind telling us the purpose of this test; please provide us the estimated number of endpoints that you are planning to provision.


Regards,

Miguel C.

Intel Customer Support Technician


0 Kudos
MasafumiDeguchi
2,533 Views

Hello Miguel

Thank you for your response

>Where are the server machine and the endpoint located? Same LAN, remote, etc.The endpoint is connected with a server by VPN.

The endpoint is connected with a server by VPN.
I'll try connecting directly to the endpoint machine in same LAN without VPN.



>Which is the Intel® AMT version of the endpoint?

The AMT version is 12.0.81-build 1753.
Though I haven't tested yet, I have other versions; 11.8.55-build 3510, 12.0.45-build 1509, 15.0.35-build 1951
I will try them later.

 


>Did you create the Certificate and PS credential?

Following text from the guide in the below, I incorporated the Write-AmtCredential Function Code and the Read-AmtCredential Function Code into the IntelvPro.PSM1 file.

"you want the WriteCredentials or ReadCredentials cmdlets to be part of the IntelvPro module, add them to the list in the IntelvPro.PSM1 file."

The text is in page 12 of  the guide "Intel vPro® Technology Module for Microsoft Windows PowerShell Installation and User Guide" .
Then I imported IntelvPro.PSM1 and used the username and password I set in MEBx of endpoits.

 

 

>Do you mind telling us the purpose of this test;
>please provide us the estimated number of endpoints that you are planning to provision.

 

The purpose is to power management of Intel NUCs.
Currently, I am using AMT Web GUI for power management, but I am thinking of a mechanism to put scripts on the server and start them from another system to manage the power.

First, I'm trying to see if I can power manage the endpoint with a power shell script. These endpoints are a Linux servers, so I'm trying to manage it with PowerShell instead of EMA.
Currently I estimated hundreds of endpoints: those are all Linux servers in NUCs.

 

0 Kudos
MasafumiDeguchi
2,520 Views

Referring to the content of the error message "Cannot find type [Intel.Management.Wsman.WsmanConnection]", I thought that the IntelvPro module could not be imported normally.


Initially, I imported "IntelvPro.PSM1" with the following command. 

"PS C:\Program Files\Intel\IntelvProModule_16.0.5.1\Bin\IntelvPro> Import-Module IntelvPro.PSM1"

But, I actually failed to Invoke-AMTPowerManagement or any other commands with same messages that was "Cannot find type [Intel.Management.Wsman.WsmanConnection]: verify that the assembly containing this type is loaded".

 

So I changed the command for module import.
"PS C:\Program Files\Intel\IntelvProModule_16.0.5.1\Bin\IntelvPro> Import-Module IntelvPro"


I got another error below.

----------------------------------------------------------------------------------------------------------------------------
Import-Module : Could not load file or assembly 'file:///C:\Program
Files\Intel\IntelvProModule_16.0.0.5\Bin\IntelvPro\Intel.Wsman.Scripting.dll' or one of its dependencies. Operation is
not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:1
+ Import-Module IntelvPro
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
--------------------------------------------------------------------------------------------------------------------------------

 

So far, it seems that the Wsman.Scripting .dll could not been assembled.

My IntelvProModule version is 16.0.5.1 and PS Version is below.

---- -----
PSVersion 5.1.19041.3031
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.3031
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

0 Kudos
MIGUEL_C_Intel
Moderator
2,508 Views

Hello, MasafumiDeguchi,


We are reviewing the documentation provided; an update will be provided soon.


Regards,

Miguel C.

Intel Customer Support Technician


0 Kudos
MIGUEL_C_Intel
Moderator
2,311 Views

Hello, MasafumiDeguchi,


I hope this email finds you well.


We are still investigating the issue, and your feedback on the question below will be appreciated.


Are you getting the exception when importing the module? Like this.

Dll gets blocked when downloading a zip from the Internet.

.net - Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515) - Stack Overflow

https://stackoverflow.com/questions/34400546/could-not-load-file-or-assembly-operation-is-not-supported-exception-from-hres


We look forward to hearing from you.


Regards,

Miguel C.

Intel Customer Support Technician


0 Kudos
MasafumiDeguchi
2,278 Views

Hello, Miguel
Thank you for your reply



Referring to the information on the URL you provided, I succeeded to import IntelvPro Module and tested  Get-AMTPowerState.
I was able to get the power status without errors.

I could import the module after unblocking Wsman.Scripting .dll and the other vPro Modules,  blocking state of modules seemed to cause this error.
I will try to use Invoke-AMTPowerManagement Module.

I greatly appreciate your support. 

0 Kudos
MIGUEL_C_Intel
Moderator
2,271 Views

Hello, MasafumiDeguchi,


I am glad to know the workaround fixed the issue.  Please let me know if I can help with anything else.


Regards,

Miguel C.

Intel Customer Support Technician



0 Kudos
Reply