Need help changing Printer Port Name in Bulk

%3CLINGO-SUB%20id%3D%22lingo-sub-2180096%22%20slang%3D%22en-US%22%3ENeed%20help%20changing%20Printer%20Port%20Name%20in%20Bulk%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2180096%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all%2C%20I%20am%20in%20now%20way%20a%20powershell%20person%2C%20I%20have%20used%20other%20peoples%20scripts%20and%20manipulated%20to%20do%20what%20I%20needed%20but%20I%20am%20stuck%20on%20this%20one%20and%20running%20out%20of%20time.%20I%20just%20need%20to%20change%20the%20portname%20of%20roughly%20300%20printers%20from%20%22Printer-Name%22%20to%20%22Papercut_Printer-Name%22%20as%20shown%20below.%20i%20have%20a%20.csv%20file%20created%20based%20off%20the%20link%20below%20but%20I%20feel%20that%20I%20may%20not%20need%20that%20whole%20script%20to%20do%20what%20I%20am%20doing%20(and%20it%20errors%20out%20anyway)%2C%20and%20the%20technet%20link%20below%20that%20I%20am%20unsure%20of%20how%20to%20point%20at%20a%20.csv.%20If%20anyone%20could%20help%20me%20that%20would%20be%20great.%20Thank%20you%20very%20much!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.spiceworks.com%2Ftopic%2F1964582-need-script-to-bulk-change-printer-port-ip-addresses-on-2012-r2-print-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fcommunity.spiceworks.com%2Ftopic%2F1964582-need-script-to-bulk-change-printer-port-ip-addresses-on-2012-r2-print-server%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fwindows-powershell%2Funable-to-change-printer-port%2Fm-p%2F1443485%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fwindows-powershell%2Funable-to-change-printer-port%2Fm-p%2F1443485%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Jdavidek_0-1614725613734.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F260303i8D8BF31176169984%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Jdavidek_0-1614725613734.png%22%20alt%3D%22Jdavidek_0-1614725613734.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2180096%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPrinters%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Hello all, I am in now way a powershell person, I have used other peoples scripts and manipulated to do what I needed but I am stuck on this one and running out of time. I just need to change the portname of roughly 300 printers from "Printer-Name" to "Papercut_Printer-Name" as shown below. i have a .csv file created based off the link below but I feel that I may not need that whole script to do what I am doing (and it errors out anyway), and the technet link below that I am unsure of how to point at a .csv. If anyone could help me that would be great. Thank you very much!

 

https://community.spiceworks.com/topic/1964582-need-script-to-bulk-change-printer-port-ip-addresses-...

 

https://techcommunity.microsoft.com/t5/windows-powershell/unable-to-change-printer-port/m-p/1443485

 

Jdavidek_0-1614725613734.png

 

1 Reply
I should mention that the new Papercut_Printer-Name ports are not yet created except for the ones shown in the screen shot so i would need to add the port than set the existing to the new port name