
PoshTip #29 – How to count objects in PowerShell?
PoshTip #29 – How to count objects in PowerShell? The Measure-Object cmdlet gives us a great way to count objects. For example, if we want to count Read More
PoshTip #29 – How to count objects in PowerShell? The Measure-Object cmdlet gives us a great way to count objects. For example, if we want to count Read More
PoshTip #28 – Generate Random Passwords First, import the System.Web assembly: Add-Type -AssemblyName System.Web and use the GeneratePassword function: [System.Web.Security.Membership]::GeneratePassword(10,5) GeneratePassword(x,y) x=Password length y=Number of Read More
PoshTip #27 – Get Inactive User Accounts in Active Directory Inactive Active Directory user accounts can pose a security risk to your organization. You can query Read More
PoshTip #26 – Get a list of AD Organizational Units First, you need to import the Active Directory module: Import-Module ActiveDirectory Now you can use Read More
PoshTip #25 – Get the PowerShell Execution Policy One of the first steps is to correctly select the Execution Policy. Windows Powershell has six different execution policies Read More
PoshTip #24 – How to know the state of your laptop battery? Many informations are included in WMI. Here, we will use the Win32_Battery class to Read More
PoshTip #23 – How to get your ip address? PowerShell is a great way to retrieve your IP Address, especially in a script. You can use Read More
PoshTip #22 – How to kill a process? You can use PowerShell to kill a Windows process if the Windows service is not responding. First, you Read More
PoshTip #21 – Read a CSV file with PowerShell The Import-CSV cmdlet is used to load a CSV file. The input data is transformed into an Read More
PoshTip #20 – View the PowerShell commands history PowerShell stores a cache of recent commands executed in the current PowerShell session. If you close the Read More