Browse by Tags

Tagged Content List
  • Blog Post: What’s in a name? Using prefixes in PowerShell.

    We’ve talked about this in the past but it’s time for a reminder. PowerShell uses prefixes in front of nouns to avoid name collisions. Imagine how many collisions there would be if people used the noun “USER” directly. Instead, we have cmdlets *-ADUser, *-VPNUser, and *-RDUser...
  • Blog Post: Windows Management Framework V5 Preview

    The Windows Management Framework V5 Preview is out! Check out Jeffrey Snover's announcement here . The preview contains updates to PowerShell Desired State Configuration, as well as two new features: NetworkSwitch cmdlets and Windows PowerShell OneGet. OneGet is designed to dramatically simplify how...
  • Blog Post: Only 2 days left to save $1000 on PowerShell Deep Dive registration

    There are still a few seats open for the first ever PowerShell Deep Dive Conference and tomorrow is the last day of cheap registration! In case you haven’t already been doing it, now would be a good time to start camping out in your boss’ office begging him/her for the money and time off...
  • Blog Post: Finding a URL For File Transfer Cmdlets

    I just posted a blog about our new File Transfer Cmdlets in which I artfully dodged a difficult question: How do you get the URL to do the file transfer? Sometimes you are going to have it but other times you’ll go to a website and it can be bloody impossible to find the URL that you need to download...
  • Blog Post: Transferring (Large) Files Using BITs

    Have you had a file copy fail? Does that drive you crazy or what? How about when it is a REALLY big file and it takes a couple of hours and JUUUUUST before it finishes something happens to interrupt the transfer and you have to start all over again. Does that make you want to shove a sharpened #2 pencil...
  • Blog Post: Test-PSCmdlet

    Everyone needs to get good with Advanced Functions – this is the easiest path to the best semantics for everyone. In previous posts we’ve shown how you can add a few simple attributes and get a TON of stuff for free. There is a LOT more to advanced functions. You can go VERY VERY far with advanced functions...
  • Blog Post: PS> Dir –A D The Screencast

    I decided to experiment with a screencast. This is my first and I have no idea what I’m doing so please forgive me if it sucks. I’d like to know whether you find this format useful or not and then specific feedback about how to make the screencast better (e.g. I recorded it at 1024x768 - is that good...
  • Blog Post: Extending and/or Modifing Commands with Proxies

    There are so many powerful features in V2, it is hard to know where to begin. This one is going to blow to top of your head off when you understand what it enables you to do. In this blog, I talk about Proxy Cmdlets which is the ability for one Cmdlet to call another. You could always do this but...
  • Blog Post: Diagnosing Here-Strings With PowerShell_ISE

    James Brundage posted a blog entry How To Write a Console Application in PowerShell with Add-Type which used a here-string.   One user (lcr) copied and pasted the text and got the following error: Unrecognized token in source text. At line:1 char:72 + Add-Type -OutputType ConsoleApplication...
  • Blog Post: A Module to Create Modules and Advanced Functions

    [1/3/09 Update - the original link to the attachment containing this code was broken but is now fixed. Sorry. jps] It is hard to overstate how important Modules and Advanced Functions are. If you are a PowerShell user - you need to take the time to learn these new mechanisms and use them as your first...
  • Blog Post: PowerShell_ISE Scripting: ConvertTo-Comment

    Let me combine a couple of things. 1) When I posted my PowerShell_ISE profile, I included a function Goto-Line that is now builtin to the ISE so I reposted the blog with this function commented out. I commented it out instead of deleting it because I wanted to provide an example of how to do it. ...
  • Blog Post: My Powershell_ISE Profile Part 2

    I messed up. First let me remind you that what you have are CTP bits and that CTP bits are subject to change. It turns out that we are tweaking the PowerShell_ISE object model and that the profile I posted does not work with CTP3. I’m sorry for that screw up. You can use the amazing PowerShell_ISE...
  • Blog Post: My PowerShell_ISE Profile

    [UDPATE - the original post had a script which did not work with CTP3 so I've replaced it with the correct version. Apologizes for the screw up. I've updated the attached file as well. - jps] I thought I would share my PowerShell_ISE profile with you. I haven't done anything to clean this up or document...
  • Blog Post: PowerShell ISE Can Do a Lot More Than You Think

    In CTP2, we released the first version of PowerShell_ISE. It was VERY rough and primitive and we came close to deciding to wait to CTP3 to ship it. We decided to go head and ship it in CTP2 because the team got it to critical mass and we wanted to let the world know where we were going as soon as possible...
  • Blog Post: PowerShell v2 Pipelining in 73 (make that 53) Characters

    I started using Twitter and saw a request from Thomas Lee for help about pipelining in CTP3. The thing about Twitter is that the messages have to be tiny so I wasn’t sure I could answer using it. It turns out I can solve this problem AND give a usage example in 73 characters. Here goes: PS> function...
  • Blog Post: PowerShell V2 – External MAML Help

    As you’ve probably picked up by now – Advanced Functions are super important. We’ve been showing a bunch of scripts that have embedded help using comments and dot-tags. Let me take a second and drill into this. We believe that PS will be used in a wide range of scenarios: simple one liners; personal...
  • Blog Post: Experiment with PowerShell V1 Without Installing It

    If you are reading this, you probably already use PowerShell but you might know someone that has resisted installing it and trying it out. Thomas Lee posted a blog HERE with a pointer to a Virtual PowerShell lab on TechNet. This allows you to Terminal Serve into a hosted virtual machine and kick the...
  • Blog Post: PowerShell V2: ParameterSets

    One of the great benefits of PowerShell V2 Advanced Functions is the ease in which you can support parametersets. ParameterSets are, well, different SETS of valid parameters. For instance you can say: Get-Process -id 0 Get-Process -Name *ss Those are 2 different parametersets for the Get-Process...
  • Blog Post: Faces From The PowerShell Community

    Jonathan Medd (of the Get-Scripting Podcast) held a PowerShell Panel discussion at TechEd EMEA where he asked various members of the PowerShell community questions.  I had a blast participating in this.  The group consisted of: Jonathan Medd – Get-Scripting Podcaster and winner of the Quest...
Page 1 of 1 (19 items)