Home > Intel Communities > Open Port IT Community > Intel® vPro™ Expert Center > Blog > 2008 > December > 02
Currently Being Moderated
3

Intel AMT, Windows Powershell, and You

Posted by Trevor Sullivan on Dec 2, 2008 9:36:40 PM

Hello everyone!

 

I have been working on understanding the Intel AMT Developer's Toolkit (DTK) so that I can begin developing some custom tools around Intel vPro. One of the tools that I am planning on working with is Microsoft's Windows Powershell. Windows Powershell is a very powerful, object-oriented command-line replacement for Windows XP, Vista, 2003, and 2008. It's an administrative scripting language that is significantly more powerful than VBscript, and has the entire power of the Microsoft .NET Platform behind it.

 

Just today, I've had my first success in using the Intel DTK with Windows Powershell, in my quest to automate Intel vPro related tasks using Powershell!

 

This is some really cool stuff, and I just had to get it out there to share with the community. I can't wait to see what else people build off of this!

 

Here is the first sample code that I've gotten to function correctly. I'm using it against a Dell Optiplex 755 running AMT firmware version 3.2.1, which was provisioned through ConfigMgr SP1.

 

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

 

$amtusername = "vprodemo\DomainUser"
$amtpassword = "P@SSW0Rd"
$amthostname = "vproclient.vprodemo.local"
$amtport = 16993
$amtrecallpassword = $false
$amtwebservicesonly = $false


$manageabilitystack = "C:\Program Files\Intel\Manageability Developer Tool Kit\Manageability Stack.dll"


[System.Reflection.Assembly]::LoadFile("$ManageabilityStack") | Out-Null
Write-Host "Connecting to $amthostname on port $amtport"
$amtdevice = New-Object ManageabilityStack.AmtSystem $amthostname,$amtport,$amtusername,$amtpassword,$amtrecallpassword,$amtwebservicesonly
$amtdevice.UseTls = $true
$amtdevice.WsManSupport = $true
Write-Host "TLS: $($amtdevice.UseTls), WsMan Support: $($amtdevice.WsManSupport)"
$amtdevice.Connect()


while ($amtdevice.State -eq "Connecting")
{
Start-Sleep 1
}
Write-Host "AMT device is in state $($amtdevice.State.ToString())"

 

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

 

Unfortunately that's all I can post for now, but I definitely plan on continuing work on this development!

 

Trevor Sullivan

Systems Engineer

OfficeMax Corporation



Add a comment Leave a comment on this blog post.
Dec 8, 2008 8:40 AM Guest Peet  says:

Hi Trevor,

 

cool stuff!

Im searching for customizied scripts to use SOL, IDE-R and power management. Im not an expert in scripting powershell, I just know how to use it.

Do you think to develop some more scripts in that direction?

Dec 8, 2008 4:07 PM Trevor Sullivan Trevor Sullivan    says in response to Peet:

Hi Peet!

 

I'll see what I can figure out for you! It won't be right away, but I will try to gear some of my writing towards that. Actually, diving a little deeper into some of these features was definitely my intention in the future.

Dec 8, 2008 4:09 PM Trevor Sullivan Trevor Sullivan    says in response to Peet:

Peet,

 

Also, you might want to download the Intel AMT Developer Toolkit (DTK). This toolkit, although geared towards developers, has some really cool, free vPro software tools that should get you going a little bit. I know that there's a batch job tool, although I haven't been able to test it out just yet.


You can download the AMT DTK here:

 

http://www.intel.com/software/amt-dtk/

 

--Trevor