Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Why Use PowerShell

826 views

Published on

PowerShell is an object-oriented scripting environment for enterprise scale administration of Active Directory, Exchange and now increasingly SQL Server 2008 R2. A tiny DBA team can scale out to manage hundreds of SQL Server instances and thousands of databases with minimal effort.

Published in: Technology
  • Be the first to comment

Why Use PowerShell

  1. 1. Why use PowerShell?<br />Siraj Jamdar<br />
  2. 2. Why use PowerShell<br />Master Data Services SnapIn<br />Multi-Server Management, SQL 2k5, 2k<br />One workstation, one script  unlimited targets<br />Harness .NET and WMI<br />Application Domain-specific solutions (WinForms)<br />Better OS integration, async execution<br />
  3. 3. Gotchas<br />Firewall blocks ports or drops packets<br /><ul><li>Incorrect trust relationships between AD domains
  4. 4. Group policies prevent script execution</li></li></ul><li>Why NOT to use PowerShell<br />PowerShell is an admin tool<br />Use WHERE clause of<br />T-SQL<br />WMI<br />LDAP<br />.netobjects might flood the network M<br />Mightcrash the DBA’s workstation <br />That’s why sqlps is restrained by design<br />
  5. 5. Some links<br />http://www.databasejournal.com/article.php/3300441/Muthusamy-Anantha-Kumar-aka-The-MAK.htm<br />http://blogs.technet.com/b/heyscriptingguy/archive/2009/05/26/why-should-i-use-windows-powershell-with-sql-server-2008.aspx<br />http://sqlblog.com/blogs/allen_white/archive/2008/01/25/using-powershell-and-sql-server-together.aspx<br />http://www.simple-talk.com/sql/database-administration/why-this-sql-server-dba-is-learning-powershell/<br />

×