Here's the problem, we're migrating from one web server to another. We have a site that has numerous folders that are configured to redirect to a URL. I'm going to guess that the radio button labeled "A redirection to a URL" and the form field labeled "Redirect To" are properties that can be searched using a script.
I need to search for and find each one of these folders that does a redirect.
If a Powershell script can help me find these redirects, would someone help me out with the script?
Tmassa99 was kind enough to help me out with a vb script that starts at the root level, and it worked great starting at the root level.
Now I'm asking for a script that will loop through each folder, and find the redirects for just one site, rather than starting at the root level.
The structure looks like this www.domain.org\folder1\folder1a1\folder1a2
and then www.domain.org\folder2\folder2a\folder2a1
. The challenge is some of these folders have a redirect that may be 2 or 3 folders deep. And these are what we need to find.
Something like get-childitem c:data -recurse | get-acl | export-csv c:\filename.csv
But instead of getting the acl, get the value for the radio button or the value in the Redirect To field.