boxstarter
boxstarter copied to clipboard
Server 2016 Nano does not support Get-WmiObject, Invoke-WmiMethod
Thank you to all who have taken the time and effort to develop Boxstarter and Chocolatey!
We are having some issues with Server 2016 Core and Nano:
Server 2016 Nano runs a simplified version of PowerShell (PowerShell Core) that does not support
WMI v1 cmdlets: Get-WmiObject, Invoke-WmiMethod
among other functionality. This causes some of the Boxstarter modules that rely on WMI to fail, such as the code
$tasks+=gwmi Win32_Process -Filter "name = 'powershell.exe' and CommandLine like '%$encoded%'" | select ProcessId | % { $_.ProcessId }
https://technet.microsoft.com/en-us/windows-server-docs/get-started/powershell-on-nano-server
Related to #215 #230