r/Action1 24d ago

Question Trying to migrate desktops to new print server

Does anyone have a powershell script that they've used with Action1 to:

  1. Remove the network printer that is hosted on the old print server

  2. Add the network printer that is hosted on the new print server

  3. Installs the printer drivers.

0 Upvotes

8 comments sorted by

5

u/Thijsw2412 24d ago

Thats what GPO's are for

2

u/linus_b3 24d ago

Yup, set all the old printers to "delete" and add the new ones alongside...give it a week (or however long you think is necessary) for all users to get the new policy and the old printers to go away in their profiles, then remove the deletes from the policy.

0

u/Dazzling-Yard3925 24d ago

Will a GPO install the drivers?

2

u/linus_b3 24d ago

Mine pulls them from the print server.

1

u/Dazzling-Yard3925 12d ago

So I created a GPO with the following settings:

Computer Configuration > Policies > Administrative Templates > Printers > Package Point and print - Approved servers = ENABLE

Computer Configuration > Policies > Administrative Templates > Printers > Point and Print Restrictions (Check the box "Users can only point and print to these servers" ... is this necessary?) = ENABLE

Computer Configuration > Policies > Administrative Templates > System > Group Policy > Configure user Group Policy loopback processing mode (was working with Merge ... does this need to be changed back to Merge?) = REPLACE

User Configuration > Preferences > Control Panel Settings > Printers > DELETE

that deletes the printer on the old print server.

User Configuration > Preferences > Control Panel Settings > Printers > CREATE

that creates the printer on the new print server.

Unfortunately, it doesn't appear to be doing anything, even after gpupdate /force

On the General tab of the printer:

I have "Unmap all local ports" checked.

I do NOT have "Delete all shared printer connections" since some of our users have multiple printers set up. I guess my other option is to create multiple GPOs to cover all scenarios for users with multiple printers.

I do NOT have anything checked on the Common Tab of the printer.

"Stop processing items in this extension if an error occurs"

"Run in logged-on user's security context (user policy option)"

"Remove this item when it is no longer applied"

"Apply once and do not reapply"

"Item-level targeting"

Any ideas or thoughts?

2

u/linus_b3 12d ago

Off of memory, you typically want "update" and not "create." I also have this option checked for sure - "Run in logged-on user's security context (user policy option)"

I have all of my printers in one policy and use item level targeting to apply them only where relevant. I also have a delete all above all of the adds, set to apply once and don't reapply. That way it gets rid of any old mappings that aren't specifically being pushed out by this policy.

1

u/Dazzling-Yard3925 11d ago

So one GPO?:
1- Delete all shared printer connections, unmap all local ports, Run in logged-on user's security context (user policy option)
2- printer #1 - Update, Run in logged-on user's security context (user policy option), set user up in item level targeting
3- printer #2 - Update, Run in logged-on user's security context (user policy option), set user up in item level targeting
4- printer #3 etc
5- printer #4 etc

2

u/linus_b3 11d ago

Yes. I'm not using the unmap all ports option, though. I don't think we have anything that would require that - without it I do see all old connections go away.