Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
MSDN Blogs
>
Windows PowerShell Blog
>
All Tags
>
ctp3
Server & Tools Blogs
>
Server & Management Blogs
>
Windows PowerShell Blog
All About Windows Server
Windows Server
Windows Server Essentials Blog
Building Clouds
Partner & Customer Solutions
Server & Cloud
Ask The
Performance Team
Ask Premier Field Engineering
Ask the Core Team
Cloud & Datacenter Management
The System Center Team Blog
System Center Virtual Machine Manager
System Center Service Manager
System Center Operations Manager
System Center Data Protection Manager
System Center Orchestrator
Partner & Customer Solutions
Client Management
System Center Configuration Manager
System Center Service Manager
MDOP
Malware Protection Center
Windows Intune
SUS
Partner and Customer Solutions
Virtualization, VDI & Remote Desktop
Virtualization Team Blog
Ben Armstrong’s Virtualization Blog
Jose Barreto Blog on Hyper-V
Partner & Customer Solutions
Remote Desktop Services
Windows Multipoint Server
Ask the Core Team on Hyper-V
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Ask the Core Team on Failover Cluster
Clustering & High Availability
Windows Server Management
PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
Group Policy
Networking
Identity & Access
Ask Directory Services
Active Directory
Microsoft Leadership
Brad Anderson - In the Cloud
Windows PowerShell Blog
Automating the world one-liner at a time…
Live Now on Server & Tools Blogs
Subscribe
Comments
Contact
Menu
Blog Home
Atom
Translate this page
Powered by
Microsoft® Translator
Recent Posts
Microsoft Script Explorer: Next Steps
Posted
1 month ago
by
PowerShell Team
0
Comments
Windows PowerShell 3.0 SDK Sample Pack
Posted
2 months ago
by
PowerShell Team
0
Comments
First German PowerShell Community Conference
Posted
3 months ago
by
PowerShell Team
0
Comments
Updatable Help speaks only English! What’s up with that?
Posted
4 months ago
by
PowerShell Team
4
Comments
Tags
Add-Module
Add-Type
Advanced Functions
BITS
console
Copy-Console
DOCUMENTATION
Get-CommandPlugin
Get-ExportedType
Get-MarkupTag
Get-PSCallstack
Get-Random
Get-RandomNumbers
Getting Started
HowTo
Jeffrey Snover
Modules
PowerShell ISE
PowerShell V2
Proxy
Remoting
Resolve-ShortcutFile
ScriptBlock
V2QuickTip
WPF
Archives
Archives
April 2013
(1)
March 2013
(1)
January 2013
(2)
December 2012
(1)
October 2012
(2)
September 2012
(2)
August 2012
(1)
July 2012
(5)
June 2012
(9)
May 2012
(1)
April 2012
(3)
March 2012
(7)
February 2012
(1)
January 2012
(1)
December 2011
(2)
October 2011
(3)
September 2011
(3)
August 2011
(2)
July 2011
(2)
June 2011
(1)
May 2011
(1)
April 2011
(5)
March 2011
(4)
February 2011
(4)
January 2011
(2)
December 2010
(2)
November 2010
(1)
October 2010
(1)
September 2010
(1)
July 2010
(1)
June 2010
(9)
May 2010
(7)
April 2010
(4)
March 2010
(3)
February 2010
(7)
January 2010
(8)
December 2009
(8)
November 2009
(9)
October 2009
(7)
September 2009
(12)
August 2009
(8)
July 2009
(11)
June 2009
(16)
May 2009
(15)
April 2009
(18)
March 2009
(15)
February 2009
(6)
January 2009
(45)
December 2008
(31)
November 2008
(5)
October 2008
(12)
September 2008
(14)
August 2008
(8)
July 2008
(15)
June 2008
(26)
May 2008
(20)
April 2008
(18)
March 2008
(18)
February 2008
(12)
January 2008
(13)
December 2007
(4)
November 2007
(26)
October 2007
(6)
September 2007
(8)
August 2007
(11)
July 2007
(5)
June 2007
(27)
May 2007
(33)
April 2007
(11)
March 2007
(28)
February 2007
(16)
January 2007
(34)
December 2006
(25)
November 2006
(26)
October 2006
(10)
September 2006
(17)
August 2006
(16)
July 2006
(20)
June 2006
(22)
May 2006
(11)
April 2006
(62)
More
▼
Less
▲
Tagged Content List
Blog Post:
Another Holiday Gift from the PowerShell Team: PowerShell 3.0 CTP2 - Getting Started with Windows PowerShell Workflow
PowerShell Team
After delivering the Thanksgiving Gift this year, it’s time for a Holiday Gift …. No not as big as the one we had about 3 years ago …!! Today, we published the “Getting Started with Windows PowerShell Workflow” document on the CTP2 download page , just look for “WMF3...
on
21 Dec 2011
Blog Post:
Update-TypeData, ISE CTP3 vs ISE RC, and Teched2009 Demos
PowerShell Team
There were quite a few name changes in the ISE Object Model from CTP3 to RC Using Update-TypeData, we can achieve some parity between the two We can add aliases to the CTP3 version to make it look like the RC Version For example, <Name>System.Management.Automation.Host.PSGHost</Name>...
on
26 May 2009
Blog Post:
V2 Quick Tips: Finding Extra Outputs From Your Script
PowerShell Team
One of the nifty features of functions in PowerShell is that they can return as many results from as many places as you’d like. In fact, any method or cmdlet that would give you an output if you try it on the command line will also return values from a function. While this can give you a...
on
20 May 2009
Blog Post:
V2 Quick Tip: Starting a new elevated process from a PowerShell script
PowerShell Team
One of the systems administration hurdles of the post-Vista world is figuring out how to make a script run as an administrator. In PowerShell V2, using the Start-Process cmdlet, this is a one liner that will get the job done: Start-Process "$psHome\powershell.exe" -Verb Runas -ArgumentList...
on
22 Apr 2009
Blog Post:
Do PowerShell Demos in the ISE
PowerShell Team
Jeffry Snover and many other have used Start-Demo in powershell.exe http://blogs.msdn.com/powershell/archive/2007/03/03/start-demo-help-doing-demos-using-powershell.aspx Continuing the tradition, we now have ISEDemo.psm1 To use it, start ISE and run Import-Module ISEDemo.psm1 #(attached) Start...
on
21 Apr 2009
Blog Post:
V2 Quick Tip: Monitoring Performance Counters with PowerShell
PowerShell Team
I just got a ping on our internal discussion list about how to get at the Performance counters in PowerShell. In V2, we've got some nifty cmdlets to help read performance counters. Here are a few of quick one liners to get you started: # List all of the performance counters you can monitor Get...
on
21 Apr 2009
Blog Post:
Differences between the ISE and PowerShell console
PowerShell Team
Here is a collection of differences between the PowerShell_ise.exe and PowerShell.exe, as well as workarounds and suggestion if you need them (assuming we have them :)) Limited support for interactive console apps, try cmd.exe, then try cmd.exe /k cmd.exe /c dir still works though, and more...
on
17 Apr 2009
Blog Post:
Image Manipulation in PowerShell
PowerShell Team
The other week, I showed a Get-ProgID function that I used to help someone at Microsoft Research find a good object to talk to images. A few comments jumped to one of the possible solutions, which is to use the .NET Drawing assembly (which I have to load first). I wanted to be reasonably sure that the...
on
30 Mar 2009
Blog Post:
Get closure with GetNewClosure
PowerShell Team
Have you ever created scriptblocks on the fly, say in a foreach loop, and they totally mess up because they all have the same value? This is something sort of advanced, and typically used when you’re proxying an object. The most basic example would be, taken from ( http://www.powershellcommunity...
on
27 Mar 2009
Blog Post:
Tied Variables in PowerShell
PowerShell Team
With Add-Type and $executioncontext you can add special varibles that have tied values. I made $random, and $now add-type @" using System; using System.Management.Automation; public class RandomVariable : PSVariable { Random r; public RandomVariable () : base("Random", 0, ScopedItemOptions.ReadOnly...
on
26 Mar 2009
Blog Post:
How to Create an Object in PowerShell
PowerShell Team
Today someone in Xbox Live Operations (the folks that keep xBox Live alive and well) pinged me with a simple question about PowerShell with a complicated answer: “How do I create a class in PowerShell?” There’s two scenarios I find where people want classes. The first (and most...
on
10 Mar 2009
Blog Post:
Diff between Windows PowerShell versions
PowerShell Team
PowerShell MVP Oisín Grehan has done a really good job in getting the diff between PowerShell releases. V1 and CTP3 http://www.nivot.org/2009/02/04/DifferencesBetweenPowerShell10RTMAndPowershell20CTP3Win7Beta.aspx CTP2 and CTP3 http://www.nivot.org/2008/12/23/PowerShell20CTP3HasArrived.aspx ...
on
5 Feb 2009
Blog Post:
Getting Alternate Streams (Verbose, Progress, Debug) with the PowerShell API
PowerShell Team
Dozens of people could write dozens of books on all of the cool stuff we improved in V2 of PowerShell. One of the nice little things we did was give a more understandable API than Pipeline (which is the class you can use to invoke code from C# in V1). This API is called the PowerShell API...
on
28 Jan 2009
Blog Post:
Debugging PowerShell Script Using the ISE Editor
PowerShell Team
Hi writers and consumers of buggy scripts. This post explains the basics of the Graphical Debugger in the ISE. There’s a lot of good stuff, with some tips and tricks. The debugger support got the cmdlets and user interface. The cmdlets include Enable/Disable/Get/Set/Remove-PsBreakpoint and Get-PsCallStack...
on
19 Jan 2009
Blog Post:
How To Make Your Own Module Repository
PowerShell Team
Andy Schneider (from Get-PowerShell.com ) recently asked me how he could make sure that everyone at Avanade could get a consistent set of modules. I run into a somewhat similar problem here at Microsoft, where I want to take scripts I've built to work with internal applications and make them easy for...
on
16 Jan 2009
Blog Post:
Interactive remoting in CTP3
PowerShell Team
Today let's talk about one of the cool new features of Windows PowerShell V2 - Interactive Remoting. Let’s start with an example: PS> $env:COMPUTERNAME # Check local computer name. VLADIMIA64 PS> Enter-PSSession Vladimia06 # Remote to other computer. [vladimia06]: PS C:\Users\Vladimia\Documents>...
on
13 Jan 2009
Blog Post:
Copy console screen to system clipboard
PowerShell Team
In the previous example we learned how to create a colorized copy of console in HTML and RTF format. However, the output of these scripts cannot be readily used for pasting into web or word processing applications. To insert it into your article in MS Word format, you need several steps: generate RTF...
on
11 Jan 2009
Blog Post:
Finding a URL For File Transfer Cmdlets
PowerShell Team
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...
on
11 Jan 2009
Blog Post:
Transferring (Large) Files Using BITs
PowerShell Team
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...
on
11 Jan 2009
Blog Post:
Test-PSCmdlet
PowerShell Team
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...
on
10 Jan 2009
Blog Post:
PS> Dir –A D The Screencast
PowerShell Team
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...
on
4 Jan 2009
Blog Post:
Extending and/or Modifing Commands with Proxies
PowerShell Team
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...
on
4 Jan 2009
Blog Post:
Diagnosing Here-Strings With PowerShell_ISE
PowerShell Team
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...
on
3 Jan 2009
Blog Post:
How To Write a Console Application in PowerShell with Add-Type
PowerShell Team
Windows PowerShell CTP3 has a lot of very cool things. CTP2 introduced the Add-Type cmdlet, which allowed you to dynamically compile C# in PowerShell. It was actually possible to use the CompilerParameters to Add-Type to make a console application, but it wasn't particularly easy. In...
on
2 Jan 2009
Blog Post:
A Module to Create Modules and Advanced Functions
PowerShell Team
[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...
on
2 Jan 2009
Page 1 of 2 (44 items)
1
2