Thursday, May 22, 2014

DSC For Linux

In a talk I'd never have imagined would happen, last week at TechEd US, Jeffrey Snover announced DSC for Linux. More information on that is provided on the Windows PowerShell team blog at: http://blogs.msdn.com/b/powershell/archive/2014/05/19/announcing-windows-powershell-desired-state-configuration-for-linux.aspx

While I don't know Linux well enough to provide a detailed comment, the resources shown in that post do not look like the complete set. Nevertheless, this is a great start. I look forward to hearing more and seeing additional resources being added.

Technorati Tags: ,,

Monday, May 19, 2014

SpiceWorld London 2014–A Wonderful Conference

Last week I had a wonderful opportunity to attend and speak at Spicework’s SpiceWorld London. It was a great 2-day event held at The Brewery, Chiswell Street in the city. I mentioned this event in my blog (see http://tfl09.blogspot.co.uk/2014/05/spiceworld-london-speakers-announced.html).

The event itself was lovely – it was fairly small and intimate. This allowed time and space to meet other delegates and to talk to the exhibitors. The Exhibition was also pretty good – I got to talk to some great companies and picked up some great take-aways. Thanks especially to Acronis for a full copy of their software, which is really, really useful. And thanks to HP for the really nice phone charger – as it turns out, I needed it for the train ride home.

My talk was entitled Bringing Home The Bacon – an Introduction to Windows PowerShell. I’ve uploaded the slides to SlideShare (http://www.slideshare.net/ThomasFLee/2014-spiceworld-london-breakout) and you are free to take a look. The talk is introductory to PowerShell, but I did spend time both in slides and in the talk making the case for PowerShell. I certainly persuaded many IT Pros to at least take a look, but there are always going to be some die hards who will only relinquish the GUI when it’s pried from their cold dead hands. I can see their point – although my view is simpler. There are two types of admin – those who just know the GUI and those who know the GUI and PowerShell. The latter are always going to be the ones making the bigger bucks.

One unique aspect of the event was the presence of all of the founders of Spiceworks, who were there both to talk to the attendees, but also to listen. I had several great conversations around the use of PowerShell in the SpiceWorks applications and how that might be achieved. It was utterly awesome to have a view (i.e. SpiceWorks needs a PowerShell interface) and have the very people who can deliver that there and listening. It was very refreshing.

Of course, any great conference had to have good parties and that was sure the case. The pre-party was held at a pub – which was just able to hold all the attendees. And the main party, held at The Vault, was pretty cool too, complete with a nice band.

I am looking forward to next year’s event already!

Friday, May 16, 2014

Updated PowerShell V5 Preview Released

The Microsoft PowerShell team has just released an updated beta version of PowerShell Version 5. To give the release it’s full title, it is known as: Windows Management Framework 5.0 Preview May 2014. This update comes only a month after a prior release – showing that the PowerShell team sure can turn things around fast!

This update is available on http://www.microsoft.com/en-us/download/details.aspx?id=42936. The update consists of three files – two install packages (one for X86, the other for X64) and a small set of release notes.

In order to install it you must be running the LATEST OSs  windows 8.1 or Server 2012 R2. According to the release notes, All versions of Windows 8.1 are supported, as are all versions of Server 2012 R2 (except Itanium [SIC as there IS no version of Server 2012 R2 for Itanium as per http://blogs.technet.com/b/windowsserver/archive/2010/04/02/windows-server-2008-r2-to-phase-out-itanium.aspx)]). I continue to find it curious that these betas are not supported on Windows 8 and Windows 7 (and related server products). I suspect that this may be a testing issue – testing takes time and as we know, to ship is to chose. Doesn’t really matter for me as my main servers and my laptop are up to spec. If nothing else, this decision is pushing me to upgrade to Server 2012 R2 on my development workstation – but before I do that, I need more RAM and a new disk so it’s going to have to wait a few weeks.

Installing this is easy – just navigate to the  download site, get the download package and run it. Installing it on a Windows 8.1 system does not even require a reboot to do the install.

So what’s new?

Of course, there are bug fixes etc. – at least I expect so. But they aren’t mentioned. There are also included the same two big items in the first WMF preview: OneGet and the Network Switch cmdlets.

But the most exciting addition here is a new module: PowerShellGet. The Earlier WMF preview contained a module called OneGet, which helps you to find programs and packages in the external world. I used PSG to get me the Sysinternals tools, and a nice  XML/HTML basic editor called bluefish. 

PowerShellGet uses similar logic to find you new PowerShell modules. The module has just 4 cmdlets: Find-Module, Install-Module, Publish-Module, and Update-Module. Simple and elegant – and it works a real treat! It enables you to find modules, and then download and install them (and update them in due course).

The documentation does not really make clear where these modules come from, but with a bit of detective work, the modules are found and published from/to the PowerShell resource Gallery (https://msconfiggallery.cloudapp.net/).

In order to use Find-module, you need an external program, Nuget.exe (but the first time you use Find-Module you are nicely prompted for it). Once you download this, Find-Module finds a total of 52 modules, including some neat ones like PowerShellIseModule, TCPServer, and LocalUserManagement to name but a few). To install new modules requires administration rights.

Using this module looks like imagethis:

This is a nice touch – and I will certainly be exploring more of these modules.

All in all, this is a nice update.And it’s going to give me more work to do, especially in the area of PowerShell get. DSC is the other aspect I need to dig more into – and finding the dsc resource modules gives me more incentive!

I can’t wait to see what comes next?

 

Wednesday, May 14, 2014

The Register: PowerShell terminal sucks

IN a recent article on The Register, a user complains that the PowerShell 'terminal' sucks. The reader, also known as h4rm0ny, is a  BASH user and finds the console limiting. He's probably right – but if he wants a better terminal, why not try the Integrated Scripting Environmnet, aka the ISE.

In the longer term, it would be nice for Microsoft to update the console (conhost.exe) to be rather more modern and to incorporate some of BASH's features. In the mean time, I'll just use the ISE which is good enough for me!

Technorati Tags:

Friday, May 09, 2014

PowerShell and Visio

Just saw a cool presentation on using Visio and PowerShell. The slides and presentation here is a re-recording of a session the author, Saveen Reddy, gave at the recent PowerShell Summit in Redmond. You can get the video here: https://vimeo.com/94408016. You can also get the materials from: : https://onedrive.live.com/redir?resid=1FF099EDB1C7EBFA!87363&authkey=!ABRswDeQYGR-Xi8&ithint=folder%2c.psm1.

Some useful tips on using Visio and PowerShell!

Technorati Tags: ,

Monday, May 05, 2014

Lync Conference Sessions Now Available

Earlier this year, Micrososft held the Lync Conference in Las Vegas and recorded the sessions. These sessions are now available at: http://channel9.msdn.com/Events/Lync-Conference/Lync-Conference-2014.

Go for it!

Thursday, May 01, 2014

SpiceWorld London Speakers Announced

Spiceworks is a free network management, monitoring, helpdesk, pc inventory and reporting solution. Produced by Spiceworks. But Spiceworks also has a very active technical support set of forums, including ones for Windows, VOIP, and of course PowerShell.

I’ve been contributing to Spiceworks since last autumn and am enjoying the place. I find the community a lot more supportive and a little less whiney than some of the other support boards. the place is very welcoming to newbies which I find especially good.

Every year, Spiceworks has a conference, SpiceWorld, which is held both in the US and in London. The conference is aimed at helping folks use the SpiceWorks app but also to be even more awesome IT Pros. AND, one feature that gets a lot of attention is the swag – I’m told I should bring an extra suitcase. This year’s London SpiceWorld is being held at The Brewery in Chiswell street on May 13-14. See http://www.spiceworks.com/spiceworld/london/ for the details.

Every year, one or two of the SpiceHeads (those of us active on the Spiceworks site) get asked to contribute. This year, it’s my turn and I’m going to be speaking about (ed: what else) PowerShell. My talk will be titled Bringing Home The Bacon With PowerShell with scripting and automation. It’s a short talk, I only have an hour, but I’ll be trying to cover the basics of PowerShell and looking more importantly at why every IT Pro should be keen to learn more.

I hope to see one or two of you there! http://www.spiceworks.com/spiceworld/london/

 

del.icio.us Tags: ,

Thursday, April 24, 2014

HP Publish Server Scripting Tools For PowerShell

One thing I love to see is third party companies publishing PowerShell tools for their software and hardware products. The more companies do it, the more strategic, de facto, PowerShell becomes. I love it when a plan comes together as a great American Colonel once said.

HP has just published a set of PowerShell cmdlets that provide tools for IT pros to configure an HP Server. You can see the announcement here, and the full spec of what was released here. And for the brave, download the cmdlets here.

Technorati Tags: ,,

Monday, April 21, 2014

PowerShell and Azure

CloudComputingAdmin.com has a nice article discussing managing Windows Azure IAAS using PowerShell. The article discusses installing the latest version of the PowerShell cmdlets (0.7.4) and shows how to do some common operations, including creating an Azure VM and removing an Azure VM. If you are looking at or using Azure, then you should investigate these cmdlets.

del.icio.us Tags: ,,

Tuesday, April 08, 2014

Windows XP–RIP

So, after years of anticipation, today is the day we say good bye to Windows XP. Today, XP has finallyi reached end of life (at least for most home and corporate users). The patches being released today are the last most users will ever see.

From today. XP is EOL. There will be no more patches, and from next month, patches released for Vista, Windows 7 and Windows 8.x will telegraph to the hackers where vulnerabilities in XP may lie.

Is it xxall gloom and doom? No – of course not. For some users, at least, Microsoft has agreed to continue supporting XP. The UK government recently announced such an extension although it came with a big price tag. And all those ATM systems that run XP are also given a bit of breathing space.

But what if you are a normal corporate user, or normal home user? Well, if all you do is just get email from GMAIL/Outlook.com etc, and maybe do a bit of Skyping with the grandparents/grandkids, you will probably be fine. But if you go to a lot of sites, using IE, and have a habit of clicking on links you find in Twitter, Facebook, etc – your risk begins soon. I liken it to traveling to a country with active Polio, or other diseases without having your shots. Yes, you may be just fine – but you may also pick up a very nasty disease.

So what should you do? If you are a home user, you really should move off of XP. My personal  recommendation is to move to Windows 8.1. If the new UI is too much pain, then either use Windows 7, or just buy Start8 by Stardock to get you over the Modern blues. If you are a corporate customer still running XP, you need to get your IT department to upgrade.

I am certain that there are a lot of users, some who are reading this blog post, who haven’t moved and who may not move. After all XP works, doesn’t it? Why spend money needlessly? The reason, simply, is risk. The longer you wait to upgrade, the more time the hackers have to craft attacks.

I loved XP back in the day. The early beta versions were full of promise, and after SP2, we saw that promise turn into a great OS. But it has come to the end of life. Let it go and upgrade.

Saturday, April 05, 2014

Visual Studio Support for PowerShell?

One thing that many devs, and IT Pros, have asked for is support for PowerShell and PowerShell projects inside Visual Studio. With the latest update of Visual Studio, this appears to be coming closer. If you are interested, why not look at Ravikanth's recent article over on PowerShell Magazine for more details.

The support may not be as much as one might like, but it's a step in the right direction.

Thursday, April 03, 2014

More on Dot Sourcing From Jeff Hicks

Dot sourcing is a feature of PowerShell whereby scripts are run in the scope of the caller rather than a separate sub-scope. When you dot source, variables, functions, psdrives, etc that were created in the script persist in the callers scope. Had you run the same script normally, these objects would have instantiated for the duration of the script then removed and garbage collected. Dot sourcing was, pre V4, a way of creating scripts of functions and then bringing them into the current scope – although with v2, the module does a better job.

Jeff Hicks shows more detail into how dot sourcing works in a new post on his MCPMag column.

vSphere Power CLI Improved

I've been reading over on Virtualization Review, that VMware has released a new version of vSphere Power CLI (PowerShell cmdlets to manage VMware vSphere.

The article on VR notes that this release includes bug fixes, improvements and new features. New features include the ability to connect to vCentrer SRJM,. support for PowerShell V4and support for IPv6. You can get the full list of feature here. And for some more background on this release see this article by Alan Renouf.

If you are using VMware in your environment, you will almost certainly want to get this updated version of PowerCLI.

Technorati Tags: ,,

Tuesday, April 01, 2014

Desired State Configuration – DSC Resource Kit Wave 3

Desired State Configuration  is a feature of PowerShell V4, but one that was quite incomplete. In V4, IMHO, DSC is a really cool proof of concept. It works for a limited set of resources, but is not complete. Microsoft (and the community) need to, and are, publishing more resources. I suspect that V5 of PowerShell will see the completion or near completion of the resources needed by IT pros to manage most data centres.

To see that's in the resource kit, you can go to The TechNet Gallery and get it.

Monday, March 17, 2014

Azure PowerShell Cmdlets

Further to my article I posted last week, Over the weekend I read a nice article on 'Getting the Windows Azure PowerShell Cmdlets. It's over on Michael Collier's blog, and explains how to get the cmdlets. To do this, the article explains, you navigate to the Windows Azure downloads page, click the link to “Install” the cmdlet, and let the Web Platform Installer (WebPI) do its thing.

Once installed, you have the Azure module which has hundreds of PowerShell cmdlets. You can use these to access and manage most of the Azure services. I really need to sit down and spend a few days getting to grips with these cmdlets!

del.icio.us Tags: ,,

Friday, March 14, 2014

Azure Cmdlets

I've been playing a bit with Azure – dipping my toe into the waters, so to speak. As to be expected, there are a ton of cmdlets available to help you automate Azure management. On his blog article at: http://regularitguy.com/2014/03/13/installing-the-windows-azure-powershell-cmdlets/, Rick Claus (a Microsoft evangelist) takes a look at the Azure cmdlets and how to install them.

At present, you obtain the cmdlets by letting the Platform Installer install them. There does not appear to be a simpler way of getting them – maybe in the future. But in the mean time, Rick points out that updates to the Azure module can be obtained by re-running the Platform Installer. Personally – I would prefer the module to be available in a more automated fashion.

 

del.icio.us Tags: ,

April 2014 PowerCamp Cancelled :-(

Sadly, I have to cancel the PowerCamp event scheduled for end April 2014. The event was scheduled to be held in Microsoft’s offices in London, but they have just informed me they are going to be carrying out maintenance on the building, This means we’ll have no air conditioning or power. Which makes it kind of impossible to run an event.

I am very sorry for those of you who have booked – I’ll organise a refund by the close of play today. I hope to run another event in the Autumn, and will announce it as soon as possible.

del.icio.us Tags:

Wednesday, March 05, 2014

Announcing PowerShell PowerCamp–April 26-27 2014 in London

With the winter of rain, hopefully now well behind us, it’s time to look forward. Both Server 2012 R2 and Windows 8.1 now slowly pushing into organisations large and small the End of Life for Server 2003 and Windows XP are looming. Learning PowerShell is now, more than ever, something every IT Pro needs to do! While I say this ever year, it seems to me that learning PowerShell is now, more than ever, something every IT Pro needs to do! And one great way to get up to speed is via the PowerShell PowerCamp event!

Why Learn PowerShell?

I hear this question a lot – after all the GUI is so good, why bother with PowerShell? Well, for a start, PowerShell is now at the centre of Microsoft's manageability strategy. Every key component of Windows Server (and client for that matter) can be managed using PowerShell. The latest sets of cmdlets enable you do to more than ever before with PowerShell. At the end of the day, PowerShell provides reliable, robust and repeatable automation – and in these days of having to do more with less, that’s vital.

What is A PowerShell PowerCamp?
PowerCamp is a fast paced weekend training event that covers all the basic aspects of Windows PowerShell v4 - from the command line to writing production-oriented scripts. The focus is on smart IT Pros who know then need to learn PowerShell but can’t afford to take a week and take the standard Microsoft course. We package this up at a price that’s easily affordable.

On day 1, we start with the basics including configuration, formatting and providers, remoting and jobs. Then, on day 2, we look at scripting, work flows, managing script libraries using modules, WMI/CIM,  using objects, and finishing with the PowerShell features added into the latest versions of Windows.

The PowerCamp event is a combination of lecture, demonstrations plus Q&A, with the opportunity to type along with the tutor. There are no formal labs. But I do provide the key demos, all the slides, plus a wealth of other add on material on a memory stick you get at the start of day 1. So bring along your laptop, and type away. I use a set of VMs to demonstrate and you can bring along ones you made earlier so as to follow along as I demo.

What is the Agenda?
Day 1 – The Basics
• PowerShell Fundamentals – starting with the key elements of PowerShell (Cmdlets, Objects and the Pipeline) plus installation, setup, and profiles. I also call out some of the new features in PowerShell V4.
• Formatting – how to format output nicely – both by default and using hash tables and display XML
• Providers – getting into underlying OS data stores (certificate store, AD, registry, etc.) via providers
• Remoting and jobs– working with jobs plus working with remote systems using PowerShell’s remoting capabilities
Day 2 – Diving Deeper
• Scripting Concepts – automating everyday tasks including PowerShell’s language constructs, error handling and debugging and workflows
• Modules – managing PowerShell script libraries in the enterprise
• WMI and CIM – we look at the WMI and CIM components, including the new CIM cmdlets
• Using .NET and COM Objects – working with native objects
• PowerShell in Windows 2012 R2 and Windows 8.1 – a look at what’s there and how you can leverage the huge number of new cmdlets

And as we go, we always have time to take your questions and to show you how to overcome your issues with PowerShell!

What does it cost?
The cost is £200 (+VAT at the prevailing rate) for the weekend. Meals and accommodation are not covered. Should you book and have to cancel, that’s fine so long as you give at least two weeks notice – I understand that plans change. Refunds after that point are not, sadly, possible.

Where is the event going to take place?
The PowerShell PowerCamp is being held at Microsoft Cardinal Place, 100 Victoria Street in Victoria on the weekend of April 26/27 2014. Each day starts promptly at 09:00 and finishes up by 16:45. We’ll also take short breaks throughout the day, including a 1-hour lunch break.

PowerDrinks!
After Saturday’s session, attendees are invited to a small nearby public house for some lovely English ale, etc. The first round is on me!

Who is the tutor?
The PowerShell Weekend PowerCamp is delivered by Thomas Lee. Thomas is a veteran PowerShell evangelist who has been involved in the PowerShell community since the very beginning. He provides training and consultancy around a range of Microsoft products, with a recent focus on PowerShell and Lync Server. In his spare time, he lives with his wife, daughter, wine cellar, and Grateful Dead live recordings collection in a small cottage in the English countryside. His Twitter handle is @DoctorDNS and he maintains two blogs (Under the Stairs at http://tfl09.blogspot.com and PowerShell Scripts Blog at http://pshscripts.blogspot.com).

What do I need to bring
You need to bring a laptop with PowerShell v4 loaded. That can be either native or in a virtual machine. I suggest you have at least two VMs pre-configured – one a server 2012 R2 installation the other a Windows 8.1 installation. The virtualisation software is not of concern – but you need 64-bit guest OS support for Server 2012 R2! Thus you can use Hyper-V, VMware Workstation or Oracle’s Virtual Box. Heck, run it in a VM on a Mac or Linux PC if you want. Just bring along PowerShell v4!

How do I book?
Contact DoctorDNS@Gmail.com to book a place and to arrange for the invoice to be paid. Payment must be in cash, cheque or bank transfer – I don’t take credit cards.

More Details
Watch this blog for any hot breaking news on the event.

Lync Server 2013 Virtualisation Whitepaper From Microsoft

Ever since Microsoft introduced Live Communications Server, customers have been asking how they can virtualize the product. During the OCS years, I constantly heard requests for support for Virtualisation. But the answer remained: no support. Eventually Microsoft did the work necessary to validate fully the product in a virtual environment. The result is that, today, you can fully virtualize both the Lync server and the Lync client product. But it’s not all that simple – virtualization just adds more opportunity for problems.

While many workloads are a great fit for virtualization, Lync is a real real-time application. As such, there can be performance related issues that are not even noticeable with other workloads. These issues manifest as poor audio and video resulting in a poor service to the user.

In a recently published White Paper, Lync Server 2013 Virtualization White Paper Microsoft provides full guidance for planning a Lync Server deployment in a virtual environment. The white paper descries how to configure Lync Server 2013 in a virtual environment, including both the host and the guest VMs. Also included are the most important Key Health Indicators (KHIs) that you should watch both when performing a capacity test prior to deploying, and later during deployment.

If you are planning a Lync deployment in a virtual environment or if you want to consider virtualizing part of your existing Lync infrastructure, you really should read this paper.

del.icio.us Tags:

Tuesday, March 04, 2014

Lync and Windows Fabric

One of the major changes between Lync 2010 and Lync 2013 is the integration of Lync with Windows Fabric. Windows Fabric is described as ‘a Microsoft technology used for creating highly reliable, distributable an scalable applications’. Windows Fabric is designed to enable replication of application related data across multiple application servers. These application servers work in parallel to provide fault tolerance and scalability. Windows Fabric ensures the information needed for these applications is delivered reliably to each of the necessary servers.

Lync uses Windows Fabric to move information previously held in a back end database (and hence a bottleneck) to the front end servers. This eliminates the need for each Lync Front End server to use network resources to obtain application information – it’s available locally.

In the case of Lync, this change enables better scaling as well as providing resilience (a front end server can continue to work in the case of errors elsewhere in your network). While pretty much all of the complex stuff, with respect to Windows Fabric, is done auto-magically for you, it is important to understand what it’s doing, why and some of the issues arising.

One of key issues that arises from the integration of Windows Fabric and Lync is the recommendation of always having at least three ES servers in an ES pool. See http://technet.microsoft.com/en-us/library/gg412996.aspx for the details of this limitation.

For more information on the integration of Lync 2013 and Windows Fabric, see Richard Brynsteson’s post on the Mastering Lync blog.

del.icio.us Tags: ,,