Auditing NTFS
http://jfrmilner.wordpress.com/2011/05/01/audit-ntfs-permissions-powershell-script/
Old References
Favorite Past Events
http://ewblog.edwilson.com/ewblog/post/2012/03/06/Windows-PowerShell-for-the-busy-admin.aspx
Ed and Teresa Wilson will be in the house! Meeting Date: Tuesday, October 2, 2012 - 18:30 - 20:00 Location Improving Enterprises 4449 Easton Way, Suite 100 Columbus, OH43219 See map: Google Maps Read more http://powershellgroup.org/content/powershell-saturday
Latest
From Scripting Guy 5 new tips and tricks
Create PowerShell profiles
http://msdn.microsoft.com/en-us/library/windows/desktop/bb613488(v=vs.85).aspx
help * (man for linux)
New window popup
help get-service -showwindow (v2 help get-process -online )
Auto build you commands
show-command get-wmiobject
Help can get updates
update-help (save-help)
Find the verbs
Get-verb
Find the verbs and count
Measure-object
If you have a conflict
microsoft.powershell.management\get-process
One Line is Magic
get-process | kill -whatif
get-process | kill -confirm
get-process [a-r]*[g-w] | kill -whatif
does it work well in a pipeline?
get-help get-service -full
Changing the Item-Level Permissions Settings for a Document Library requires PowerShell http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx
PowerShell script to capture and report on all SharePoint permissions through a site collection http://localgovernmentsharepoint.wordpress.com/2012/01/25/powershell-script-to-capture-and-report-on-all-sharepoint-permissions-through-a-site-collection/
The PowerShell script I (Todd) use to create Active Directory users http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=362
Add-type -AssemblyName office $Application = New-Object -ComObject powerpoint.application $application.visible = [Microsoft.Office.Core.MsoTriState]::msoTrue $themePath = "c:\presentations\moc.thmx" $path = "C:\Presentations" Get-ChildItem -Path $path -Include "*.ppt", "*.pptx" -Recurse | ForEach-Object { $presentation = $application.Presentations.open($_.fullname) $presentation.ApplyTemplate($themePath) $presentation.Save() $presentation.Close() "Modifying $_.FullName" } $application.quit() $application = $null [gc]::collect() [gc]::WaitForPendingFinalizers()
for ($u = 0; $u -le 25; $u++) { $user = "Student"+$("{0:D2}" -f $u) Write-Host "Creating User for $user from $u" } |
Need to type a really long command just use a ` or "back tick" or "grave accent". You get >> and then continue typing. Note that you will need to hit enter an extra time since a blank line is required start execution.
get-help about_special_characters
https://technet.microsoft.com/en-us/library/hh847835.aspx
get-help about_Escape_Characters
https://technet.microsoft.com/en-us/library/hh847755.aspxhttp://www.neolisk.com/techblog/powershell-specialcharactersandtokens
http://blogs.lessthandot.com/index.php/datamgmt/dbprogramming/a-cheat-sheet-for-all/