March 26, 2012 at 7:29 am
Yes, PS is a great tool to interact with Exchange, AD and other sources.
To create Databases automatically with PS, it may be better to run .sql scripts from powershell.
This demo show a visible example. In real life, it is not recommended to create the databases this way, but the for-each, the get-content and the invoke-sqlcmd are really useful commands that I wanted to share with the world because I am pretty sure all will love them.
March 26, 2012 at 6:07 pm
Thanks mohammed!
Connection to SQLPS was the issue:Whistling:.
Regards.
March 27, 2012 at 5:15 pm
Powershell rocks! Great tool for auditing and keeping eye on your server farm.
August 12, 2014 at 8:12 am
I'm learning here...
I ran the example and here is what I found. The article shows echo $li which I believe is supposed to be echo $list.
I kept getting this "the term 'Invoke-SqlCmd'"... error, and read from a another user to type in sqlps. Once I did that the example worked.
So I learned a few new commands in power shell!
Thank you and keep the examples coming please.
select this!!
Viewing 4 posts - 16 through 19 (of 19 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy