Hi @Bob Kemmerer ,
You can put all the siteIDs into a .csv file, and then automatically call them in sequence through foreach.
Here are steps:
1.Enter all siteID in a .csv file. Stored in C:\ path.
2.Form siteID as table(Title is "siteID")
Execute a foreach for siteID, like this:
#Config Variables
$siteID = Import-CSV -path "C:\siteID.csv" -Header("siteID") #Site Relative Path of the Library
foreach ($ID in $siteID )
{
$site = Get-SPSite $ID.siteID
Write-Host "Checking Site:" $site.Url
Remove the feature code......
}
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.