Intel AMT Features > Snippet Functions
CollapseAll image

Snippet Functions

To simplify the PowerShell snippets, several functions were created that show how to perform certain tasks. The functions are aggregated here:

ConvertToBase64

 

function ConvertToBase64($string)

{

     return[System.Convert]::ToBase64String([Char[]]$string)

}

 

 

ComputeMD5

 

function ComputeMD5 ($user,$password,$digestRealm)

{

    $hash =$user +":" +$digestRealm +":" +$password

    $cryptoServiceProvider =[System.Security.Cryptography.MD5CryptoServiceProvider]

    $md5Algorithm = new-object$cryptoServiceProvider

    $digestPassword =$md5Algorithm.ComputeHash([Char[]]$hash)

    return$digestPassword

}

 

 

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