I talked about filling in the gaps in MOSS in an earlier article. This is a script that helped us in troubleshooting security issues. We were iterating through our sites to present custom navigation, and the nav menu would break if the sites permissions had changed. This quickly became not fun, so I created this powershell script that will identify sites with custom security (as opposed to inheriting from the parent).
These types of scripts also become useful two years later. The site has been in production for a while, people of come and gone, new groups have built new ideas on new sites and your security team/auditor/nosy manager wants to know who has access to what sites. That is not fun to compile by hand.
This script takes two parameters -URL (the top level web application you want to audit) and -LogFile (the path to the html file the script will create)
SecurityMap.zip (1.43 kb)
This is a Powershell Snap-in for the HEAT Ticketing System. I've used HEAT at several companies, and I was never able to get an easy snapshot that showed how I was doing at closing HEAT tickets. Since numbers like these are key in determining promotion, raise and so on I took a passing interest. I've retrieved they key (to me) properties about a HEAT ticket and exposed them read-only.
- You'll need to change the connection string in the code (unless your computer has a DSN named HEAT). The offending line is line 61 in HEATCmdlet.cs.
- Compile the dll
- If you only want to use the snap-in once, then forget about it; you will need to manually register the snap-in with the following commands at a powershell prompt.
- Set-Alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil
- installutil c:\Cmdlet\bin\Release\Cmdlet.dll (or wherever you compile to)
- Add-PSSnapin HEATCmdletSnapin
- If you want the snap-in available to you all the time then you need to create a console file and start powershell pointing to the console file. The console file is included in the download. You command should look like powershell -PSConsoleFile HEATconsole.mcf.psc1
- Enjoy quick reporting with Cmdlets like Format-Table and Export-Csv.
For more information about Cmdlets, snap-ins, registration and custom consoles check out MSDN
. Download HEAT Powershell Snap-in SHA1: 97a88ce0627eb22dd8aec294986944acab5f4c51