PowerShell Comments Multiple lines

A comment is an important part of development through comments we determine what the program is doing. By placing human-readable comments others can also understand and maintain the program. In this article, I will show you how to use PowerShell comments multiple lines as well as single lines.   PowerShell Comments Multiple Lines – PeopleA comment is an important part of development through comments we determine what the program is doing. By placing human-readable comments others can also understand and maintain the program. In this article, I will show you how to use PowerShell comments multiple lines as well as single lines.   PowerShell Comments Multiple Lines – People […]

Read More…

Copy a file using PowerShell

In this tutorial, I show you how you can copy a file using PowerShell from one location to another location. I also show you how to copy a file to multiple servers using PowerShell. Copy a file using PowerShell from one location to another The copy-item cmdlet is used to copy an item or fileIn this tutorial, I show you how you can copy a file using PowerShell from one location to another location. I also show you how to copy a file to multiple servers using PowerShell. Copy a file using PowerShell from one location to another The copy-item cmdlet is used to copy an item or file […]

Read More…

String in PowerShell- Compare, Concatenates, LastIndexOf

In this tutorial, we learn how to use different string manipulation methods used in PowerShell. Using these methods string in PowerShell can be converted or changed to the desired output. Below is the list of all string methods used by PowerShell. The string is one of the datatypes used in PowerShell it is nothing butIn this tutorial, we learn how to use different string manipulation methods used in PowerShell. Using these methods string in PowerShell can be converted or changed to the desired output. Below is the list of all string methods used by PowerShell. The string is one of the datatypes used in PowerShell it is nothing but […]

Read More…

How to Write PowerShell Output to file

In this tutorial, I show you how we can save command prompt or PowerShell script output to text or a .csv file.

Both text file and .csv file is a very common file type to exchange data.

In this tutorial, I show you how we can save command prompt or PowerShell script output to text or a .csv file.

Both text file and .csv file is a very common file type to exchange data.

[…]

Read More…

PowerShell Array

Like any other programming language, the array is a type of data structure that can be used to store a collection of items of similar type but unlike any strongly typed language such as C, C# or java in PowerShell it’s not mandatory to specify the data type of array, the collection of items canLike any other programming language, the array is a type of data structure that can be used to store a collection of items of similar type but unlike any strongly typed language such as C, C# or java in PowerShell it’s not mandatory to specify the data type of array, the collection of items can […]

Read More…

PowerShell Newline

Sometimes when you work on PowerShell this question arrives, “how can I use Windows PowerShell to add a new line between lines for my text output?” The answer is simple you have to use `n (backtick with letter n) this will add Line break or Newline in PowerShell. PowerShell Newline in String Output Below example,Sometimes when you work on PowerShell this question arrives, “how can I use Windows PowerShell to add a new line between lines for my text output?” The answer is simple you have to use `n (backtick with letter n) this will add Line break or Newline in PowerShell. PowerShell Newline in String Output Below example, […]

Read More…