Intel AMT Features > PowerShell Template

PowerShell Template

The use cases of the Intel AMT features include code snippets that you can run with Microsoft PowerShell. You can copy and paste the code snippets into the PowerShell template. The template only requires connection information for an already configured Intel AMT platform in order to run. The snippets require that the Intel vPro Scripting Library is installed on the platform where the snippets are executed.

Some snippets use Snippet Functions to perform repetitive steps.

# Begin flow template

[CmdletBinding()]

Param (

    [Parameter(Mandatory = $true, position = 0,HelpMessage = "Hostname, FQDN, or IP Address")] [String] $hostname,

    [Parameter(Mandatory = $true, position = 1,HelpMessage = "Digest User")] [string] $user,

    [Parameter(Mandatory = $true, position = 2,HelpMessage = "Digest Password")] [string] $password)

 

Import-Module 'IntelvPro'

 

########################################

#   Create a Wsman Connection Object   #

########################################

$wsmanConnectionObject = new-object 'Intel.Management.Wsman.WsmanConnection'

$wsmanConnectionObject.Username = $user

$wsmanConnectionObject.Password = $password

$wsmanConnectionObject.Address = "http://" + $hostname + ":16992/wsman"

 

########################################

#  >>> Insert your code snippet here   #

########################################

 

Remove-Module 'IntelvPro'

# End flow template

 

 

Copyright © 2006-2021, Intel Corporation. All rights reserved.