Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Blog - Title
MSDN Blogs
>
Windows PowerShell Blog
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
Variable expansion in strings and here-strings
Posted
over 7 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
PowerShell Cheat Sheet
Posted
over 6 years ago
by
PowerShell Team
39
Comments
Ben Pearce was gracious enough to put together a good looking PowerShell Cheat Sheet which I've included as an attachment to this blog post. By definition, a cheat sheet is incomplete so this contains the things that Ben has found to be the most import...
Windows PowerShell Blog
Bash vs PowerShell
Posted
over 5 years ago
by
PowerShell Team
39
Comments
Marcus Nasarek did a nice comparison of Bash vs PowerShell in Linux magazine HERE . It is only 2 pages but he covers the key elements and has been very fair to it. I appreciate the fact that he took the time to clearly understand PowerShell. In the past...
Windows PowerShell Blog
Managing Server Features with PowerShell Cmdlets on Windows 2008 Server R2 Beta
Posted
over 4 years ago
by
PowerShell Team
25
Comments
If you have used Windows Server 2008, probably you had experience with managing server features. Server Manager is a traditional way to install/uninstall server features. On Windows 2008 Server R2 Beta , Windows PowerShell provides a new approach to managing...
Windows PowerShell Blog
Get-ScriptDirectory to the Rescue
Posted
over 6 years ago
by
PowerShell Team
12
Comments
The other day I was writing a script and decided that I wanted to break it into a couple of files and have the main script dot-source a library script in the same directory. Here is the problem that I ran into: PS> Get-ChildItem Directory: Microsoft...
Windows PowerShell Blog
Remoting with PowerShell QuickStart
Posted
over 5 years ago
by
PowerShell Team
27
Comments
PowerShell V2 introduces a new capability which allows you to remotely manage machines in your organization. I will give a basic overview of PowerShell remoting here and follow it up with some adavanced topics later. Are you ready for the fun.. A remote...
Windows PowerShell Blog
PowerShell on Linux, Solaris, Mac, PHONES!!! etc
Posted
over 5 years ago
by
PowerShell Team
24
Comments
Igor Moochnick announced the first release of PASH , an open source implementation of PowerShell. (I tripled check the date on his blog to make sure it really said April 6th and not April 1st. :-) ). This is really exciting stuff. This...
Windows PowerShell Blog
New-Object PSObject –Property [HashTable]
Posted
over 4 years ago
by
PowerShell Team
22
Comments
Let me start of by suggesting you take a few minutes and read Laerte Junior’s excellent blog entry Exceptional PowerShell DBA Pt1 Orphaned Users . Laerte does a great job describing the scenario, the approach he took to solving it and then he included...
Windows PowerShell Blog
PowerShell Integration Into Visual Studio
Posted
over 3 years ago
by
PowerShell Team
7
Comments
Quest has released a beta of PowerGUI Visual Studio (aka PowerGUI VSX). Check out Kirk Munro’s blog entry HERE for more details. Check out this screenshot: I can’t wait to install it and kick the tires! Jeffrey Snover [MSFT] Distinguished...
Windows PowerShell Blog
Windows Management Framework 3.0 Community Technology Preview (CTP) #1 Available for Download
Posted
over 2 years ago
by
PowerShell Team
32
Comments
Windows Management Framework 3.0 CTP1 makes some updated management functionality available to be installed on Windows 7 SP1 & Windows Server 2008 R2 SP1. Windows Management Framework 3.0 contains Windows PowerShell 3.0, WMI & WinRM. Windows PowerShell...
Windows PowerShell Blog
ErrorLevel equivalent
Posted
over 7 years ago
by
PowerShell Team
7
Comments
PSMDTAG:FAQ: ErrorLevel - what is the PowerShell equivalent? In Cmd.exe, %ErrorLevel% is a builtin variable which indicates the success or failure of the last executable run. In PowerShell, we support: $? Contains True if last operation succeeded...
Windows PowerShell Blog
Using PowerShell to Generate XML Documents
Posted
over 6 years ago
by
PowerShell Team
8
Comments
<Note - the scripts and datafiles used in this blog entry are attached as a zip file> A number of scenarios require the creation of XML documents. This blog shows you how you can use PowerShell scripts to easily create XML Documents. Here...
Windows PowerShell Blog
Active Directory Cmdlets
Posted
over 6 years ago
by
PowerShell Team
13
Comments
More great cmdlets from our partners. Quest Software , known for its ActiveRoles Server and PowerGUI , is offering its new Active Directory cmdlets to the community free of charge. To get them, click: PowerShell Cmdlets for Active Directory . ...
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
The Wonders of Date Math using Windows PowerShell
Posted
over 7 years ago
by
PowerShell Team
10
Comments
Larry Hayden posted a query about dates at: http://techtasks.com/bookmarks/powershell/2006/09/interview-with-a-scripter-jeffrey-snover/ He has a script which gets all the Application Events that happened TODAY: ———————————————————— $today = [DateTime...
Windows PowerShell Blog
Windows PowerShell One Liner: Name to IP Address
Posted
over 7 years ago
by
PowerShell Team
18
Comments
<Edited 7/2/2006 to add tags and category> Wei Wu provided a nice one liner in response to a query in our NewsGroup: Microsoft.Public.Windows.PowerShell about how to resolve a hostname into an IP Address: PS> [ System.Net.Dns]::GetHostAddresses...
Windows PowerShell Blog
Renaming Files
Posted
over 6 years ago
by
PowerShell Team
14
Comments
Let's have a little fun with Rename-Item: [3112:0]PS> dir Directory: Microsoft.PowerShell.Core\FileSystem::C:\temp\jps Mode LastWriteTime Length Name ---- ------------- ------ ---- -a--- 3/5/2007...
Windows PowerShell Blog
DateTime Utility Functions
Posted
over 7 years ago
by
PowerShell Team
6
Comments
I often want to find things that happened Today. For instance, which files got changed today. Windows PowerShell makes this easy to do but it can be a bit verbose and I do it a lot so I've added a function to my profile: IsToday. function isToday ...
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
Managing Active Directory with Windows PowerShell
Posted
over 7 years ago
by
PowerShell Team
14
Comments
MOW is now posting the details of his Managing Active Directory with Windows PowerShell demo that he performed at my TechEd talk. This is worthwhile for everyone to review. For the people at the talk, we covered a huge amount of data in a very short time...
Windows PowerShell Blog
Sending Automated emails with Send-MailMessage, ConvertTo-HTML, and the PowerShellPack’s TaskScheduler module
Posted
over 4 years ago
by
PowerShell Team
5
Comments
On October 15th I released a large collection of scripts called the PowerShellPack . The PowerShellPack has tons of PowerShell V2 scripts that can be used to do all sorts of fun and practical things. Today, we’ll show how to use a module in...
Windows PowerShell Blog
Windows Server 2003 SP2 upgrade
Posted
over 6 years ago
by
PowerShell Team
26
Comments
Because of the nature of the Windows Service pack (SP) releases, all the windows updates are consumed by SP upgrade. So once you upgrade to a new SP all the updates that were installed earlier cannot be uninstalled. Since Windows PowerShell is released...
Windows PowerShell Blog
Windows PowerShell (Monad) Has Arrived
Posted
over 7 years ago
by
arulk
33
Comments
I just got out of Bob Muglia's keynote speech where he formally announced Windows PowerShell (previously known as Monad). The key things he announced are: Monad (MSH) has a new name: Windows PowerShell Windows PowerShell will RTW (Web download...
Windows PowerShell Blog
Supporting -Whatif, -Confirm, -Verbose – In SCRIPTS!
Posted
over 6 years ago
by
PowerShell Team
11
Comments
<This is a super-important issue so you should definitely start using this in your scripts that you share with others (that have side effects on the system). Please try it out and blog about it to others so that it becomes a community norm. Thanks...
Windows PowerShell Blog
Block Comments in V2
Posted
over 5 years ago
by
PowerShell Team
4
Comments
Smith Catar was looking at my Tech Ed demos and noticed that I used block comments. These are not in the CTP that you have so I guess I sorta let this one leak out. Yes - V2 will have BLOCK COMMENTS!!! Block comments start with "<# and end with...
Page 2 of 36 (889 items)
1
2
3
4
5
»