Browsed by
Tag: PowerShell

How to: Run PowerShell ISE as Administrator under alternate credentials

How to: Run PowerShell ISE as Administrator under alternate credentials

Coming from a security focused AD background I prefer to have the Managed Service Accounts OU locked down with a GPO restricting interactive logon to a server. This helps avoid service accounts becoming compromised and being taken advantage of in attacks. Having an ISE is especially helpful when you are doing SharePoint work on the farm and while I am a big fan of PowerShell, running straight at the command line is often a pain. Rather than installing one of…

Read More Read More

PowerShell Account Creation Script

PowerShell Account Creation Script

When building repeatable SharePoint farms I need to quickly create new service accounts. Since there is no need for a SharePoint Farm to be built using a Domain Admin account, there is really no need for a SharePoint Consultant to ask for or be granted Domain Admin rights. I spent a good portion of my career prior to SharePoint as a Domain Admin/AD Architect, and a good portion of that role is knowing that most people who ask for Domain…

Read More Read More

When was the last time I deployed that SharePoint solution?

When was the last time I deployed that SharePoint solution?

Ever have trouble remembering when you last deployed a specific solution?  Now, none of us would ever allow an environment to be uncontrolled and let people willy-nilly install solutions, but in the real world sometimes things slip through our well controlled documentation and we need a hand. For those of us with more than 5 farm solutions hunting and pecking for the last installed date can be problematic.  One of my colleagues (at this point I am forgetting who, so…

Read More Read More

What is MaximumFileSize limit set to on all of my Web Apps? Now that I know, how do I change it?

What is MaximumFileSize limit set to on all of my Web Apps? Now that I know, how do I change it?

I ran into an issue today where I needed to quickly pull the MaximumFileSize setting for every web application across my farms.  I found lots of blogs that told me how to change the setting, but none that told me how to pull the information from the farm before I change it. The UI method for this is simple, but cumbersome if you have multiple web apps and multiple farms.  Simply go to Central Administration|Application Management|Manage Web Application and select…

Read More Read More

How to use PowerShell to get quota information in a usable way

How to use PowerShell to get quota information in a usable way

There are many good resources out there about how to create, modify, & set quotas using PowerShell, that isn’t an issue. Zach Rosenfield has a good post on Managing Bulk Site Collection Quotas in PowerShell and there are dozens of others out there who can give you all of the information about making changes to quotas that you want. My problem was how do I tell what a site’s quota template assignment is and how close they are to the…

Read More Read More

What’s new in SQL Server Code Name “Denali” CTP3

What’s new in SQL Server Code Name “Denali” CTP3

Be sure to check out the What’s New (SQL Server “Denali”) site for full details, but here are the highlights in this PUBLIC release (no TAP NDA material here!) are: SQL Server Installation Installing Prerequisites During SQL Server Code-Named “Denali” Setup Windows PowerShell 2.0 is a prerequisite, but not installed by the SQL Server Setup wizard .NET Framework 3.5 SP1 is a requirement, but is not installed by the SQL Server Setup wizard, it  requires you to download and install…

Read More Read More

Developer Dashboard activation and parameters… up to the elbow…

Developer Dashboard activation and parameters… up to the elbow…

Activating through PowerShell In doing some research I have had some difficultly finding a single good resource for how to turn on the Developer Dashboard using PowerShell and what the parameters are for doing so.  Here is what several hours or pouring through numerous resources has turned up, and I am sure it is not 100% complete: Code to turn on the Developer Dashboard This will turn on the icon at the top right hand corner of your masterpage for…

Read More Read More

How to: Get your Managed Account passwords when they are changed automatically by SharePoint 2010

How to: Get your Managed Account passwords when they are changed automatically by SharePoint 2010

Scenario: Using Managed Accounts the way that SharePoint 2010 is designed you allow SharePoint 2010 to manage your password changes automatically for you. Your farm gets into an inconsistent state, or you allow SharePoint 2010 to change your farm admin account and you realize that you cannot start the UPS without knowing the farm account password. What do you do? Resolution: Run the following PowerShell command from the SharePoint 2010 Management Shell as a Farm Administrator: function Bindings() { return…

Read More Read More

What are the PowerShell cmdlets that correspond to STSADM commands?

What are the PowerShell cmdlets that correspond to STSADM commands?

Now that SharePoint 2010 is intertwined with PowerShell have you been looking for that cipher that tells you what PowerShell command you can run to do all of the STSADM commands that you know and love from SharePoint 2007 in SharePoint 2010?  I was too!  Here is the list that I have come up with (combined with our good friends at TechNet): PowerShell cmdlets STSADM Commands Enable-SPFeature Activatefeature Enable-SPInfoPathFormTemplate Activateformtemplate New-SPAlternateUrl Addalternatedomain Mount-SPContentDatabase Addcontentdb   New-SPContentDatabase Install-SPDataConnectionFile Adddataconnectionfile New-SPExcelFileLocation Add-ecsfiletrustedlocation…

Read More Read More