Since WMI is being depreciated, I will use CIM in powershell:
Get-CIMInstance CIM_Printer | Format-Table Name,SystemName,ShareName >>printers.txt
Since WMI is being depreciated, I will use CIM in powershell:
Get-CIMInstance CIM_Printer | Format-Table Name,SystemName,ShareName >>printers.txt