A list of common PowerShell commands for AD. Retrieve AD users(s) Check AD User Existence Retrieve AD Security Groups Modify AD Security Groups AD Cleanup FSMO Roles GPO Retrieve AD […]
An easy way to enable AD object inheritance using Powershell. This can be used for enabling (or disabling) inheritance on multiple AD objects. #$users = Get-ADUser -ldapfilter “(objectclass=user)” -searchbase “DC=domain,DC=local” […]
Getting your public IP address programmatically can be very useful. Especially if you need to know when your internet service provider (ISP) has changed your dynamic IP address. Here is […]
Quick Code Summary Get-WmiObject -ComputerName “localhost” Win32_Quickfixengineering | select @{Name=”InstalledOn”;Expression={$_.InstalledOn -as [datetime]}} | Sort-Object -Property Installedon | select-object -property installedon -last 1 Sometimes you may need to know a […]