Site icon Dotnet Helpers

Powershell

1005, 2018

Difference between write-host and write-output in powershell

By |Tags: , , , , , , , , |1 Comment

One of the great benefits of PowerShell is its pipeline mechanics that enable the output of one command to be passed to the next command in the pipeline. That output is not sent as basic

905, 2018

How to Append Data to a Text File Using PowerShell

By |Tags: , , , , , , , , , , , , |0 Comments

 Here’s we can discuss on how to add text to the end of a text file using the Add-Content cmdlet using PowerShell.  In our example let’s add "This is the last line" to the end of a

1604, 2018

How to Delete a Folder or File using PowerShell

By |Tags: , , , , , , , , |0 Comments

Use PowerShell to Delete a Single File or Folder Before start executing the Delete powershell command we need to make sure you are logged in to the server or PC with an account that has

2702, 2018

Powershell : How to Compare Two Files, and List Differences

By |Tags: , , , , , , , , , , , , |1 Comment

What is Compare-Object cmdlet do? The Compare-Object cmdlet compares two sets of objects. One set of objects is the "reference set," and the other set is the "difference set". The below format will be out

1002, 2018

Power Shell – Containment Operators

By |Tags: , , , , , , , , , |1 Comment

Power Shell Containment Operators The containment operators (-contains and -notcontains) are similar to the equal operators. However, the containment operators always return a Boolean value, even when the input is a collection. The conditional operator -Contains

2901, 2018

PowerShell : Do-While & Do-Until Loop

By |Tags: , , , , , , , |1 Comment

Do-While & Do-Until Loop in PowerShell Loops are an essential construct in any programming language as they enable a block of code to be repeatedly executed based on the condition. This can be useful for

Exit mobile version