Sign In
MSDN Blogs
Microsoft Blog Images
More ...
Blog - Title
July, 2006
MSDN Blogs
>
Windows PowerShell Blog
>
July, 2006
Server & Tools Blogs
>
Server & Management Blogs
>
Windows PowerShell Blog
All About Windows Server
Windows Server
Private Cloud
Partner & Customer Solutions
Server & Cloud
Windows Server Essentials & Small Business Server
System Center
Server & Cloud
System Center: Virtual Machine Manager
System Center: Service Manager
System Center: Operations Manager
System Center: Data Protection Manager
System Center: Configuration Manager
System Center: Orchestrator
Virtualization
Virtualization
Virtual PC Guy
Jose Barreto
Private Cloud
Partner & Customer Solutions
Server & Cloud
VDI & Remote Desktop Services
Remote Desktop Services
File & Storage & High Availability
File & Storage
Jose Barreto
Partner & Customer Solutions
Clustering & High Availability
Management
Windows PowerShell
Hey Scripting Guy (PowerShell)
Server Manager
SUS
Identity & Access
Ask Directory Services
Active Directory
Group Policy
Other Windows Server Technologies
Ask The
Performance Team
Networking
Ask Premier Field Engineering
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
Tags
Advanced Functions
CMDLET
Community
CTP3
DOCUMENTATION
DOTNET
FAQ
Get-Help
HowTo
INTERNAL
Jeffrey Snover
LANGUAGE
PHILOSOPHY
PowerShell
PowerShell Deep Dive
PowerShell ISE
PowerShell V2
Quest
Remoting
Sapien
TechED
Video
Windows Server 2012
WMI
WPF
More
▼
Less
▲
Archives
Archives
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
▲
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Windows PowerShell Blog
Why do I sometimes get different types?
Posted
over 6 years ago
by
PowerShell Team
1
Comments
PSMDTAG:FAQ: Why do I sometimes get different types or different behaviors? PSMDTAG:FAQ: When I pipe a heterogenous set of objects to an cmdlet that expects a homogenous stream - what happens and why? In our newgroup ( Microsoft.public.Windows.PowerShell...
Windows PowerShell Blog
Suppressing return values in PowerShell functions
Posted
over 6 years ago
by
PowerShell Team
10
Comments
PSMDTAG:FAQ: How do I supress return values in PowerShell functions? This was asked in a newgroup with the clarification: What I mean is: When you call a function Foo that returns a bool, PS will write 'True' or 'False' to the screenby default...
Windows PowerShell Blog
Creating arbitrary delegates from scriptblocks in PowerShell...
Posted
over 6 years ago
by
PowerShell Team
19
Comments
People have been asking about creating arbitrary delegates out of scriptblocks. As Jeffrey has mentioned, this isn't directly supported in V1.0 of PowerShell. It is, however, possible to do it using dynamic methods and the CreateDelegate call. Here's...
Windows PowerShell Blog
Casting a scriptblock to an arbitrary delegate signature
Posted
over 6 years ago
by
PowerShell Team
4
Comments
Arild asked the following in http://arildf.spaces.msn.com/blog/cns!E99F8B43533149B0!140.entry?_c%3dBlogPart : PSMDTAG:FAQ: Delegates - how to cast a scriptblock to an arbitrary delegate signature? ANSWER - You can't in V1.0. In version 1.0 Windows...
Windows PowerShell Blog
Issues with Windows PowerShell syntax
Posted
over 6 years ago
by
PowerShell Team
21
Comments
REI recently posted some comments/requests about Windows PowerShell syntax at: http://blogs.msdn.com/powershell/archive/2006/04/25/583273.aspx#675133 Let's go through a few of the points. ...the syntax was just way too cryptic and unintuitive...
Windows PowerShell Blog
Meet the Exchange Superstars!
Posted
over 6 years ago
by
PowerShell Team
0
Comments
Now you can meet the superstars (Vivek Sharma and Mihai Jalobeanu) behind the Exchange Management Shell in a video interview at: http://msexchangeteam.com/archive/2006/07/20/428366.aspx You can also get a demo of the Exchange Management Shell (which...
Windows PowerShell Blog
Setting the console title to be your current working directory
Posted
over 6 years ago
by
PowerShell Team
3
Comments
jmanning wrote: Also, given how common the request is, I'd ask Jeffrey to (pretty-please) also include in this post a prompt function that sets the title to include pwd. Ask and yea shall receive: function Prompt { $host.ui.RawUI.WindowTitle...
Windows PowerShell Blog
How to I set the title of my Console Window?
Posted
over 6 years ago
by
PowerShell Team
6
Comments
PSMDTAG:FAQ: H ow do I set the title of my console window? ANSWER: $Host.UI.RawUI.WindowTitle = "PowerShell ROCKS" Jeffrey Snover [MSFT] Windows PowerShell/Aspen Architect Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell...
Windows PowerShell Blog
Exchange Management Shell
Posted
over 6 years ago
by
PowerShell Team
3
Comments
Here is a pointer to an Introduction To the Exchange Management Shell: http://download.microsoft.com/download/6/d/4/6d4b5c51-dd72-41d3-b5b1-9dc22b1d35f1/IntroExchangeMgmtShell.pdf This is a nice glossy view of the important aspects of both Windows...
Windows PowerShell Blog
PSMDTAG:FAQ: What is $OFS
Posted
over 6 years ago
by
PowerShell Team
1
Comments
In my blog entry regarding Cascading Type Casts ( http://blogs.msdn.com/powershell/archive/2006/07/15/Cascading_Type_Casts.aspx ) there was an example: PS> [string][char[]][int[]][char[]]"PowerShell" P o w e r S h e l l And in a comment was a...
Windows PowerShell Blog
Variable expansion in strings and here-strings
Posted
over 6 years ago
by
PowerShell Team
9
Comments
PSMDTAG:FAQ: What is the difference between single quoted and double quoted strings? ANSWER: Double quoted string expand variables and single quoted strings do not. Example: PS> $x="TEST" PS> "This is a $x" This is a TEST PS> 'This is a...
Windows PowerShell Blog
Cascading Type Casts
Posted
over 6 years ago
by
PowerShell Team
3
Comments
A user on the newsgroup wondered whether the example below highlighted a bug or a feature. They applied multiple type declarations on a single parameter and Windows PowerShell did not complain. function check { param([string] [int] $y = 0, $x = 0)...
Windows PowerShell Blog
HanselMinutes Podcast on Advanced Windows PowerShell
Posted
over 6 years ago
by
PowerShell Team
4
Comments
Check out Scott Hanselman's podcast on Advanced Windows PowerShell at: http://hanselminutes.com/default.aspx?showID=33 Scott really "gets" PowerShell and has a fantastic way of communicating it. With V1.0, Windows PowerShell delivers a VERY powerful...
Windows PowerShell Blog
Indirectly Invoking Methods Via Variablenames
Posted
over 6 years ago
by
PowerShell Team
3
Comments
PSMDTAG:FAQ: Can I specify a methodname using a variable? e.g. $x.$y() PSMDTAG:FAQ: Why do I get METHOD metadata when I specify a method without providing parentheses? One of the great things about Windows PowerShell is that it is a latebound language...
Windows PowerShell Blog
Type Shortcuts
Posted
over 6 years ago
by
PowerShell Team
8
Comments
PSMDTAG:FAQ: What is a TYPE SHORTCUT? PSMDTAG:FAQ: What are the TYPE SHORTCUTS? Type shortcuts are a Windows PowerShell feature that allows you to reduce the amount of typing you have to do when specifying a type. For example, the following...
Windows PowerShell Blog
Are ScriptBlock parameters implemented for functions?
Posted
over 6 years ago
by
PowerShell Team
0
Comments
PSMDTAG:FAQ: Are ScriptBlock parameters implemented for functions? Not in V1. Functions do not use the same parameter binding mechanism as Cmdlets. This is something we intent to address in a future release. -- Jeffrey Snover [MSFT] Windows PowerShell...
Windows PowerShell Blog
Revisiting: Listing all the COM automation PROGIDs
Posted
over 6 years ago
by
PowerShell Team
3
Comments
In the blog entry Listing all the COM automation PROGIDs http://blogs.msdn.com/powershell/archive/2006/06/29/650913.aspx . I showed how you could use the registry to get all the progids that you can use for COM automation. Here is a way to do the same...
Windows PowerShell Blog
How can a script tell what directory it was run from?
Posted
over 6 years ago
by
PowerShell Team
2
Comments
PSMDTAG:FAQ: How can a script determine what directory it was invoked from? PSMDTAG:FAQ: What is $MyInvocation? PSMDTAG:FAQ: Why is $MyInvocation.ScriptName empty? Create 2 scripts (First.PS1 and Second.PS1) to explore what is going on with $MyInvocation...
Windows PowerShell Blog
Use of Preference Variables to control behavior of streams
Posted
over 6 years ago
by
PowerShell Team
0
Comments
PSMDTAG:FAQ: Why don't I see output when I use Write-Verbose and Write-Debug? PSMDTAG:SHELL: Use of Preference Variables to control behavior of streams. In Windows PowerShell, the WRITE-XXX cmdlets merely sends things to a Named stream. You then have...
Windows PowerShell Blog
Perserving Command History Across Sessions
Posted
over 6 years ago
by
PowerShell Team
25
Comments
<Edited 7/2/2006 to add tags and Categories> Ben Winzenz didn't like the fact that Windows PowerShell did not maintain history lists between sessions ( http://winzenz.blogspot.com/2006/06/cool-mshpowershell-tidbit.html ) . We hear you Ben. Back...
Page 1 of 1 (20 items)