PowerShell Quick References

Data Oriented

Modify XML:

#Modify the Default NotePad++ config file after installation to not auto-complete brackets,braces,parentheses agrh.
$ConfigFile="C:\Program Files (x86)\Notepad++\config.model.xml"
$o=(Get-Content  $ConfigFile)
$ai = $o.NotepadPlus.GUIConfigs.ChildNodes | ?{$_.name -eq "auto-insert"}
$ai.parentheses="no"
$ai.brackets="no"
$ai.curlyBrackets="no"
$nu=$o.NotepadPlus.GUIConfigs.ChildNodes | ?{$_.name -eq "noUpdate"}
$nu.'#text'="no"
$o.Save($ConfigFile)

http://blogs.msdn.com/b/sonam_rastogi_blogs/archive/2014/05/14/update-xml-file-using-powershell.aspx
 

Create 100 Users

1..100 | ForEach { Net User “TestUser$_” Password1 /ADD /Domain}