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.

Quereact Latest Questions

  • 0
Anonymous

How to monitor printers status on a network using VBscript?

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

 

0
0
Like1 User
1 User

Related Questions

2 Answers

  1. Hi,

    Use the script in below. It uses the WScript.Network object to enumerate all printer connections on the network and check their status using the GetPrinterStatus method.

    The status of each printer is  printed to the console.

    Hope this will help.

     

     

  2. This answer was edited.

    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 Network property for each printer to determine whether it is connected to the network. If the Network property is True, the script outputs a message indicating that the printer is connected to the network. If the Network property is False, the script outputs a message indicating that the printer is not connected to the network.

    I hope this helps!

Leave an answer

Leave an answer

Choose from here the video type.

Put Video ID here: https://www.youtube.com/watch?v=sdUUx5FdySs Ex: "sdUUx5FdySs".