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
Découvrez Windows Powershell. Depuis plusieurs années, les versions de Windows intègrent le langage PowerShell nativement. Celui-ci est devenu au fil du temps bien plus qu’un “simple” 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
Over time, user and computer accounts become obsolete and needs elimination. This script will check user accounts in a specific Organizational Unit and remove the 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