Browse by Tags

Related Posts
  • Blog Post: Enable Users from an Excel File

    You might find this hard to believe, but there have been times when people have actually criticized Microsoft software. It's true: not every product that we've released has been universally acclaimed as the greatest software product ever released. But that's the nature of the software business: sometimes...
  • Blog Post: %$#@ Special Characters!, Part 2

    By Edwin Young Last time , we looked at some curious behavior when running the New-CsAnalogDevice cmdlet: when you leave out a mandatory parameter like AnalogFax, then PowerShell prompts you for it; but weirdly, even if you enter $false, the property ends up true. Why is that? This isn’t...
  • Blog Post: Why Didn't You Tell Me That Isn't a Valid Property?

    As you might expect, writing for the Lync Server PowerShell blog is perhaps the most exciting and glamorous job on the face of the planet: millions of people would literally give their right arm for the opportunity to trade jobs with us. Note . Well, OK, so maybe they wouldn't literally give...
  • Blog Post: PowerShell Overview: Format-Table vs. Select-Object

    Can you use the Format-Table cmdlet instead of the Select-Object cmdlet? Depending on what you're doing, yes, you can. In the lab we included an exercise where we had people retrieve user accounts and then display just the values of the DisplayName and Enabled attributes. To do that, we had them...
  • Blog Post: PowerShell Overview: Aliases and Functions

    Does the New-Alias cmdlet only allow you to create aliases for cmdlets themselves? Can you create an alias that actually covers several commands? While we were conducting our lab at TechReady 12 we conceded that Windows PowerShell can require a lot of typing. (A lot of typing.) One suggestion we...
  • Blog Post: How to Cheat at Sporcle

    By now we hope you've had the chance to try your hand at our initial contribution to Sporcle, the online site for "mentally stimulating diversions." If you managed to solve the puzzle, all we can say is this: Congratulations on a job well done! But what if you weren't able to solve the puzzle? What then...
  • Blog Post: Creating Your Own GUI Application

    Creating Your Own GUI Application (Création de Votre Propre Application GUI) This might come as a shock to many of you, but there was a time – a time long, long ago – when people didn't have cell phones. What could that even mean not to have cell phones? Well, for one thing...
  • Blog Post: When Do I Have to Put Double Quotes Around Parameter Values?

    Ah, yes: the great double quote conundrum. Compared to, say, VBScript, Windows PowerShell is remarkably good at figuring at what it is you want to do. For example, this command returns the voice policy RedmondVoicePolicy : Get-CsVoicePolicy "RedmondVoicePolicy" So does this command: ...
  • Blog Post: How Do We Love Performance Counters? Let Us Count the Ways

    If you happen to be up on your poetry (as those of us here at the Lync Server PowerShell blog, the home of the daily Lync Server PowerShell haiku , obviously are) then you are no doubt familiar with the poem How Do I Love Thee? by Elizabeth Barrett Browning. And even if you aren't up on your poetry ...
  • Blog Post: Combine Output With Add-Member

    Sometime in the year 1793 (the exact date is unknown), the Italian artist Leonardo Da Vinci was strolling through the newly-opened Musée de Louvre when he happened upon his famous portrait of the Mona Lisa. "Mamma mia!" he exclaimed upon looking at the painting. "I forgot to paint the eyebrows...
  • Blog Post: %$#@ Special Characters! Part 1

    By Edwin Young, Microsoft PowerShell has quite a sophisticated syntax, with lots of special characters and variables. For the most part, this is very useful. But there are a few “gotchas” that can leave you scratching your head. Here are some common examples people on our team have...
  • Blog Post: PowerShell Overview: Selecting Non-Existent Properties

    When you use the Select-Object cmdlet, how come PowerShell doesn't tell you that you asked for a property that doesn't exist? Let's explain the scenario that caused two different people to ask this question while attending our instructor-led lab at TechReady. In our lab, one of the tasks involved...
  • Blog Post: So What's the Deal With the Three Dots?

    You know, it's not often that those of us here at the Lync Server PowerShell blog get the chance to show off our knowledge. OK, admittedly, that might be because we don't actually have much knowledge to show off in the first place. Still, it's nice to get the chance every now and then to demonstrate...
  • Blog Post: Export to Excel

    One of the great things about Windows PowerShell is that you can manage practically your entire system without ever leaving the command line. (Yes, we know, not everyone thinks spending all their time at the command prompt is a great thing, but obviously these few people haven’t spent enough time...