Our Newsletter


Subscribe to our Newsletter and we'll keep you notified of new products, giveaways and discounts.

We respect your email privacy and will never sell or share your details with anyone.


Knowledgebase Home | Glossary | Favorites | Contact | Login Knowledgebase Home | Glossary | Favorites | Contact | Login
Search the Knowledgebase Browse by Category
Windows PowerShell Operators
Article Details

Last Updated
23rd of February, 2009

User Opinions (0 votes)
No users have voted.

How would you rate this answer?
Helpful
Not helpful
The following Operators are available in the Windows PowerShell: Assignment Operators

Operator
Description
 
=
Sets a value of a variable to the specified value
+=
Increases the value of a variable by the specified value or appends to the existing value
-=
Decreases the value of a variable by the specified value
*=
Multiplies the value of a variable by the specified value or appends to the existing value
/=
Divides the value of a variable by the specified value
%=
Divides the value of a variable by the specified value and assigns the remainder (modulus) to the variable


Logical Operators

Operator
Description
 
-and
All expressions must evaluate as TRUE
-or
At least one expression must evaluate as TRUE
-not
Evaluates the inverse of one of the expressions
!
Evaluates the inverse of one of the expressions (The same as -not)


Bitwise Operators

Operator
Description
 
-band
Binary And
-bor
Binary Or
-bnot
Binary Not


Special Operators

Operator
Description
 
-replace
Replace
-ireplace
Case-insensitive replace
-creplace
Case-sensitive replace


Comparison Operators

Operator
Description
 
-eq
Equals
-ne
Not Equal
-gt
Greater Than
-ge
Greater Than or Equal To
-lt
Less Than
-le
Less Than or Equal To






       
 
  For more information about PowerShell, check out our Windows PowerShell Training Videos
 
  Windows PowerShell Training Videos
 
       



Visitor Comments
No visitor comments posted. Post a comment
Post Comment for "Windows PowerShell Operators"
To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Your Name:
   Email Address:
* Your Comment:
* Enter the code below:
 
Related Articles
No related articles were found.
Attachments
No attachments were found.