PowerShell scripts

Free PowerShell scripts for SQL Server, AD, Exchange and SharePoint

  Includes scripts for:
    • SQL Server
    • Active Directory
    • Exchange
    • SharePoint
  • Can be used directly in PowerShell or using PowerShell Plus
   


20+ Handy PowerShell SQL Server Scripts

Backup-SSAS: Backup Analysis Services databases
CheckDB-MSSQL-UsingADO: Run a DBCC CheckDB with an estimate only on a database
Connect-MSSQL-IPSQLAuth: Connect to SQL Server with IP address and SQL Authentication

30+ Handy PowerShell Active Directory Scripts

Get-IADUser: Retrieve all users in a domain or container.
New-IADUser: Create a new user object in Active Directory.
Set-IADUser: Modify attributes of a user object in Active Directory.

20+ Handy PowerShell Exchange Scripts

Disable-IEXUser: Disable Active Directory user, move it to specified location and hide it from the address lists.
Get-IEXAvailableSpace: Retrieve available space in the database(s) on a mailbox server.
Get-IEXClusterNode: Retrieve a node in clustered mailbox server (CMS).

15+ Handy PowerShell SharePoint Scripts

Add-SPSite: Adds a new SharePoint site
Import-SPSite: Imports a site from a backup file
Export-SPSite: Exports a site to a backup file