Posts

Showing posts with the label powershell

The quickest and simplest ways to check the patch level of SharePoint

There are two ways to get the most accurate patch level and quickly: Central Admin - System Settings - Servers in farm PowerShell SharePoint Management Shell: (Get-SPFarm).BuildVersion

Post migration "User must change password at next logon" bit set by default

If you've ever done an Active Directory migration, you've experienced a lot of supporting users with new passwords and logging in to the new domain.  It goes with the territory.  But what if your domain's password complexity is comparable?  Do they have to re-set their password?  No! ADMT and other directory migration tools will "flip the bit" of "User must change password at next logon" but with PowerShell it's trivial to clear that setting.  Here's a sample of how I accomplished this in my most recent migration: get-aduser -filter * -searchbase "ou=users,ou=department,dc=domain,dc=local" | Set-ADUser -ChangePasswordAtLogon $false Users no longer need as much help logging into the new domain because they don't have to create a new password.

cmdlet change in SharePoint 2010 New-SPIISWebServiceApplicationPool

I hope I can save you the frustration I had in debugging my script: New-SPIISWebServiceApplicationPool -Name ManagedMetadataServiceAppPool -Account domain\user The term 'Get-SPIISWebServiceApplicationPool' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. This command worked fine in pre-release versions of SharePoint 2010, but for the RTM they the cmdlet is missing! My scripts and documentation needed to be updated for the missing command as they changed the name in the RTM version of SP 2010. SPServiceApplicationPool is the new cmdlet name. New-SPServiceApplicationPool -Name ManagedMetadataServiceAppPool -Account domain\user works great. I am off to discover what other cmdlets have been renamed.