$Printer = Get-CimInstance -Class Win32_Printer -Filter "Name='Samsung M337x'" Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter
$Printer = Get-CimInstance -Class Win32_Printer -Filter "Name='Samsung M337x'" Invoke-CimMethod -InputObject $Printer -MethodName SetDefaultPrinter