Month: December 2014

Cloning NTFS Permissions

All PowerShell Versions Here is some simple code that reads the NTFS permissions from one folder and applies the exact same settings to another....

read more

Using WMI Inheritance

All Versions WMI classes are inherited from each other, and that’s something you can take advantage of. Take this line: PS> Get-WmiObject...

read more

Finding Process Owners

All PowerShell versions To find out who owns a particular process and how many instances are running, try this simple piece of code: $ProcessName =...

read more

Parsing DISM Log File

PowerShell 2.0 and later In your Windows folder, you find all kinds of system log files. One is DISM.log which contains information about the...

read more

Removing AD Group Members

Module ActiveDirectory To remove one or many users from an Active Directory group, try this approach: $user = @() $user += Get-ADUser -Filter { Name...

read more