Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » FAQ » PHILOSOPHY   (RSS)

Encoding Operations Knowledge

One of the primary goals of Windows PowerShell is to encode operations knowledge. Consider the example of finding out what domain role a computer plays. If you look at the WMI class WIN32_COMPUTERSYSTEM, you'll see that it tells you this information:

Managing Active Directory with Windows PowerShell

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
Posted by PowerShellTeam | 12 Comments
Filed under: ,

Flexible pipelining with ScriptBlock Parameters

PSMDTAG:FAQ: How can I pipeline data to a parameter which does not accept pipeline input? PSMDTAG:FAQ: What are ScriptBlock Parameters? One of the foundation concepts of Windows PowerShell is pipelining objects instead of text. What happens is that when
Posted by PowerShellTeam | 10 Comments
Filed under: , ,

More - How does PowerShell formatting really work?

<Edited 7/2/2006 with tags and categories> PSMDTAG:FAQ: Why doesn't output expand when I expand the width of the console? PSMDTAG:FAQ: Why doesn't output expand when I use -noElements on GROUP? Consider the example: PS> gps |group company Count

$ERRORVIEW="CATEGORYVIEW"

<Edited 7/2/2006 with tags and categories> PSMDTAG:FAQ: What is $ErrorView? PSMDTAG:FAQ: How do I get error details? Have you tried out $ErrorView="CategoryView" yet? Remember - errors are just objects. Given that they are objects, we render a subset
Posted by PowerShellTeam | 3 Comments
Filed under: , ,

Programmatic way to get valid string values for a parameter

<WIZARD WARNING> ISVs and Tool vendors may find this important, Advanced users may find this interesting, Casual users may want to skip this. Someone asked me if there was a programmatic way to tell what the legal values for a string parameter to
Posted by PowerShellTeam | 0 Comments
Filed under: , ,

Base64 Encode/Decode a string

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

How does Select-String work with Pipelines of objects?

<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.. Alias

Why did you do that? $VAR/ {} / Weak Intellisense

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
Posted by PowerShellTeam | 1 Comments
Filed under: ,
 
Page view tracker