How to Use PowerShell new-item to Create Files and Directories?

PowerShell new-item

Recently, while working on a project for a client in San Francisco, I needed to automate the creation of multiple directories and files for a large-scale data migration. We can do this by using the PowerShell new-item cmdlet. In this tutorial, I will explain how to use the New-Item cmdlet in PowerShell to create files … Read more

PowerShell Test-Path [With Examples]

PowerShell Test-Path

Today, I will explain how to work with test-path in PowerShell. As a developer, you mostly use this cmdlet when working with files and folders in PowerShell. In this tutorial, I will explain the PowerShell test-path with various real examples. To check if a specific path exists in PowerShell, use the Test-Path cmdlet. By executing … Read more

PowerShell Select-Object -First [With Examples]

PowerShell Select-Object -First

In this tutorial, I will explain how to work with the -First parameter of the PowerShell Select-Object cmdlet with some examples. PowerShell Select-Object -First The Select-Object cmdlet in PowerShell is used to select specific properties of an object or set of objects. It’s incredibly versatile, allowing you to filter and format data efficiently. One of … Read more

PowerShell Select-Object -Unique [With Examples]

PowerShell Select-Object -Unique

In this tutorial, I will explain how to work with PowerShell Select-Object -Unique especially how to use Select-Object -Unique to filter out unique objects in your data sets. To filter unique objects in PowerShell using the Select-Object -Unique cmdlet, you can streamline your data by specifying the property you want to ensure is unique. For … Read more

PowerShell Select-Object Without Header

powershell select-object no header

As a PowerShell developer, I often need to format output in a specific way. One common requirement is using the Select-Object cmdlet without including the header in the output. If you’re working on a script that outputs data to a file or console, you might want to remove these headers. In this tutorial, I will … Read more

PowerShell Select-Object [With Examples]

PowerShell Select-Object

As a PowerShell developer, you should know how to use the PowerShell Select-Object cmdlet. In this tutorial, I will explain the cmdlet’s syntax and provide a few examples. The Select-Object cmdlet in PowerShell allows you to filter and select specific properties from objects. For example, if you want to display only the process name and … Read more

PowerShell Copy-Item [With Examples]

PowerShell copy-item

If you work in the IT sector in the USA, then you will mostly use PowerShell to automate various administrative tasks. In today’s tutorial, I will explain various useful cmdlets, such as PowerShell Copy-Item. You will understand how to use the Copy-Item PowerShell cmdlet with various examples. To copy files in PowerShell, you can use … Read more

PowerShell Write-Output [With Examples]

PowerShell write-output

As a PowerShell developer, you should know how to use the Write-Output cmdlet, which allows you to send objects to the pipeline. In this tutorial, I will explain how to use the PowerShell Write-Output cmdlet with examples. The Write-Output cmdlet in PowerShell is used to send objects to the pipeline to pass data between cmdlets … Read more

PowerShell Write-Host vs Out-Host

PowerShell Write-Host vs Out-Host

One of my team members recently asked about the differences between Write-Host and Out-Host in PowerShell. As a PowerShell developer, you should know when to use which cmdlet. In this tutorial, I will explain everything about PowerShell Write-Host vs Out-Host with examples. What is Write-Host in PowerShell? Write-Host is a cmdlet in PowerShell used to … Read more

PowerShell Write-Host vs Write-Verbose

PowerShell Write-Host vs Write-Verbose Differences

As a PowerShell developer, you should know the difference between Write-Host and Write-Verbose when scripting. Both cmdlets have distinct purposes and are used in different contexts. In this tutorial, I will show the difference between PowerShell Write-Host and Write-Verbose. What is Write-Host in PowerShell? Write-Host in PowerShell displays output directly to the console. Any other … Read more

100 PowerShell cmdlets download free

100 POWERSHELL CMDLETS E-BOOK

FREE Download an eBook that contains 100 PowerShell cmdlets with complete script and examples.