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…

PowerShell Variables

Variables are the smallest unit of any program or script it saved data in memory. All the programming languages used variables to load some data. A variable in PowerShell begins with “$” (dollar symbol) and its name can contain any letters, numbers, and underscores. To assign a value to a variable, the “=” operator isVariables are the smallest unit of any program or script it saved data in memory. All the programming languages used variables to load some data. A variable in PowerShell begins with “$” (dollar symbol) and its name can contain any letters, numbers, and underscores. To assign a value to a variable, the “=” operator is […]

Read More…