Win Server 2012 – Nice View Script Button
I played around with Win Server 2012 over the beta period but nothing serious. Now that it is in Release Candidate mode I made the decision to ramp up a new set of development servers. There is a little poking around to be had with the new UI but all in all I was able to bring up an instance quickly and promote the server to a Domain Controller. Check out this nice little button I found on...
July 20th, 2012 by Darrin
The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered
The SharePoint 2010 Management Shell shot me this message earlier this week. I was logged on as a local administrator and farm administrator to boot. I was able to manage the farm using the Central Administration site PowerShell simply refused to load the cmdlets. This warning is displayed when the logged in account does not have the correct permissions. When you get this warning as show above the...
May 26th, 2010 by Darrin
Comments Off
Speed up PowerShell Startup
I caught this little gem (Update-Gac.ps1) on the PowerShell Team blog while I was catching up on posts. This script will Ngen the PowerShell assemblies for a quicker start up. Ngen is a .NET utility that will create a native images that are stored in a cache which can be then used by the framework alleviating some of the JIT-ing at startup. I ran this script and noticed a big difference in the start...
July 15th, 2008 by Darrin
GetActiveFeatureDefinitions – A SharePoint PowerShell Function
Here is one more feature-related PowerShell script to quickly display which features are active based on a given SharePoint url. This script takes a SharePoint end point (url) as the first parameter and optional exclude parameters for each of the possible feature scopes. This function will output SPFeatureDefinition objects that will display in the PowerShell host or can be used further in the pipeline...
July 14th, 2008 by Darrin
GetFeatureAndDependencies – A SharePoint PowerShell Function
As stated in my previous post, GetFeatureDefinition – A SharePoint PowerShell Function, I have been working on deploying a solution that contained multiple features which lead me down the road of feature activation dependencies. My current client’s hosting environment has me looking to see just what I can pull off with hidden features and cross-scope dependencies. In searching out any...
July 6th, 2008 by Darrin
GetFeatureDefinition – A SharePoint PowerShell Function
I cant believe I have not posted this simple PowerShell function. I have been doing some packaging of features and solutions lately so many of my feature-related scripts come to the foreground. The GetFeatureDefintion function will return either a single Feature Defintion (SPFeatureDefinition) if you pass in a Feature Id or all feature definitions ( Array of Feature Definitions) on the farm . This...
July 2nd, 2008 by Darrin
Tech Ed 2008 – OFC07-TLC – Building Windows PowerShell Cmdlets for Microsoft SharePoint
For those that attended OFC07-TLC – Thanks! Here are the files and slide deck for OFC07-TLC Building Windows PowerShell Cmdlets for Microsoft SharePoint. The demo builds a simple Get-Web cmdlet and a Web Feature Provider. Remember this is “conference” code and not production code demo purposes only! As always, I am interested in comments and feedback about the demo, slides, or...
June 21st, 2008 by Darrin
Limiting Your SharePoint Objects with PowerShell
In my post “Five Simple But Powerful PowerShell Functions/Filters for SharePoint” I demonstrated five functions and filters that when stung together allowed you to access many of the key SharePoint objects. This post assumes you read Five Simple But Powerful PowerShell Functions/Filters for SharePoint. The five functions and filters are interesting because we can access key SharePoint objects...
March 17th, 2008 by Darrin
Find Me at the Bloomington .Net User Group
Find me in Bloomington, Illinois in January. I will be speaking at the Bloomington .NET User Group on January 8 2008. I will be covering SharePoint and PowerShell ( one of my favorite subjects ). For those of you in the Central Illinois area please stop by. Get the details at: http://bloomingtondotnet.org/
December 17th, 2007 by Darrin
Five Simple But Powerful PowerShell Functions/Filters for SharePoint
To start out, a function in PowerShell is similar to a function in any other development language. (See my last post “Commands in PowerShell” for a little PowerShell basics on command and functions.) It takes zero or more inputs, runs zero or more statements and possibly returns one or more values. Functions in PowerShell are a way to gather up multiple statements into a functional, reusable...
November 28th, 2007 by Darrin





