C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get Active Features In A Site Collection
WhatsApp
Guest User
8y
3.4
k
0
0
25
Blog
Create a ps1 extension file in a path in your local desktop. Change the highlighted part with your Site Collection.
Get - SPsite http:
//hvsp01:10641 | %
{
$results = @()
Get - SPFeature - Limit All | %
{
$feature = $_;
$featuresDefn = (Get - SPFarm).FeatureDefinitions[$_.ID];
$cc = [System.Globalization.CultureInfo]::CurrentCulture;
$obj = New - Object PSObject;
$obj | Add - Member NoteProperty Title $($featuresDefn.GetTitle($cc));
$obj | Add - Member NoteProperty ID $($feature.ID);
$obj | Add - Member NoteProperty Scope $($feature.Scope);
$obj | Add - Member NoteProperty Hidden $($feature.Hidden);
$obj | Add - Member NoteProperty Description $($featuresDefn.GetDescription($cc));
$results += $obj;
}#
$results | FT - auto;
$results | Out - GridView;
}
Open Management Shell as an administrator.
Run PS script, using the path along with the file shown below.
Here, the required output is given below.
People also reading
Membership not found