Powershell Command missing in KBE

I've built a K2 SDA pre-install script that gets the client computer's MAC address via the Powershell command "Get-NetAdapter".

This script works perfectly when I run it manually on a Windows system. But when the KBE runs it, I get "The term 'Get-NetAdapter' is not recognized as the name of a cmdlet, function, script file, or operable program".

Thinking maybe my one-version-back build of Windows didn't have a recent enough Powershell, I built a new KBE with the most recent 1803 build of Windows, and it also fails with the same message.

Why would a standard Powershell command not be found in a KBE run?



1 Comment   [ + ] Show comment
  • So, to watch what was happening in my script, I added a "Write-Out" command to a log file, and this cmdlet also is not found in the KBE's version of Powershell.

    What?! This is basic Powershell stuff! What good is Powershell in the KBE if it's crippled? - kentwest 2 years ago

Answers (1)

Answer Summary:
Posted by: Channeler 2 years ago
Red Belt

Top Answer


I believe this is a Windows PE 10 limitation, not related to the Powershell version, or  KACE tools:





Pre-Install tasks are using Windows PE to execute commands, I suggest you to go to your KBE, open CMD and go to

and type   Get-Module -listavailable

and it should list all modules, I did it here, and get-netadapter is not there, unfortunately

  • Wow, Who'da thunk?

    I've been trying to like Microsoft/Windows a little better lately (after years of absolutely despising them), and was doing a little better, but this sort of thing sets me back.


    I was able to find a work-around for the Get-NetAdapter, though:

    $MY_MAC = Get-CimInstance win32_networkadapterconfiguration | foreach { $_.MacAddress }

    And "Write-Host" works, so I can use that as a substitute (sort of, like using a heavy boot heel as a hammer) for "Write-Out".

    I very much appreciate your response; that explains it, and puts the blame on Microsoft rather than KACE.

    Thanks! - kentwest 2 years ago
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ