如何使这个逻辑在 powershell 中工作?
$i = ("SharePointCDPTestProject1_Feature1", "SharePointCDPTestProject1_Feature2", "SharePointCDPTestProject1_Feature3");
$a = Get-SPSite http://localhost/sts*;
Foreach($id in $i)
{
Foreach($p in $a)
{
Enable-SPFeature –identity $id -URL $p
}
}
对不起..我是ps的菜鸟