If I open the Windows Printer and devices I see a list of local and share printers. I have a vbs script that retrieves such printers that are display on the interface. if I ran Get-WMIObject Win32_Printer with admin rights I do get the local list but not
share ones. So I decided to add one, when I do add one and used PowerShell same code I am able to retrieve the network printer. Why is it not consistent the PowerShell code with vbs code ? Or why I need it to add it on the first place.
michael john ocasio