SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Powershell and Administration


Powershell and Administration

Author
Message
pjanssen007
pjanssen007
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 160
Has anyone used PowerShell 1.0 to configure ReportServices in Sql Server 2008?
garry.lovesey
garry.lovesey
SSC Rookie
SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)SSC Rookie (40 reputation)

Group: General Forum Members
Points: 40 Visits: 346
I have just started to use it.....so far I have created scripts to:

1. Show all SQL Agent jobs with status - across all of my SQL servers
2. Show all backup dates - across all of my SQL servers
3. Collect information on my databases - across all of my SQL servers

All 3 reports get put into an excel spreadsheet.....

I would be interested in how you filter out the log messages across your servers....
Orlando Colamatteo
Orlando Colamatteo
SSC-Forever
SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)SSC-Forever (40K reputation)

Group: General Forum Members
Points: 40650 Visits: 14413
If just starting out I highly recommend getting into PowerShell. It really has no peer in the Microsoft stack in terms of a command-line scripting tool. VBScript and JavaScript are not in the same league. A Windows build of Perl, or a combination of Perl plus some of the Linux/Unix shells running in Cygwin might be the closest comparison I could make. I use PowerShell for lots of things. Since I am almost always in an environment where I am responsible for some aspect of multiple instances PowerShell is where I go. Running the same script against multiple instances can be done in a SSMS multi-query window, but that's a manual chore and quite a PITA if doing something non-trivial or trying to compile results for more analysis. PowerShell lets me automate most everything. My most ambitious use of PS to date is a script that runs a set of Policies against ~20 SQL 2008R2 instances, stores the results in a table and emails a report of failed policies. I also use it to read Windows Event logs on all those servers and bring them into a central table so I can report on Windows errors. PowerShell is a strategic play for Microsoft so it is a safe bet to invest in learning. I would encourage you to embrace it, especially now since you're just starting out and already have a programming background. I think it would be a natural fit for you.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search