PowerShell

PowerShell – How to unzip files?

In our previous article, we have discussed about zip / compress the selected files or directories using PowerShell Compress-Archive cmdlet. Through this article, we are going to discuss how to unzip the zipped files. Expand-Archive cmdlet – Unzip files from Archived file(s) PowerShell provides Expand-Archive cmdlet to unzip the zipped files. Through its -Path argument […]

Powershell – How to zip / compress / archive selected files or directories?

Windows PowerShell provides commands to zip (compress) and unzip the files. Through this article, we are going to discuss the PowerShell command to zip the selected files or directories. Compress-Archive cmdlet – Compress / Zip / Archive the selected files or directories PowerShell provides Compress-Archive cmdlet, to archive the specified files or directories. We can […]

PowerShell – Containment operators

PowerShell containment operators are used to verify whether the given value is available in the given input values. These operators always return the boolean value; True or False. Below are the containment operators PowerShell provides, and these take 2 or more operands; left-side operands hold the input value and the right-side operand is for the […]

PowerShell – Operator Precedence

We use Arithmetic Operators in the expressions to calculate numeric values. PowerShell processes these expressions from left to right, and depending on the order of precedence expressions are evaluated. Operators who have higher precedence will evaluate first. To understand operator precedence, let’s take a simple arithmetic expression; 3+4/7*10-2%3+20 When we evaluate the above expression from […]

PowerShell – Exception handling

PowerShell provides exception handling mechanism to enable to deal with the exceptions raised during the script execution. Known or expected errors, we commonly handle using Error handling mechanism; where mostly we use if statement to meet certain criteria and the change the flow of execution depends on the result of the conditional statement. Exceptional handling […]

PowerShell – How to access Clipboard?

Clipboard is a buffer in computer memory, allows the applications to copy and retrieve the temporary data.  Most of the applications provides the Clipboard feature to share the temporary data across the applications. Most common way we can use the Clipboard is using cut, copy and paste commands.  PowerShell provides cmdlets to use the Clipboard. […]

Scroll to top
Exit mobile version