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

How can I check a remote computer's power state with Intel EMA powershell? I'm using 1.10

YasserA
Beginner
1,438 Views

Dear Sir/Madam,

 

How is this achievable with PowerShell?

 

I've looked through the swagger API - but can't seem to find it.

 

Please help?

 

Kindest regards

 

Yasser

0 Kudos
8 Replies
Victor_G_Intel
Employee
1,416 Views

Hello YasserA,


Thank you so much for contacting Intel customer support,


In regard to your question, the only options that we have for power shell scripts in reference to an endpoint’s power state are the ones below:


Set-IntelEMAEndpointPowerState: Sends a specified power command to an

 endpoint.


Set-IntelEMAEndpointPowerStateBulkFile: Sends a specified power command to a

 list of endpoints managed by Intel(R) EMA.


Both commands are meant to be used to change a computer’s power state to either reset it, reboot it or wake up an endpoint.


Best regards,


Victor G.

Intel Technical Support Technician


0 Kudos
Jimmy_Wai_Intel
Employee
1,397 Views

Hi YasserA,

 

You can use the Endpoint details API /api/latest/endpoints/{endpointId} to get the power status. Power status is part of the information returned from the API.

 

Regards,

Jimmy Wai

Technical Sales Specialist, Intel

0 Kudos
YasserA
Beginner
1,396 Views

Dear Victor,

 

Many thanks for the quick reply!

 

Intel SCS powershell provided much more functionality - is there any development going on to get power state querying available in PowerShell?

 

also - if not PowerShell - is this power state querying functionality available via Javascript or any other language?

 

Kindest regards

 

Yasser

 

0 Kudos
YasserA
Beginner
1,363 Views

Dear Jimmy,

 

Many thanks for your quick response!

 

I noticed in the sample script (Get-IntelEMAEndpointFullDetails.ps1) it has the following:

 

        0 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (On)"}        
        1 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (On)"}       
        2 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (Off)"}       
        3 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (Off)"}   
        4 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (Sleep)"}       
        5 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (Hibernate)"}       
        6 {$endpointResult.PowerState = [string]$endpointResult.PowerState + " (On)"}  

 

I couldn't find the details under endpoints in swagger - but I need to know what the 3 On states mean? and the 2 Off states? Can you please shed some more light?

 

Is one of them Standby? How do they correlate with the S0 to S5 states - etc?

 

Many thanks - all help is appreciated!

 

Kindest regards

 

Yasser

0 Kudos
Victor_G_Intel
Employee
1,356 Views

Hello YasserA,

 

Thank you for your response.

 

Please let me review this information internally, and kindly wait for an update.

 

Once we have more information to share, we will post it on this thread.

 

Regards,

 

Victor G.

Intel Technical Support Technician 


0 Kudos
Victor_G_Intel
Employee
1,344 Views

Hello YasserA,


Thank you for your patience.


You can use the following command:


Get-IntelEMAEndpointFullDetails.ps1


In Endpoint Details you will find the following:


"PowerState": "0 (On)",


"PowerStateUpdate": "2023-05-03T03:19:45Z",


"IsConnected": true,


"IsCiraConnected": true,


Best regards,


Victor G.

Intel Technical Support Technician  


0 Kudos
JoseH_Intel
Moderator
1,254 Views

Hello YasserA,


I am just following up to double-check if you were able to gather the requested information. Otherwise, let us know if you require more time to accomplish this.


Regards


Jose A.

Intel Customer Support Technician


0 Kudos
Victor_G_Intel
Employee
1,216 Views

Hello YasserA,


We have not heard back from you.


If you need any additional information, please submit a new question as this thread will no longer be monitored.


Regards,


Victor G.

Intel Technical Support Technician


0 Kudos
Reply