Learn about PowerShell and PowerGUI at TechEd 2008

Are you interested in PowerShell?  Would you like to see a demo of some cool free tools that can help you use PowerShell more easily today?  Visit the PowerShell demo station in booth 1101 at TechEd 2008 and learn how PowerShell and PowerGUI can help you manage your IT environment more easily!

Kirk out.

Share this post:

EnergizeIT Certification Bootcamp slide decks now available

Whether you attended the EnergizeIT Certification Bootcamp 2008 National User Group Tour or not, you might want to check out the slide decks that were presented.  Kai Axford and I presented a ton of content over a 2½ to 3 hour period.  There were three sessions presented, as follows:

Session 1: Security in a Virtual World

Session 2: Windows Server 2008 & Virtualization

Session 3: Making Security a Career

I should note that the session order changed slightly and the content was tweaked after the first few stops on the tour.  Also as Kai and I mentioned during the tour there are additional slides included in these slide decks that were hidden during the tour, so now you can get access to those slides in addition to those we presented as well.

There is a lot of great material in these slide decks, so you should take a look.  I’ve linked the session names to the slide decks, but you can also find them on the official bootcamp website in the sidebar on the right-hand side near the bottom.

Do you use virtualization in your environment?  Are you sure you’re thinking about everything you need to with respect to virtualization security?  Check out the slide deck for session 1.  There may be some things you haven’t considered that you should definitely look at.  Or maybe you just want to learn more about Hyper-V and System Center Virtual Machine Manager — that’s in there too.

Windows Server 2008 brings a lot of new features and usage scenarios to the table.  Server Manager, Server Core and my personal favorite, PowerShell were demoed, and many other features were discussed.  Check out the session 2 slide deck for more information (including the PowerShell resources I talked about during the demos).

Are you doing the job today that you want to be doing 10 years from now?  Do you want to be telling your manager in 2018 that you just finished the automated rollout of Windows Server 2018 using PowerShell? That might sound pretty cool today (it sounds pretty cool to me today), but you might want to be the manager being told that the rollout is complete instead of the one doing the rollout by then, or maybe you have something completely different in mind for your future career.  The session 3 slide deck has some great content about career management.  The emphasis is on making a security career, but the content is very generic and can be applied to making many changes in your career.  Personally, I love the slides that talk about the three rules for recession proofing and have been following those for a while now.  I used these rules last year to redirected my career towards PowerShell and that lead to me joining the PowerGUI team where I continue to work happily today.  The rules are great for recession proofing, general career management and redirection as well.  If you are considering a career change in the future, internal to your current company or external, you should seriously check the session 3 slide deck out.

If you have problems accessing any of these slide decks, let me know and I’ll try to help work it out for you.

Kirk out.

Share this post:

Provisioning users in Active Directory with PowerShell and the QAD cmdlets

As part of the EnergizeIT tour that I was on for the past three weeks, I did a quick introduction to PowerShell and then showed how the ability to automate tasks using PowerShell can make the job of an IT administrator much, much easier.  The scenario for the automation example I used was this: your HR department contacts you on Friday afternoon and tells you there are a bunch of new users coming in next week and you need to make the accounts right away.  The actual number is arbitrary because PowerShell scripts are the same for 1 user as they are for 1000000 users (exaggerated as that might be), but for my example I used a dozen users.

The point with this example was to show you how you can accomplish a task like this quickly regardless of the number of users being created and go home on time for date night, your son’s baseball game, etc.  This demonstration was very well received, and at the end of the demonstration I promised that I would post the script I wrote during the demo here in my blog.  The script that I post here may look slightly different from the script you saw me run at your tour event because I wanted to make sure shared the answer to a question someone asked me during the tour: How do I set the password for the new users when I create them?

For those of you who didn’t see the live demonstration, note that the csv file I used (C:\Users\Poshoholic\Documents\NewHires.csv) contained the following text:

FirstName,LastName,Title
Dmitry,Prosser,Software Developer 4
Oisin,Hill,Quality Analyst 1
Jeffrey,Shell,Senior Support Representative
Don,Munro,Software Developer 1
Charlie,Shaw,Project Manager
Marco,van Oursow,HR Assistant
Brandon,Russel,Product Manager
Keith,Hicks,Software Developer 3
Marc,Grehan,Product Marketing Manager
Karl,Jones,Quality Analyst 3
Kirk,Lee,Quality Analyst 1
Thomas,Sotnikov,IT Analyst 2

(FYI: if you think those names look familiar, I took the first names and last names of 12 PowerShell MVPs and mixed them up)

During the demonstration, the script below was built up iteratively within the PowerShell console so that you could see the thought process involved in creating a script that way.  In this blog post however, I’m simply going to post the finished script.  If you have questions about the demonstration or want to refresh your memory on how you could build a script like this iteratively, let me know.  The finished script to create the users from the csv file simply looks like this:

Import-Csv C:\Users\Poshoholic\Documents\NewHires.csv `
    |
Add-Member -Name Name -MemberType ScriptProperty -Value {$this.FirstName + + $this.LastName} -PassThru `
    |
Add-Member -Name SamAccountName -MemberType ScriptProperty -Value {($this.FirstName[0] + $this.LastName.Replace( ,)).SubString(0,20)} -PassThru `
    |
New-QADUser -City Ottawa -UserPassword P4$$w0rd -ParentContainer poshoholicstudios.com/users

Please note the following if you want to use this as a basis for your own script:

  1. You can copy this script from my blog and paste it directly into the PowerGUI Script Editor where you can customize it to meet your needs (be careful of the word wrap – there should be four lines of script once you paste it in PowerGUI).  Alternatively if you want the script already in a ps1 file, you can download it here.
  2. This example requires the Quest AD cmdlets to create the new users.  Once you have those installed, don’t forget to load them in PowerShell using Add-PSSnapin or in PowerGUI using Libraries in the File menu.
  3. This shows the finished script I built during the demonstration, with the addition of the assignment of the default user password value as P4$$w0rd.  Whatever you use for the default password value, it must meet your password requirements in your lab.
  4. If you want to run this without making changes, don’t forget to append -WhatIf at the end of the last line in the script.

Don’t be afraid to ask me questions about any of this, whether you need help customizing this script to make it work in your environment or just want an explanation of how the script works.  I’m always happy to help!

Kirk out.

Share this:

Use PowerGUI to manage SQL Server 2008

SQL Server 2008 marks the first release for SQL Server that includes PowerShell support.  This is just the beginning of a trend for all Microsoft Server products now that PowerShell is part of their Common Engineering Criteria beginning in fiscal year 2009.  I just spent the past week or so experimenting with PowerShell and SQL Server, first using SMO directly and then using the snapins that are part of SQL Server 2008.

I’m still testing the waters in many places but so far I’m pretty happy with the PowerShell support in SQL Server 2008.  Back when they first announced support, it didn’t sound all that impressive but now that I’ve dug in and started using it myself I’ve found that it is much more than I thought it would be.  SQL Server 2008 is still in CTP, so there are still bugs and still changes coming, but overall this looks like a nice addition to PowerShell, and one that should get even better through service packs as time goes on.

While working with the SQL provider and cmdlets I put together my first-attempt at a SQL Server PowerPack for PowerGUI.  This PowerPack is pretty lightweight at this point, allowing you to browse through the SQL Server instances you have, add connections to other servers, open tables and views and view their contents, as well as a few other miscellaneous things.  It requires the SQL Server 2008 client tools, however it seems to work fine with SQL Server 2005 (and presumably SQL Server 2000 since it uses SMO and WMI under the covers) once you have the SQL Server 2008 client tools installed.  You can download the PowerPack here.

Over the next little while I will be continuing to enhance this PowerPack, so if you work with SQL Server and PowerShell and have any feedback or enhancement requests for this PowerPack, please let me know through comments, email (see my about page), or the PowerGUI forums.

Thanks,

Kirk out.

Share this post :

 

Public beta of Quest AD cmdlets v1.1 now available

Quest Software (my employer, for the record) has just released the first public beta build of version 1.1 of the ActiveRoles Management Shell for Active Directory (aka Quest AD cmdlets).  If you haven’t looked at these cmdlets yet, they fulfill the scripting needs of AD administrators using PowerShell today by providing them with cmdlets to facilitate management of Active Directory.

You’ll quickly notice once you download the beta that the Quest AD cmdlet team has been hard at work too, with 40 cmdlets available in this beta, now including support for security and permission management!  More fun commands to play with!

If you want to download the latest beta, you can find it here.  And feedback is welcome and appreciated on the PowerGUI community site in the AD forums.

Kirk out.

Share this post :

How to create a PowerPack

A little while back Marco Shaw invited me to present at one of the PowerShell Virtual User Group meetings he runs regularly.  I was quite looking forward to presenting, and I was going to demonstrate how you can extend the PowerGUI administration console as well as how you can share these extensions by exporting them in PowerPacks and making them available to the PowerShell community.  Creating PowerPacks is a large part of what I do at work every day, and I get a lot of questions about how to do it, so I was looking forward to being able to answer those questions in my demonstration.

Unfortunately I had some challenges in front of me at the time and I ended up cancelling my presentation (sorry Marco!).  Still, I really wanted to show how PowerGUI can be extended and how PowerPacks are made, so I recently recorded a screencast that contains pretty much everything I was hoping to show off in my presentation.  Are you interested in learning how you can extend PowerGUI and how you can create your own PowerPacks?  You can check out the screencast/tutorial I made here.

Are there other screencasts/tutorials you would like to see for PowerShell and/or PowerGUI?  Let me know.  If comments don’t work for you, you can find my contact information in my about page.

And lastly, are there things you would like to see in the PowerPacks that come with PowerGUI?  Are there PowerPacks that you would like to see that aren’t published yet?  Let me know that as well!

Kirk out.

Share this post :

Quality, not quantity, for the most part

When I started this blog last year I set a personal goal to post something to this blog at least once a week.  I wasn’t that busy at the time and it figured like a reasonable thing to do.  Well it’s now been about 6 weeks since I last published anything on this blog, but not for lack of wanting.  Life simply became extraordinarily busy for all of February and the first part of March and there were simply too many higher priorities taking every minute of free time that I could muster for me to justify spending time writing something for my blog.

It’s not that writing a blog post is that complicated.  It’s just that I didn’t want to post just anything.  I tend to prefer posts that are a little less frequent but that hopefully offer a little more value to the reader than just reposting what’s already out there simply because I don’t have time to do anything else.  Quality, not quantity.  That reflects how I look at many things in life.  Perfectionism at its best.  It’s a gift…and a curse. 🙂

Well I think my preference for quality over quantity got the better of me and I’m sure I’ll be crazy busy like I was in February again in the future, so its time to rethink my approach to blogging.  I have lots of ideas on how to approach this, but I’ll need to experiment a little to see what works best.  Essentially I’m simply going to try and find a better balance between the meatier posts that I like to do to share the results my PowerShell research with you and lighter, shorter posts about what’s going on in the PowerShell space and about the cool things I’m working on in PowerGUI to maintain a better blog continuity going forward.  Hopefully you won’t see a break in posts like this happen again in the future.

If you stuck around, waiting for an update from me, thanks.  I’m going to do my best to make you happy that you did.

Kirk out.

Technorati Tags: , , ,

Share it:

.NET Rocks! episode #311 and RunAs Radio episode #42 are now available

Just to follow-up on Monday’s post, the .NET Rocks! and RunAs recordings are now available.

.NET Rocks! episode #311 can be found here.

RunAs Radio episode #42 can be found here.

And in case you are just reading this now and didn’t see my other post, dnrTV episode #99 was posted on Sunday and can be found here.

If you have some time and want to learn more about PowerShell and PowerGUI, I encourage you to give these shows a listen.

Thanks again to Carl and Richard for inviting me to be on these shows and for setting up Kirk week on Pwop! 🙂  This has been a real treat.

As with anything I do, feedback is welcome and appreciated, positive or negative.

Kirk out.

P.S. If you like screencast or podcast recordings like this and would like to see more, let me know.  And don’t forget the PowerScripting Podcast, a bi-weekly podcast about all things PowerShell.

Technorati Tags: , , , , , ,

Learn about PowerGUI on .NET Rocks!, dnrTV and RunAs Radio

During the past two weeks I’ve had the pleasure of sitting down and chatting with Carl Franklin, Richard Campbell and Greg Hughes of .NET Rocks!, RunAs Radio and dnrTV fame about PowerShell, PowerGUI and the Quest AD Cmdlets.  For those of you who don’t know, .NET Rocks! is an internet audio talk show about .NET and dnrTV is the equivalent in an internet screencast format.  Both of these are targeted at the .NET developer.  RunAs Radio is an internet audio talk show for IT professionals who work with Microsoft products.

I didn’t know what to expect from any of these interviews, but fortunately Carl, Richard and Greg are real pros at this and it was a real treat to chat with them.  I believe the end result is much better than what you get from the typical webcast or screencast because they ask the right questions and great conversation comes out as a result.

I was planning on blogging about this before any of these were posted, but these guys are really on top of things and to my surprise this morning I found out that Carl already posted the recording from dnrTV, so you can watch the episode #99 now.  It is simply called “Kirk Munro on PowerGUI”, and can be found here.  The .NET Rocks! and RunAs Radio sessions are not posted yet, but they should be later this week.  I’ll post an update once they are available.

Whether you’re interested in PowerGUI, PowerShell, .NET or working with Microsoft products in general, I encourage you to watch dnrTV and listen to RunAs Radio and .NET Rocks!  What a great way to spend your morning and evening commute in the subway, on the bus, or in your car (although please don’t watch dnrTV while driving your car…that’s just not a good idea; no matter how much you want to learn what PowerGUI and PowerShell can do for you, they won’t fix your car).

Thanks again to Carl and Richard for getting in touch with me and setting this up!  It’s been a great experience!

Lastly, if you’re interested in listening to a bi-weekly podcast that is specifically about PowerShell, you should also check out the PowerScripting Podcast.  The PowerScripting Podcast is hosted by Jonathan Walz and Hal Rottenberg and if you’re into all things PowerShell like I am, this gives you one more way to stay informed about PowerShell during the daily commute.

Thanks for listening!

Kirk out.

Technorati Tags: , , , , , , ,

PowerGUI 1.0.13 is now available

Yesterday PowerGUI 1.0.13 was made available for download on the PowerGUI community site.  Aside from the many great new features in PowerGUI and the PowerGUI Script Editor (which you can read about here on Richard Siddaway’s blog), I wanted to share some of the details about the enhancements and additions that were made in the area that I am responsible for in this release — the PowerPacks.  Here is a list of the changes that were included:

Local System PowerPack:

  • added description, startup type and logon account to the output properties on the services node
  • replaced hard-coded event log tree with dynamic tree that shows all event logs on the system (note: this doesn’t support the custom views that can be created in the Vista event log viewer yet)
  • added actions to clear all events in an event log, set the maximum size and set the overflow policy
  • updated the Drives node so that drives are automatically grouped by provider type when there are multiple drives on a system
  • fixed issues preventing the browsing of certain drives from working properly
  • added support for viewing the security descriptor and the access control list for files, directories and registry keys
  • added take ownership support for security descriptors
  • added Values link to view the values associated with a registry key and Change Value action to change a registry value
  • added support for an expanded view of environment variables that contain multiple values delimited by semi-colons
  • added open file support
  • added support for signing files from a certificate provider drive

Active Directory PowerPack:

  • replaced Browse the Domain node with Browse Active Directory node; this supports browsing all of Active Directory within PowerGUI, not just the Domain Naming Context node
  • added action to delete a computer object from AD
  • added Member Of (Recursive) links for groups, and computers
  • added Member Of link for users

WMI Browser PowerPack (new!):

  • introduced brand new PowerPack for browsing WMI objects on the local computer or remote computers
  • exposed support for managing specific computers via WMI; you just use the Add Connection and Remove Connection actions that are exposed through the root WMI Browser node
  • exposed all WMI objects on a computer; you just browse through the WMI object tree to the one you are looking for and then use the Get WMI Objects link to view the WMI objects of that class type

There is still a lot more to do with the PowerPacks and this is only the beginning.  I’m completely focused on enhancing the PowerPacks that come with PowerGUI, so if you have suggestions, requests, or feedback to offer, I’d be more than happy to hear it — just leave me a comment on this blog.  Or if you are trying to make a PowerPack yourself and want home help or suggestions, you can comment about that here too or just post about it on the PowerGUI Forums.

And if you haven’t downloaded PowerGUI 1.0.13 yet, please give it a try and let me know what you think!

Kirk out.

Technorati Tags: , , , ,