Easy question for the y’all:
I’m getting ready to migrate the contents of a Windows Server 2008 R2 file server over to a Windows Server 2019 file server using Storage Migration Service (SMS).
That part will be a slick piece of cake I expect thanks to the Storage Migration Service tool.
My question has to do with the network printers/queues I have installed on that 2008 R2 box…
Should I migrate them first or wait until after my SMS migration is complete to migrate the printers?
Thanks,
Gordon
I don’t think it really matters.
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntsysadmin/SJ0PR07MB7679F38B1CD5DF5096757BA5D38D9%40SJ0PR07MB7679.namprd07.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/e7bad7f504bb4305860f9a78caeaba96%40smithcons.com.
That’s kinda what I thought, but I wanted to bounce it off the wall for other opinions.
Thanks Henry and MBS.
Gordon
From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com]
On Behalf Of Henry Awad
Sent: Wednesday, February 10, 2021 10:59 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] RE: Storage Migration Service & printers
[EXTERNAL]
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK7ueo4qx2gnL-JK4B_h2vBdgH1-VsL3M6uvPnNoehHsgQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/SJ0PR07MB7679FDCB6DC2C7F6847EFC50D38D9%40SJ0PR07MB7679.namprd07.prod.outlook.com.
My plan was to use Windows Admin Center and connect to my 2019 server.
From there, I’ve read that I can use the Print Management snap-in to export the printers on the 2008 R2 box to a file/collection which can then be imported into the 2019 box:
I don’t have a lot of printers to migrate (<20) so after migrating, if there’s issues, I can sort them out manually.
I would however be interested in taking a look-see at your scripts if you’ve a mind to share.
Much obliged in advance Henry.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK42D9Yd6x%2B0X2-9-yWufw-QBw2ba1rQghz%2BJ_hF5rWkwg%40mail.gmail.com.
Whoops, mistyped.
I don’t use WAC to do this, I do it directly on the 2019 box…
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/SJ0PR07MB7679DAEF9EDF27EA9D347224D38D9%40SJ0PR07MB7679.namprd07.prod.outlook.com.
Unrelated but curious are you using DFS namespace?
Will have to do this next year myself so keen to find out from you how it worked out with SMS as I used robocopy the last time I had to do it and although it worked okay, it was not great or flawless.
From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com]
On Behalf Of Gordon Pegue
Sent: Wednesday, February 10, 2021 12:15 PM
To: ntsys...@googlegroups.com
Subject: [ntsysadmin] Storage Migration Service & printers
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntsysadmin/SJ0PR07MB7679F38B1CD5DF5096757BA5D38D9%40SJ0PR07MB7679.namprd07.prod.outlook.com.
I would be interested, as well. As in, how long does it take with SMS? We migrate file servers every year (field offices, 5-yr rotation), and we use robocopy. Initial sync a few days before, then a final sync on the night of cutover.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Denes, Laszlo
Sent: Friday, February 12, 2021 5:24 AM
To: ntsys...@googlegroups.com
Subject: [ntsysadmin] RE: Storage Migration Service & printers
Warning: This email originated from outside of CDFW and should be treated with extra caution.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/b12ad352b685498a898d343a905a2aaa%40TGHVSEX2013ACT.torontograce.org.
Get list of all existing printers on a server:
Run the following PowerShell command:
Get-Printer -ComputerName yourservername | Format-Table -Wrap > C:\temp\printer_list.txt
You will use the information from this output as input for the other scripts
Create DHCP Reservations using PowerShell
Create a csv file with the following columns: ScopeId, IPAddress, Name, ClientId, Description (ClientId is the MAC address of the printer)
Rung the following command in PowerShell: Import-Csv –Path “C:\temp\Printer_Reservations.csv” | Add-DhcpServerv4Reservation –ComputerName “yourservername”
Create printer ports on printer server:
Create a csv file with the following column: Name, PrinterHostAddress, ComputerName
Run the following command in PowerShell:
$PortList = Import-Csv -Path "C:\temp\PrinterPort.csv"
forEach ($port in $portlist) {Add-PrinterPort -Name $Port.Name -PrinterHostAddress $Port.Name -ComputerName yourservername}
4- Install drivers on new print server (I used Universal Print Drivers so I only needed 2 drivers for over 200 printers)
5- Run the PowerShell script below
function CreatePrinterPort {
$server = $args[0]
$port = ([WMICLASS]“\\.\ROOT\cimv2:Win32_TCPIPPrinterPort”).createInstance()
$port.Name= $args[1]
$port.SNMPEnabled=$false
$port.Protocol=2
$port.HostAddress= $args[2]
$port.Put()
}
function CreatePrinter {
$server = $args[0]
$print = ([WMICLASS]“\\.\ROOT\cimv2:Win32_Printer”).createInstance()
$print.drivername = $args[1]
$print.PortName = $args[2]
$print.Shared = $true
$print.Published = $false
$print.Sharename = $args[3]
$print.Location = $args[4]
$print.Comment = $args[5]
$print.DeviceID = $args[6]
$print.Put()
}
$printers = Import-Csv “printers.csv”
foreach ($printer in $printers) {
CreatePrinterPort $printer.Printserver $printer.Portname $printer.IPAddress
CreatePrinter $printer.Printserver $printer.Driver $printer.Portname $printer.Sharename $printer.Location $printer.Comment $printer.Printername
}To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/SJ0PR09MB66862FB75318031E573361A1AA8B9%40SJ0PR09MB6686.namprd09.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK6jviDZP1XUWkea18Yig1eqmC6ZMgWYzTdS8RqSGRkrtA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CADy1Ce7t6%2BqXNyg5cENpjwRiDTakUf5Ds9ohEWer-j1VaanAAw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK4JJc9dwX61mb50-_uG957oRrr%3DqEOrYSVQjh3hgAapgw%40mail.gmail.com.
Thanks for the detailed methodology/scripts you provided Henry.
I’ve already successfully migrated my print queues/ports/drivers using the Print Management features on my source and destination servers.
It was very slick and took less than 15 minutes to migrate my handful of Ricoh, OKI and HP devices.
Testing after the migration was flawless.
Gordon
From: ntsys...@googlegroups.com [mailto:ntsys...@googlegroups.com] On Behalf Of Henry Awad
Sent: Monday, February 15, 2021 9:55 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] RE: Storage Migration Service & printers
[EXTERNAL]
Sorry for the late reply but I was working on upgrading my VMware hosts last week. Here's how I automated the upgrade of my print servers:
2. Get list of all existing
3. printers on a server:
Run the following PowerShell command:
Get-Printer -ComputerName yourservername | Format-Table -Wrap > C:\temp\printer_list.txt
You will use the information from this output as input for the other scripts
3. Create DHCP Reservations
4. using PowerShell
b. Create a csv file with
c. the following columns: ScopeId, IPAddress, Name, ClientId, Description (ClientId is the MAC address of the printer)
f. Rung the following command
g. in PowerShell: Import-Csv –Path “C:\temp\Printer_Reservations.csv” | Add-DhcpServerv4Reservation –ComputerName “yourservername”
7. Create printer ports on
8. printer server:
a. Create a csv file with
b. the following column: Name, PrinterHostAddress, ComputerName
e. Run the following command
f. in PowerShell:
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CAGaCHK6jviDZP1XUWkea18Yig1eqmC6ZMgWYzTdS8RqSGRkrtA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/SJ0PR07MB7679D0794F04BBF10E53498FD3889%40SJ0PR07MB7679.namprd07.prod.outlook.com.
@Henry Awad: That’s an awesome script thank you for sharing it!
VSCode with the PowerShell Extension picks up on that as the encapsulated portion doesn’t get highlighted like it should.
The way the wiring in my brain is coding for me is intimidating at the best of times. With the encouragement of fellow MVP Ben Thomas I got into VS Code.
^^^
This is the process I now use to set up VS Code and the necessary extensions. It’s awesome. 😊
Philip Elder MCTS
Microsoft High Availability MVP
E-mail: Phili...@mpecsinc.ca
Phone: +1 (780) 458-2028
Web: www.mpecsinc.com
Cloud: www.CanadianCloudWorx.com
Blog: blog.mpecsinc.com
Twitter: Twitter.com/MPECSInc
Skype: MPECSInc.
Please note: Although we may sometimes respond to email, text and phone calls instantly at all hours of the day, our regular business hours are 8:00 AM - 5:00 PM, Monday thru Friday.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Kurt Buff, GSEC/GCIH/PCIP
Sent: February 15, 2021 11:33
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] RE: Storage Migration Service & printers
Oh Oh. There are smart quotes in that snippet.
Whoever copies that out will have to correct it, or it might cause problems.
Kurt
On Mon, Feb 15, 2021 at 9:54 AM Henry Awad <aw...@cua.edu> wrote:
Sorry for the late reply but I was working on upgrading my VMware hosts last week. Here's how I automated the upgrade of my print servers:
- Get list of all existing printers on a server:
Run the following PowerShell command:
Get-Printer -ComputerName yourservername | Format-Table -Wrap > C:\temp\printer_list.txt
You will use the information from this output as input for the other scripts
2. Create DHCP Reservations using PowerShell
a. Create a csv file with the following columns: ScopeId, IPAddress, Name, ClientId, Description (ClientId is the MAC address of the printer)
b. Rung the following command in PowerShell: Import-Csv –Path “C:\temp\Printer_Reservations.csv” | Add-DhcpServerv4Reservation –ComputerName “yourservername”
3. Create printer ports on printer server:
a. Create a csv file with the following column: Name, PrinterHostAddress, ComputerName
b. Run the following command in PowerShell:
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/CADy1Ce7t6%2BqXNyg5cENpjwRiDTakUf5Ds9ohEWer-j1VaanAAw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/1a7cb9b6e3dd432bb5d8654dffc57dc7%40MPECSInc.Ca.