 |
|
| IMPORTANT: PowerShellCommunity.org is moving! - Wednesday, August 15, 2012PowerShellCommunity.org is moving! This community software, and the hardware that it sits on, are no longer serving the purposes of this community. As a result, we have decided to move this community to a new home at PowerShell.org. PowerShell.org is already up and running with the new community software and in its new location, so please post any new questions that you have on the forums over there instead of posting them on this site. We've already started getting some great questions from members of the community over there so please, come on over and join us!
While we are going through this transition, this site will remain up for the short term. New posts may no longer be created on these forums, however replies to existing posts are allowed so that users who posted questions don't have to re-post the same question on the new site.
[UPDATE 28/02/2013] New user registration has been disabled and forums have now been switched to read-only, including for existing posts since all threads that were started should now be completed. If you have a question about content on this site or about PowerShell in general, head over to PowerShell.org and ask it there where there are people actively using the site and answering questions.
If you have any questions, please let us know on the PowerShell.org site.
Thank you,
Kirk "Poshoholic" Munro |
|
|
|
|
Powershell Scripting Book
Last Post 03 Sep 2008 06:57 PM by Niki. 21 Replies.
|
Sort:
|
|
Prev |
You are not authorized to post a reply. |
|
Ayth
 Basic Member Posts:240

 |
| 24 Oct 2007 09:35 AM |
|
Hello All,
I know I am going to get different opinions on this, but wanted some advice. My company gives us a certain amount for training materials/books. I'm a fairly competent VB Scripter and already have Windows Scripting with WMI by Ed Wilson, and Advanced VBScript for Microsoft Windows Administrators by our own Don Jones and Jeffery Hicks. I am in the market to pick up a book on Powershell scripting and wanted to know which to use.
I know that the 2nd edition of Powershell: TFM is due out soon, and I've heard very good things about Powershell in Action. What are some of the other good ones out there? Thanks.
Cheers,
Ayth |
|
| My Blog about Powershell http://poweroftheshell.blogspot.com/
Follow me on twitter @darrinhenshaw |
|
|
Marco Shaw
 Veteran Member Posts:1684

 |
| 24 Oct 2007 10:29 AM |
|
Anything in particular that interest you more than another? Basic scripting? Using .NET? ETS? PowerShell in Action and PowerShell: TFM (1st) are very good overall. There's also another book by Ed on PowerShell if you like his style (and a 2nd due in February or so). |
|
|
|
|
Ayth
 Basic Member Posts:240

 |
| 24 Oct 2007 11:01 AM |
|
Hi Marco, Basically I'm interested in what I would call the meat and potatoes type stuff, good old fashioned administration of Windows. That's where my job lies. I am interested in .NET and creating cmd-lets etc, but life always seems to disagree with me. I took a look and I might be limited to Powershell in Action since I'm not seeing much else listed on Chapters.ca website, however, I haven't had a moment to check Amazon.ca yet. Thanks. |
|
| My Blog about Powershell http://poweroftheshell.blogspot.com/
Follow me on twitter @darrinhenshaw |
|
|
Marco Shaw
 Veteran Member Posts:1684

 |
| 24 Oct 2007 04:54 PM |
|
Don't overlook amazon.com... With the exchange and all, it won't be all that bad. Lee Holmes' 'PowerShell Cookbook' is due out in the next few days apparently. A recipe type book isn't the best *learning* tool, but is still good to have around at times. |
|
|
|
|
Jason Zhang
 New Member Posts:3

 |
| 24 Oct 2007 05:34 PM |
|
If you are interested in developing Cmdlet and Providers, there is a book called "Professional Windows PowerShell Programming: Snapins, Cmdlets, Hosts and Providers" by A. Kumaravel coming out on Jan 29, 2008. Hope that is what you want. |
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 25 Oct 2007 05:45 AM |
|
I always recommend my own book (PowerShell: TFM), of course  - but I also recommend Bruce's "PowerShell in Action" because it includes a lot of insights I don't think you gt elsewhere. FWIW, for the upcoming 2nd edition of our TFM book, we looked around to make sure we were covering EVERYTHING (for an admin - we don't really hit dev topics as it wasn't the intention)- the TOC is posted on SAPIENPress.com if you want to read through it. We also had a peer review process whereby every chapter was read by at least six PowerShell users, who made a lot of suggestions for additional content, reorganization, and so forth. We do have a chapter on basic cmdlet creation if you want to dabble, and several chapters that cover general Windows administration tasks. The 2nd edition will also be available electronically if you prefer that. |
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
ZenNerd
 New Member Posts:1

 |
| 04 Nov 2007 08:07 PM |
|
I've read Don's book and can recommend it. If you are an admin looking to get some scripting under your belt, start there.
Derek Kruger, MCSE
IT Supervisor
City of Safford |
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 07 Nov 2007 12:34 PM |
|
I should point out that the second edition of the book is now available electronically at www.sapienpress.com; the print edition will be out Dec 1st at which point the first edition will go out of print. A third edition (corresponding to PowerShell v2) will go live in "preview" next Monday, if you're playing with v2.0. |
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 06 Dec 2007 11:05 PM |
|
Hey, I bought two books so far: Windows Powershell: TFM and Professional Windows Powershell. TFM contains a lot of good stuff in terms of scripting bits. But as a new PS scripter myself (also from a vbscript background, so there's a lot of my mindset that has to be completely rearranged), I found the book to be very confusingly arranged. Don't get me wrong, the info is there. I just had to think of TFM as a reference book more than a tutorial. Cause as a tutorial it fails I think. As a reference book it's fine. Also, it uses a LOT of pages in the book listing what is basically the help you can get from powershell itself. And that kinda seems like a waste to me. I feel like I got a bit ripped off on that part. Professional Windows PowerShell is easier on the brain, the typesetting is WAY better, and to me it seems a bit more accessible when you're a new scripter. However, I think there's a lot of stuff that doesn't get covered well enough in both. Take arrays for example. Sure, they're mentioned, and explained to a certain degree. But none of them get into multidimensional arrays and hashtables. Which is an extremely useful concept to grasp (I still haven't completely). Also I think the explanation of how to build modular scripts with functions etc. could've been better in both. Sure, they show you how to create functions, but I'm kinda missing some of the "why's and why not's". E.g. "Why do you need [param], and when. When don't you" etc. How do you properly pass arguments to a script. Perhaps it's just not the scope of those books, dunno. But I'm not too satisfied with either. I just ordered PowerShell In Action, and PowerShell Cookbook, as I've read great reviews on those. Being a VBscripter, I would also recommend this: http://www.microsoft.com/technet/sc...pschm.mspx It contains a whole section of VBscript commands that get mapped to PS commands. Extremely useful to me, as I could just look up the VBscript command and get the PS equivalent. Will get back in this thread on Powershell In Action and Powershell Cookbook, and what I think of those. |
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 10 Dec 2007 06:46 AM |
|
Most of that is feedback we've heard from others, and that we addressed in the 2nd edition. As you might imagine, the 1st edition was taking a guess at how people might learn PowerShell; the 2nd has the benefit of some experience.
So the material was reorganized into more of a tutorial (as you can probably see from the ToC on sapienpress.com, or here in the Library). The cmdlet reference was pulled, although the page count actually went up and the book is physically larger.
Hashtables pick up some more coverage although not so much multidimensional arrays - we don't see them used much in administration. Functions were also expanded.
Just for what it's worth - I'm certainly not expecting you to rush out and buy the 2nd edition, but wanted to let you know we're being as responsive as we can with a print book! If you do become interested in the 2nd edition, though, contact me and I'll see what I can wrangle in terms of a bit of a discount for you, perhaps.
|
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 11 Dec 2007 12:49 AM |
|
Posted By DonJ on 12/10/2007 7:46 AM
Hashtables pick up some more coverage although not so much multidimensional arrays - we don't see them used much in administration. Functions were also expanded.
Just for what it's worth - I'm certainly not expecting you to rush out and buy the 2nd edition, but wanted to let you know we're being as responsive as we can with a print book! If you do become interested in the 2nd edition, though, contact me and I'll see what I can wrangle in terms of a bit of a discount for you, perhaps.
I use MD arrays a lot. Or rather, hashtables containing arrays now, since I got convinced of their goodness  But it'd be nice to have the concept explained thoroughly, from creation to accessing, to deleting, in a way that make people really understand what's going on when you use such a construct. Also custom objects. Why's and why not's, how's and when's. It seems odd when PS is so object oriented, that noone really pay any attention to you creating objects yourself, to store data in. Thanks for your offer btw, it's great to see such good response. But I don't think my boss will let me buy one more copy of the same book  Great to see some response from one of the gurus  |
|
|
|
|
Brandon Shell [MVP]
 Basic Member Posts:396

 |
| 11 Dec 2007 05:26 AM |
|
But it'd be nice to have the concept explained thoroughly, from creation to accessing, to deleting, in a way that make people really understand what's going on when you use such a construct. This could be added to the wiki Also custom objects. Why's and why not's, how's and when's. It seems odd when PS is so object oriented, that noone really pay any attention to you creating objects yourself, to store data in. Why: Because Powershell is object based and it always easier to deal with objects Why Nots: It would be absurd to create a custom object where a object already exsist. Noone? Have you seen my blog |
|
Brandon Shell ---------------- Microsoft Powershell MVP https://mvp.support.microsoft.com/profile/Brandon Blog: http://www.bsonposh.com |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 11 Dec 2007 10:13 AM |
|
Posted By bsonposh on 12/11/2007 6:26 AM This could be added to the wiki Why: Because Powershell is object based and it always easier to deal with objects Why Nots: It would be absurd to create a custom object where a object already exsist. Noone? Have you seen my blog  " align="absmiddle" border="0"> I would appreciate the wiki part  I of course agree that it would be stupid to make objects where objects exist. But sometime it's useful to create your own construct or object. I know this is scripting, but as I see it, PS takes a step closer to actual programming. And as such, I think it would be healthy for scripters to learn "the way of the object" (OSH, SENSEI !  ). Since that seems to be the world we're gonna live in (which I personally think is a good thing). I read your blog regularly, but haven't seen the part with custom objects. URL ?
|
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 11 Dec 2007 01:54 PM |
|
Also custom objects. Why's and why not's, how's and when's. It seems odd when PS is so object oriented, that noone really pay any attention to you creating objects yourself, to store data in.
Couldn't agree more - did a whole chapter on 'em in the new edition, in fact, and if you browse the "Peer Review" forum, here, you'll find that custom objects over text, as output, is almost the #1 suggestion offered to folks. Our five-day PowerShell course also talks about them in some detail, including the all-important "why" and "why not." I even blogged on it a bit in my blog series (blog.sapien.com) on cmdlet development, since outputting custom objects there is just as important (if not more so) than in script.
|
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
Brandon Shell [MVP]
 Basic Member Posts:396

 |
| 11 Dec 2007 03:40 PM |
|
I have a category for them (5 articles I think) http://bsonposh.com/modules/wordpress/?cat=12 |
|
Brandon Shell ---------------- Microsoft Powershell MVP https://mvp.support.microsoft.com/profile/Brandon Blog: http://www.bsonposh.com |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 17 Dec 2007 01:21 AM |
|
DonJ and BS, thanks for your replies I got Windows PowerShell Cookbook last thursday, and have had the chance to read some chapters. Really really good book. Very commendable. It's got very nice explanations. A whole chapter dedicated to one of the most important concepts of PS: The pipeline. And it's absolutely, positively LOADED with examples ! So not only does it explain things in a good way, it can also be used as a reference book. Each chapter has the examples in the form of "Problem, Solution, Discussion". So if you have a problem, and just want the solution - you read a very brief set of text. If you also want to know why it works like it does, you read the Discussion part. I think that's a brilliant way to arrange it, cause it leaves room for both the "I just want a solution" type of people, and the "I want to know why PS behaves like it does" (me) kinda people. If you're using Systems Center Operations Manager 2007 or Exchange 2007, there's a whole chapter for each, on how to administer those with PS. I highly recommend the book. I'll get back to you on Powershell In Action when I get it. Actually I should've gotten it last week with the Cookbook, but will probably receive it this week. |
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 17 Dec 2007 10:12 AM |
|
For interested parties, the "Cookbook" has a sample chapter in the Library, here, so you can see what it looks like. |
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 19 Dec 2007 01:36 AM |
|
By the way Don, any chance you'll be setting up a good rebate program for the 2nd Edition ebook, for users that bought the paperversion of the 1st edition ? So we can get the book we wanted, instead of the one we bought ? ;D |
|
|
|
|
Don Jones PowerShell MVP
 Basic Member Posts:134

 |
| 19 Dec 2007 07:41 AM |
|
Unfortunately not. There's almost no feasible way to do that with something like a print book - I'm not aware of any other publisher who's been able to do so. Also, keep in mind that when a book is sold through someone like Amazon or a bookstore, the publisher doesn't get very much of the sale price - you'd need to apply to Amazon for a rebate. Good luck with that  . FWIW, everything in the 1st edition "still goes," the 2nd just has *more.* We did think really hard about this - but we just couldn't think of a way to make it financially feasible for us or for readers. Mark Minasi (who knows all about editions of books) posts a pretty good synopsis at http://minasi.com/gethelp/#wantupgrade. |
|
- Don Jones www.ConcentratedTech.com Subscribe (RSS) or visit for weekly PowerShell tips and lessons |
|
|
Jacob Saaby Nielsen
 New Member Posts:20

 |
| 20 Dec 2007 10:59 PM |
|
Allrighty then. Tough luck I guess  |
|
|
|
|
pk
 New Member Posts:1

 |
| 24 May 2008 06:20 PM |
|
This is an interesting and knowledgeable site. This is an independent international community uniting PowerShell users. And also vendors can promote this new and exciting platform. Professional Windows PowerShell is easier on the brain, and it can keep long time. The typesetting is WAY better, and to me it seems a bit more accessible when you're a new scripter. If you have a problem, and just want the solution you read a very brief set of text. you read the Discussion part. I think that's a best way to arrange it,
...........................................
pasan
The Fastest, Easiest way to learn DotNetNuke! Free Trial Lessons!! http://www.applydnn.com" target="_blank" rel="nofollow">http://www.applydnn.comhttp://www.applydnn.com" target="_blank" rel="nofollow">http://www.applydnn.com">http://www.applydnn.com" target="_blank" rel="nofollow">http://www.applydnn.com
|
|
|
|
|
Niki
 New Member Posts:1

 |
| 03 Sep 2008 06:57 PM |
|
First focus on PowerShell basics, how it relates to existing Windows scripting practices, and how the reader's existing knowledge can be translated into PowerShell knowledge. Next, after gaining insight into PowerShell, the reader will be presented with transferable PowerShell scripting examples. The goal of presenting these examples will be to outline methods of using PowerShell to manage Windows Server, Active Directory, and Exchange Server 2007 that have not been explained or touched upon by other sources.
---------------------
Nikimathew
The Fastest, Easiest way to learn DotNetNuke! Free Trial Lessons!!
http://www.applydnn.com" target="_blank" rel="nofollow">http://www.applydnn.com "> http://www.applydnn.com" target="_blank" rel="nofollow">http://www.applydnn.com |
|
|
|
|
| You are not authorized to post a reply. |
|
Active Forums 4.3
|
|
 |