boxstarter icon indicating copy to clipboard operation
boxstarter copied to clipboard

Server 2016 Nano does not support Get-WmiObject, Invoke-WmiMethod

Open wspait opened this issue 8 years ago • 1 comments

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

wspait avatar Feb 15 '17 19:02 wspait

Related to #215 #230

pauby avatar Mar 18 '19 22:03 pauby