2020/07/03 #既定のプリンタ
皆様おはようございます、
#猫でもできるPowerShell(備忘録)
#既定のプリンタ
<# 元ネタ
通常使うプリンターの設定
https://docs.microsoft.com/ja-jp/powershell/scripting/samples/working-with-printers
#>
$printer = Get-CimInstance -Class Win32_Printer -Filter "Name='HP LaserJet 5Si'"
Invoke-CimMethod -InputObject $printer -MethodName SetDefaultPrinter
簡単に書けると思いきや意外に長くなっています
ここはGUIが勝っていますかね・・
ではまた;
#猫でもできるPowerShell(備忘録)
#既定のプリンタ
<# 元ネタ
通常使うプリンターの設定
https://docs.microsoft.com/ja-jp/powershell/scripting/samples/working-with-printers
#>
$printer = Get-CimInstance -Class Win32_Printer -Filter "Name='HP LaserJet 5Si'"
Invoke-CimMethod -InputObject $printer -MethodName SetDefaultPrinter
簡単に書けると思いきや意外に長くなっています
ここはGUIが勝っていますかね・・
ではまた;