Skip to main content

Powershell-tutorials Articles

Master PowerShell with this comprehensive 15,000-word guide. Learn PowerShell fundamentals, cmdlets, scripting, automation, Active Directory management, and advanced techniques with 100+ practical examples.

powershell powershell tutorial windows automation scripting powershell cmdlets powershell for beginners powershell active directory windows server automation
Read more

The try, catch and finally blocks provides a structured approach to error handling in PowerShell, enabling you to handle errors and ensure your scripts remain robust and reliable.

powershell error-handling try-catch scripting exception
Read more

PowerShell's Add-Member cmdlet is a powerful tool that enables you to add custom members such as properties and methods to existing object. This allows you to extend the functionality or properties of objects dynamically.

powershell add-member cmdlet objects properties
Read more

The Add-Type cmdlet in PowerShell adds a Microsoft .NET class to a PowerShell session. It lets you define a Microsoft .NET Core class in your PowerShell session.

powershell add-type cmdlet dotnet classes
Read more

This tutorial explains how to get file hash in PowerShell. Get-FileHash cmdlet calculates the hash value of file by using the hash algorithm.

powershell file hash sha256 security
Read more

To get file owner using PowerShell, you can use the Get-Acl or Get-Item cmdlets. These commands retrieve the Access Control List (ACL) of a file or directory and then access the Owner property.

powershell get-acl get-item file owner acl
Read more