G
G
gizmo_zx2021-12-28 12:35:59
cmd/bat
gizmo_zx, 2021-12-28 12:35:59

From CMD block/unblock network printer IP?

Cheerful day.
There is a network printer (plotter) HP Designjet 500 plus 24, which gives out formats possible for printing for a very long time (5-10 minutes each)
Now, to speed up printing, I do this:
1) turn off the network adapter
2) send no print (the printer shows offline mode)
3) I connect the network adapter
4) the task gets to the network printer

It is very inconvenient to pull the network. Is there any tricky command (script) to temporarily block the printer's IP, so that it would not cut off the network, but run the script - the printer is not available via IP, another one is available.

I would be grateful for an indication of the direction of excavations
Windows 10 x64 and Windows 8.1 x64
The network is simple, normal without a domain.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AUser0, 2021-12-28
@AUser0

Add a route through a non-existent router: route add 10.10.10.2 10.10.10.128
Delete with the command: route del 10.10.10.2
The first IP is the one that belongs to your printer.
The second IP is any address that _NOT_ exists on your network.
According to this setting, traffic should go through a router that does not exist. And he won't get anywhere. In this case, the rest of the network will work as before.
You can try the commands directly in the Windows console, it will work. Of course - run with administrator rights...

R
res2001, 2021-12-28
@res2001

Add/remove a rule to the Windows firewall using netsh.

M
Maxim Korneev, 2022-01-11
@MaxLK

first you need to stop treating the tonsils rectally.
switching the printer offline can be much easier.
what does the phrase "for a very long time gives formats possible for printing" mean?
Are you printing raster or vector? from what software and tried to tweak the print settings in it? what driver is installed? what about disk space? did you clean the queue folder? What equipment is between the printer and the PC? file size for printing? firmware updated? HP Instant Printing application installed? Have you tried deleting and recreating the queue? Have you tried changing the properties of the queue?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question