Category: Powershell

PowerShell Get-AdComputer Cmdlet

Windows PowerShell Get-AdComputer -filter If you are new to PowerShell’s active directory family of cmdlets, then before you try AdComputer I recommend you start by mastering the basics of Get-AdUser. Topics PowerShell Get-Computer -filter Preparation: Checklist for Get-AdComputer Example 1: Get-AdComputer -filter Example 2: Get-AdComputer {Complex filter with brackets} Example …

PowerShell and Performance Monitoring

PowerShell, Disks and Perfmon I will guide you through integrating pure PowerShell cmdlets with WMI classes that specialise in performance measurements. Topics for PowerShell and Perfmon Our Mission Example 1: Research WMI’s Classes for PerfDisk Counters Example 2: Win32_PerfRawData_PerfDisk_LogicalDisk Example 3: Preliminary Script to Get to Know PerfDisk  ♣ Our …

PowerShell – Delete Temporary Files

How to Delete Temporary Windows Files with PowerShell These scripts are designed to delete temporary files under the windir folder.  I have other scripts to delete the internet temporary files. The teaching highlights are Remove-Item’s use of the -Recurse and -Force parameters. Topics – Delete Windows Temporary Files Using PowerShell …