Wednesday, April 9, 2014

PowerShell - Tips, Tricks and Useful Commands

Tip #4 –


 

#4

  
  
  
  
  


 

Tip #3 – Comparison Operators

Published date - May12, 2013

-eq


 

-ne


 

-gt


 

-ge   


 

-lt


 

-le


 

-Like


 

-NotLike


 

-Match


 

-NotMatch


 

-Contains


 

-NotContains


 

-In


 

-NotIn


 

-Replace


 





.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

 
 


 

More info - http://technet.microsoft.com/en-us/library/hh847759.aspx


 

#2 Logical Operators
Published date - April 11, 2013

 

-and         

Logical AND

-or         

Logical OR

-xor         

Logical XOR

-not         

Not equal to

!            

Not equal to


 

More info - http://technet.microsoft.com/en-us/library/hh847789.aspx

#1 Special Characters – Published Date - April 9, 2013

PoweShell supports the following special characters:

 

`0

Null

`a

Alert

`b

Backspace

`f

Form feed

`n

New line

`r

Carriage return

`t

Horizontal tab

`v

Vertical tab

--%

Stop parsing


 

More info - http://technet.microsoft.com/en-us/library/hh847835.aspx

http://www.amazon.com/dp/1849687447/?tag=packtpubli-20

0 comments:

Post a Comment

Popular Posts

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More