Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

129 views
Skip to first unread message

Mike Leone

unread,
Jun 6, 2024, 10:59:45 AMJun 6
to NTSysAdmin
Yes, I know.

I have an old server that is running IIS with FTP. I have to (finally) migrate it over to a new server running Win 2022. Problem is, there are 98 virtual directories defined under this FTP site.

Copying over the folder structure and it's security is easy enough - hello, robocopy - but I'm not finding an easy way to export out those FTP virtual directory entries. I see references to a tool (CopyRight2) that I can't seem to get to; I see references to some "Web Deploy" addon from MS. This also seems a bit out of date, it doesn't look like it supports Win 2022, so I can import what I export.

I see I can export sites using appcmd, but I don't see it exporting FTP site details, such as all these virtual directories.

Any recommendations? I really don't want to create 98 virtual directories by hand. LOL But I'm also not seeing any easy way to export/import them, or even do something like read them in with powershell, create them on the target server like that.

Thanks
--

Mike. Leone, <mailto:tur...@mike-leone.com>

PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>

jmcnamara

unread,
Jun 6, 2024, 11:24:48 AMJun 6
to NTSysAdmin

Otherwise, clone the machine and do an inplace upgrade 2008 R2 -> 2012 R2 -> 2016 -> 2022. 
--
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/CAHBr%2B%2BgD%2BneU8DVwtS0eJxA_%2B_XFTVnzR2FNYP7HZGCysrD-3Q%40mail.gmail.com.

IMPORTANT WARNING: 

The information contained in this transmission is confidential and is intended only for the person or entity to which it is addressed. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this information is strictly prohibited.


This document may contain protected health information. If you are not the recipient, pursuant to HIPAA, please notify our office at 877-739-7481 Opt. 2 and destroy the document(s) immediately.


Recipient acknowledges and agrees that Gemini Duplication, Inc. is not engaged in the practice of law or the provision of legal services, and that recipient alone is completely and independently responsible for its own legal rights and obligations.

Michael B. Smith

unread,
Jun 6, 2024, 11:40:08 AMJun 6
to ntsys...@googlegroups.com

Have you looked at the webadministration powershell module?

 

Get-WebConfiguration should list all that information.

 

Other cmdlets allow you create virtual directories and other blah blah blah.

Mike Leone

unread,
Jun 6, 2024, 11:45:50 AMJun 6
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 11:40 AM Michael B. Smith <mic...@smithcons.com> wrote:

Have you looked at the webadministration powershell module?


Considering that I never heard of it until you just mentioned it now ... no. LOL
 

Get-WebConfiguration should list all that information.

 

Other cmdlets allow you create virtual directories and other blah blah blah.


OK! Maybe I can save the config using that and apply it to a new server.

If all else fails, I'm going to go the clone the VM, upgrade in place route. That would be quickest (for me) ...

Oh. This is PS 7 only? I'm not running v7 .. 
 

Michael B. Smith

unread,
Jun 6, 2024, 12:01:08 PMJun 6
to ntsys...@googlegroups.com

Takes 5 minutes to install it and it runs side-by-side v5.

Mike Leone

unread,
Jun 6, 2024, 12:31:26 PMJun 6
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 12:01 PM Michael B. Smith <mic...@smithcons.com> wrote:

Takes 5 minutes to install it and it runs side-by-side v5.


OK. Did that. Tried to load that module, told me

 PS C:\Program Files\PowerShell\7\Modules> import-module WebAdministration
Import-Module: The specified module 'WebAdministration' was not loaded because no valid module file was found in any module directory.

Tried to install it:

PS C:\Program Files\PowerShell\7\Modules> install-module WebAdministration
Install-Package: No match was found for the specified search criteria and module name 'WebAdministration'. Try Get-PSRepository to see
all available registered module repositories.
PS C:\Program Files\PowerShell\7\Modules> get-psrepository

Name                      InstallationPolicy   SourceLocation
----                      ------------------   --------------
PHA Internal PSRepository Trusted              \\san2\netadmin\PHA_PS_Internal_Repository
PSGallery                 Untrusted            https://www.powershellgallery.com/api/v2

So what am I missing here?

Wright, John M

unread,
Jun 6, 2024, 1:09:41 PMJun 6
to ntsys...@googlegroups.com

Try:  Install-WindowsFeature web-scripting-tools

 

--

John Wright

IT Support Specialist

1800 Old Bluegrass Avenue, Louisville, KY 40215

502.708.9953

Please submit IT requests to Hazelwoo...@bluegrass.org

24 Hour Helpline 1.800.928.8000

  

CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Thursday, June 6, 2024 12:31 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

 

This message is from an external sender.

[CAUTION] Do not click on links or open attachments unless you recognize the sender and know the content is safe.
If you believe this is a malicious email, please forward it the local IT team and click the Report Message button in Outlook.

 

Mike Leone

unread,
Jun 6, 2024, 2:24:22 PMJun 6
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 1:09 PM Wright, John M <John....@newvista.org> wrote:

Try:  Install-WindowsFeature web-scripting-tools


PS C:\Users\MJL-Priv> Install-WindowsFeature web-scripting-tools
Install-WindowsFeature: The target of the specified cmdlet cannot be a Windows client-based operating system.

This is where I installed PS 7. The source I wanna copy from is Win 2008 R2, so I can't install there. And the target I would want to copy the web server config to, will be a WIn 2022 server, but it has PS v5 on it - I'm not ready to put PS v7 on a production server, not with all the grief I am having just trying to load a module ...

Wright, John M

unread,
Jun 6, 2024, 2:31:18 PMJun 6
to ntsys...@googlegroups.com

Okay, I think this might be something I’ve run into before.  Can you try this?

 

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

 

Then rerun your original command.

 

--

John Wright

IT Support Specialist

1800 Old Bluegrass Avenue, Louisville, KY 40215

502.708.9953

Please submit IT requests to Hazelwoo...@bluegrass.org

24 Hour Helpline 1.800.928.8000

  

CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Thursday, June 6, 2024 2:24 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

 

This message is from an external sender.

On Thu, Jun 6, 2024 at 1:09PM Wright, John M <John....@newvista.org> wrote:

--

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.

Solodow, Damien

unread,
Jun 6, 2024, 2:31:44 PMJun 6
to ntsys...@googlegroups.com

What OS is the machine where you got that error? It looks like a Windows 10/11 machine , and Windows client uses a different command:

Enable-WindowsOptionalFeature -Online -Name IIS-ManagementScriptingTools

 

 

 

Gaylor Electric logo

Gaylor Electric Website

Facebook

Twitter

LinkedIn

Damien Solodow

IS Senior Systems Engineer

Gaylor Electric, Inc.

10405 Crosspoint Blvd

Indianapolis

IN

46256

O: 317.815.3103 

M: 317.506.8521

317.759.0077 emergency IS support

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Thursday, June 6, 2024 2:24 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

 

On Thu, Jun 6, 2024 at 1:09PM Wright, John M <John....@newvista.org> wrote:

--

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.

Mike Leone

unread,
Jun 6, 2024, 2:48:05 PMJun 6
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 2:31 PM Wright, John M <John....@newvista.org> wrote:

Okay, I think this might be something I’ve run into before.  Can you try this?

 

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12


No difference.
 

Mike Leone

unread,
Jun 6, 2024, 2:49:23 PMJun 6
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 2:31 PM Solodow, Damien <dsol...@gaylor.com> wrote:

What OS is the machine where you got that error? It looks like a Windows 10/11 machine , and Windows client uses a different command:


Correct, this is my Win 10 privileged workstation.
 

Enable-WindowsOptionalFeature -Online -Name IIS-ManagementScriptingTools


PS C:\Users\MJL-Priv> Enable-WindowsOptionalFeature -Online -Name IIS-ManagementScriptingTools
Enable-WindowsOptionalFeature: A parameter cannot be found that matches parameter name 'Name'.
PS C:\Users\MJL-Priv>

 

Michael B. Smith

unread,
Jun 6, 2024, 2:52:04 PMJun 6
to ntsys...@googlegroups.com

If you are putting it on a client operating system then you’ve got to install it from control panel. Same as it ever was.

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Thursday, June 6, 2024 2:24 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

 

On Thu, Jun 6, 2024 at 1:09 PM Wright, John M <John....@newvista.org> wrote:

--

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.

Solodow, Damien

unread,
Jun 6, 2024, 2:52:22 PMJun 6
to ntsys...@googlegroups.com

Doh! Try this one:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools

Michael B. Smith

unread,
Jun 6, 2024, 2:54:17 PMJun 6
to ntsys...@googlegroups.com

TIL Enable-WindowsOptionalFeature.

Mike Leone

unread,
Jun 7, 2024, 8:44:43 AMJun 7
to ntsys...@googlegroups.com
On Thu, Jun 6, 2024 at 2:52 PM Solodow, Damien <dsol...@gaylor.com> wrote:

Doh! Try this one:

Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools


Closer!

PS C:\Windows\System32> Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools
Enable-WindowsOptionalFeature: One or several parent features are disabled so current feature can not be enabled.

Not a lot of helpful details, like which parent feature do I need to enable, or how .. .LOL
 
In the meantime, I am doing an upgrade in place of a clone of that VM, from Win 2008 R2 -> Win 2012 R2 -> Win 2022, so I don't need this for this task. 
But at this point, I want to make it work, regardless ... I might need it in future, you never know ...

I can (and will) enable those features interactively, but it would have been nice if the message had said "Hey, I can't install this, until you install that first, as this is dependent on that parent feature".

image.png

Orlebeck, Geoffrey

unread,
Jun 7, 2024, 9:23:58 AMJun 7
to ntsys...@googlegroups.com

Including the “-All” parameter should get you past the parent dependencies issue, but not sure if enabling “the parent and all of its default dependencies” (emphasis mine) would be desirable.

 

https://learn.microsoft.com/en-us/powershell/module/dism/enable-windowsoptionalfeature#-all

 

From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Friday, June 7, 2024 5:44 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Migrating FTP from IIS 6 on Win 2008 R2 to Win 2022

 

On Thu, Jun 6, 2024 at 2:52 PM Solodow, Damien <dsolodow@gaylor.com> wrote: Doh! Try this one: Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementScriptingTools Closer! PS C:\Windows\System32> Enable-WindowsOptionalFeature

 

--
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.

Reply all
Reply to author
Forward
0 new messages