|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, February 12, 2013 12:54 PM
Points: 41,
Visits: 120
|
|
Steve Jones - SSC Editor (5/10/2011) Added spaces into the code. Should look fine now.
Mucho Mejor! Gracias Senior Jones.
@SQLvariant I have a PowerShell script for you.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 10:57 AM
Points: 323,
Visits: 1,195
|
|
| Good stuff! Wish I had found this article a year ago. I struggled getting started before. I hope this helps people just getting their feet wet.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 8:31 AM
Points: 38,
Visits: 164
|
|
| Simply Great Work and i started learning Power Shell Atlast with your help. Looking forward for more classes.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 2:51 PM
Points: 306,
Visits: 418
|
|
Great article! I've been working at learning PowerShell for a little while now and look forward to future articles.
I can manually stop the agent on my test server myself and when I run the script it will tell me that it is stopped but the script won't start it. I get this error:
Start-Service : Cannot find any service with service name 'SQLSERVERAGENT'. At line:12 char:14 + Start-Service <<<< + CategoryInfo : ObjectNotFound: (SQLSERVERAGENT:String) [Start-Service], ServiceCommandException + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StartServiceCommand
What am I missing?
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, June 01, 2012 2:55 PM
Points: 16,
Visits: 71
|
|
Great article Aaron!
Now that I have it installed and functional. (I've been procrastinating for a long time) I would really like to see more on what people are using PowerShell for on a daily basis. How can PowerShell make my life easier? I am not a DBA. I and another guy, manage about 100 MickySoft servers, six of them are SQL, for which we have a couple DBA's to do most of the data manipulation and application programming for. I have a SharePoint farm implemented, but the DBA's don't do much of anything there. I'm looking forward to more articles on PowerShell relative to SQL.
Thanks.
-Steve
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, February 12, 2013 12:54 PM
Points: 41,
Visits: 120
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 09, 2012 5:27 PM
Points: 4,
Visits: 23
|
|
Thanks for a nice post. Can't wait for subsequent posts. BTW i got this error message:
PS C:\Windows\system32> import-module SQLProfiler Attention. This module only runs on x86 Powershell. Execution interrupted
Any ideas?
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Tuesday, February 12, 2013 12:54 PM
Points: 41,
Visits: 120
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 3:34 PM
Points: 2,170,
Visits: 3,582
|
|
Aaron,
I should have read this article the first time it was published. This is one cool thing you have written on Powershell and has got me interested in this subject. I need to make sure not to delay learning about Powershell.
Thank you.
Mohammed Moinudheen
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Yesterday @ 6:38 PM
Points: 97,
Visits: 236
|
|
I really appreciate this, as PowerShell is something I've wanted to get into for a while. I've used it, but only minimally. This series will help me tremendously, I'm sure.
Rod
|
|
|
|