Good Morning!
Guys see if you can help me:

I have a print server and we are migrating all printers to a new server.
I would like to automate this configuration of removing the printer and installing the printer from the new server.

What I have so far but it didn't work was the following:


IF DELPRINTERCONNECTION ("\\ 192.168.1.1 \ FORMIM01") = 0

ENDIF

IF INGROUP ("imp_FORMIM01")
ADDPRINTERCONNECTION ("\\ infrati03 \ FORMIM01")

ENDIF

Being:
192.168.1.1 (old server)
infrati03 (new server)
FORMIM01 (printer share name)
imp_FORMIM01 (AD group of the printer where I will play all users.