Password Last set & expire Date

Want to know when is the password last set for the particular user? Want to know when the password will expire for the user? Simply log on to domain controller & issue net user command. For example: net user vikas User name                    vikas Full Name                    vikas Comment User’s comment Country code                 (null) Account active               Yes…

Dynamic Distribution Groups in bulk using powershell

Here is a small script written by me for creating  Dynamic Distribution Groups in bulk using powershell #import csv file (script.ps1  csv file) $data = import-csv $args[0] #create a vriable for holding condition  $str = new-object System.Text.Stringbuilder foreach ($i in $data) { # reagd filter (office value from csv file) $dgp = $i.filter $str = {(office -eq…