Hi,
I am new to VBScript, I am trying to get all the printers status on a network.
Is there a script to do that?
thank you
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
here is the code if you need to check if a printer is connected to nework:
This script uses the Windows Management Instrumentation (WMI) service to query for printers with the name “HP DeskJet”. It then checks the value of the
Networkproperty for each printer to determine whether it is connected to the network. If theNetworkproperty isTrue, the script outputs a message indicating that the printer is connected to the network. If theNetworkproperty isFalse, the script outputs a message indicating that the printer is not connected to the network.I hope this helps!
Hi,
Use the script in below. It uses the
WScript.Networkobject to enumerate all printer connections on the network and check their status using theGetPrinterStatusmethod.The status of each printer is printed to the console.
Hope this will help.