Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Blog - Title
April, 2006
MSDN Blogs
>
Windows PowerShell Blog
>
April, 2006
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
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
Presentation
Quest
Remoting
Sapien
TechED
Windows Server 2012
WMI
WPF
More
▼
Less
▲
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
▲
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Windows PowerShell Blog
Managing non-terminating errors
Posted
over 7 years ago
by
PowerShell Team
3
Comments
Most errors which occur in your working scripts are likely to be "non-terminating". This means that Monad just reports the error and the command keeps running. ("Terminating" errors such as syntax errors will halt the command and, in some cases, the entire...
Windows PowerShell Blog
Getting MSDN help urls for .NET BCL types and Members
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Often when playing with .Net objects in Monad, I need to use MSDN class library reference to learn how to use a particular type and its members. Now, I have my bookmarks and favorite search engine but I always thought it would be cool if get-member cmdlet...
Windows PowerShell Blog
Check Spelling Script
Posted
over 7 years ago
by
PowerShell Team
0
Comments
After reading Marcel's introductory piece on ScriptBlock, I decided to rewrite an old script of mine that checks the spelling of all text files in a directory. Here is what I came out with. #region Parse a line to a list of words $StringFind = ...
Windows PowerShell Blog
Finding out what determines which properties are displayed
Posted
over 7 years ago
by
PowerShell Team
2
Comments
MoW, a Monad newsgroup regular, asked why only the Caption, Name and PeakUsage properties were displayed from the command “get-WMIObject Win32_PageFileUsage” while the output object had a lot more properties. I think it is worth it to explain in details...
Windows PowerShell Blog
GetObject()
Posted
over 7 years ago
by
PowerShell Team
4
Comments
Monad provides a way to create new com objects with new-object $ie = New-Object -ComObject InternetExplorer.Application $ie.Navigate2( http://blogs.msdn.com/monad ) $ie.Visible=1 Great but what about if you want to bind to an existing object? Where...
Windows PowerShell Blog
Base64 Encode/Decode a string
Posted
over 7 years ago
by
PowerShell Team
5
Comments
Today I came across http://scripts.readify.net/ . This sight is focused on Monad and MSH and is starting a collection of scripts at: http://scripts.readify.net/Scripts.aspx . You should visit their site and let them know what type of scripts would be...
Windows PowerShell Blog
Monitor the Event Log
Posted
over 7 years ago
by
PowerShell Team
1
Comments
Administrators often want to monitor the event logs and look for specific error conditions. The most capable way to do this, of course, is to use a dedicated monitoring application such as Microsoft Operations Manager , or get down-and-dirty with the...
Windows PowerShell Blog
Verb-Noun vs Noun-Verb
Posted
over 7 years ago
by
PowerShell Team
2
Comments
Kurt asked the question "why not Noun-Verb vs Verb-Noun" in his post: http://blogs.msdn.com/monad/archive/2006/02/16/533522.aspx#574708 There are lots of answers to this some better than others. Let me rattle off a couple of them: VMS DCL/AS400...
Windows PowerShell Blog
Is it safe to use ALIASES in scripts?
Posted
over 7 years ago
by
PowerShell Team
1
Comments
In our newsgroup (Microsoft.Public.Windows.Server.Scripting) , Mark Ayers asked the question: > Shouldn't best practice for scripts be full command name? The answer is YES, NO, and MAYBE. YES - Full names provide the most readable experience...
Windows PowerShell Blog
How does Select-String work with Pipelines of objects?
Posted
over 7 years ago
by
PowerShell Team
4
Comments
<Edited to convert Match-String to Select-String 7/9/2006> In our newsgroup (Microsoft.Public.Windows.Server.Scripting) , Vasu asked about how Select-string works in pipelines: Here is what I observe: 1. MSH C:\> get-alias ..truncated...
Windows PowerShell Blog
Sunday morning drive with my hair on fire: Types/Community/Synthetic types/Democracy/Cool XML tricks
Posted
over 7 years ago
by
PowerShell Team
1
Comments
Exploring types is a pain! Monad provides Get-Member which makes it pretty nice to explore an OBJECT but if you want to explore that object's type, you have to use the capabilities of the System.RuntimeType class. Let me make that distinction a...
Windows PowerShell Blog
Why did you do that? $VAR/ {} / Weak Intellisense
Posted
over 7 years ago
by
PowerShell Team
1
Comments
I strongly encourage people to let us know where we could be doing better and to let us know if we are getting into the weeds. I believe that being open to such bad news is core to the the virtuous cycle of self improvement so such feedback provides opportunities...
Windows PowerShell Blog
Comparative Examples in MSH and KSH
Posted
over 7 years ago
by
PowerShell Team
53
Comments
M ost shells (such as Windows CMD.EXE and the UNIX shells SH, KSH, CSH, and BASH) operate by executing a command or utility in a new process, and presenting the results (or errors) to the user as text. Text-based processing is the way in which system...
Windows PowerShell Blog
Working with Sort-Object Cmdlet
Posted
over 7 years ago
by
PowerShell Team
1
Comments
In this blog I will try to explain different features of sort-object(Sort) cmdlet. For the purpose of this blog, I assume the following objects exist: MSH C:\temp\monad> $a,$b,$c,$d Score Name ----- ---- 100 John 90 Henry 90...
Windows PowerShell Blog
A bit about Scriptblocks
Posted
over 7 years ago
by
PowerShell Team
0
Comments
When scripting with MSH one of the most useful things to know about are scriptblocks (lambda functions). Scriptblocks are compiled bits of MSH script which you can pass around and invoke whenever you feel like it. They turn out to be so useful that if...
Windows PowerShell Blog
Monad portal in Script Center.
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Most scripters are familar with Microsoft script center. Script center now has a portal for Microsoft Command Shell. You can access the portal at http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx -Arul Kumaravel [ Edit: Monad has now been...
Windows PowerShell Blog
PINVOKE or accessing WIN32 APIs
Posted
over 7 years ago
by
PowerShell Team
7
Comments
In the very early days of Monad, we focused on a world where everyone would publish Cmdlets and providers. Cmdlets and providers were designed around providing the best user experience. They provide the right, high-level, task-oriented abstractions that...
Windows PowerShell Blog
Using-Culture -Culture culture -Script {scriptblock}
Posted
over 7 years ago
by
PowerShell Team
6
Comments
One of the traditional challenges with scripting is dealing with different CULTURES. Imagine the case where you are writing a script and you'll have to parse datetime string from different cultures. If it was just one culture, you could set the process...
Windows PowerShell Blog
Debugging Monad Scripts, Part 7 (Final): How Traps Work
Posted
over 7 years ago
by
PowerShell Team
1
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 5: Preferences and Commandline Options
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 6: Trace-Expression, Breakpoint Script
Posted
over 7 years ago
by
PowerShell Team
3
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 4: set-mshdebug
Posted
over 7 years ago
by
PowerShell Team
1
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 2: $error
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 3: Write-Host
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Windows PowerShell Blog
Debugging Monad Scripts, Part 1: Teminating vs. Non-Terminating, ErrorRecord
Posted
over 7 years ago
by
PowerShell Team
0
Comments
Did your command or script fail and/or report an error? We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong. In this series of blog entries, I will present some...
Page 2 of 3 (62 items)
1
2
3