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


Me, myself and Powershell


Me, myself and Powershell

Author
Message
ALZDBA
ALZDBA
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16114 Visits: 8971
Comments posted to this topic are about the item Me, myself and Powershell

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Roy Ernest
Roy Ernest
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4886 Visits: 6870
Good Job Johan... :-) Nice examples.

-Roy
skron
skron
SSC Veteran
SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)SSC Veteran (251 reputation)

Group: General Forum Members
Points: 251 Visits: 56
I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D
ALZDBA
ALZDBA
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16114 Visits: 8971
Roy Ernest (12/6/2011)
Good Job Johan... :-) Nice examples.


Thank you, Roy. I hope it gets people started.

skron (12/6/2011)
I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D


Thank you skron for sharing your experience.
That's the kind of info we - sql devoted people - need if we want to get people started and experiencing how Powershell can help out fairly easy.
Please share some use cases and code samples if you can.

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
M&M
M&M
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4191 Visits: 3911
Thank you Johan, really good article.

M&M
Samuel Vella
Samuel Vella
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1083 Visits: 2144
skron (12/6/2011)
I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D


It's quite handy as a developer as well powershell is great for scripting out objects in a much more flexible and repeatable manner than SSMS allows.
ALZDBA
ALZDBA
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16114 Visits: 8971
mohammed moinudheen (12/7/2011)
Thank you Johan, really good article.


Thank you, Mohammed.

Samuel Vella (12/7/2011)
skron (12/6/2011)
I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D


It's quite handy as a developer as well powershell is great for scripting out objects in a much more flexible and repeatable manner than SSMS allows.



Thank you, Samuel.
Please share some use cases and code samples if you can.

DBA/sysadmins really need to get started exploring Powershell!





Number of reads after 24hours: 4,955 reads. I'm quite happy with that w00t

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
Samuel Vella
Samuel Vella
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1083 Visits: 2144
ALZDBA (12/7/2011)

Thank you, Samuel.
Please share some use cases and code samples if you can.

DBA/sysadmins really need to get started exploring Powershell!


Use cases:
Dev environment with 100's of tables, stored procedures, views functions etc... some of which need to be promoted to the production environment.
A combination of excel and powershell means you can maintain a list of items and quickly pull the creation scripts out of the development environment.

The spreadsheet and associated macros are probably worth an article in their own right
ALZDBA
ALZDBA
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16114 Visits: 8971
Samuel Vella (12/7/2011)
ALZDBA (12/7/2011)

Thank you, Samuel.
Please share some use cases and code samples if you can.

DBA/sysadmins really need to get started exploring Powershell!


Use cases:
Dev environment with 100's of tables, stored procedures, views functions etc... some of which need to be promoted to the production environment.


That would be an interesting topic.


A combination of excel and powershell means you can maintain a list of items and quickly pull the creation scripts out of the development environment.

The spreadsheet and associated macros are probably worth an article in their own right



Very true.

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
hemanth.damecharla
hemanth.damecharla
Mr or Mrs. 500
Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)Mr or Mrs. 500 (544 reputation)

Group: General Forum Members
Points: 544 Visits: 324
Automating daily tasks is not only easy with Posh but, fun as well :-)

Chad Miller's MSCS code on poshcode site is a wonderful starting point if you want to get a hang of WMI. I would like to thank Chad for posting this particular piece of code http://poshcode.org/2886.

I tried it as challenge to get all the data in one shot (Cluster, Groups, Resources and resource types), it was an awesome feeling when I was able to do it. After that, you can build a hash with the data; add some methods and vallah, you don't have to look at cluster admin console again ;-)

PowerShell is aptly named.

-Hope is a heuristic search Smooooth ~Hemanth
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