Get-Printer | Format-List Name, Shared, ShareName

Example: http://192.168.1.50:631/printers/HP_LaserJet_Office

# Run as Administrator Set-Printer -Name "PrinterName" -Shared $true -ShareName "OfficePrinter"

How To Setup A Print Server On Windows 11 [verified] -

Get-Printer | Format-List Name, Shared, ShareName

Example: http://192.168.1.50:631/printers/HP_LaserJet_Office

# Run as Administrator Set-Printer -Name "PrinterName" -Shared $true -ShareName "OfficePrinter"