I always move my IIS logs to a different drive, and I almost always include all fields. This is something that annoys me since I have to do it over and over again. Just like everything that I have to do over and over again, I wrote a script to do it for me. The … Read more
I built a script which facilitates changing the default logging location for most SolarWinds programs in a SolarWinds Orion installation. Not every log can be moved, but this script does change the majority of the log locations and also takes a backup of the original file beforehand. The important part is the RegEx that is used … Read more
I’m always sick and tired of having to remove the IIS Default Web Site and DefaultAppPool after I’ve installed the Web Roles in Windows Server 2012 R2. So, I created a short script that will remove them.
# Check for Admin Access (UAC)
$User = [Security.Principal.WindowsIdentity]::GetCurrent()
$Role = ( New-Object Security.Principal.WindowsPrincipal $user ).IsInRole( [Security.Principal.WindowsBuiltinRole]::Administrator )
if ( -not $Role )
Write-Warning "To perform some operations you must run an elevated Windows PowerShell console."
Get-WebSite -Name "Default Web Site" | Remove-WebSite -Confirm:$false -Verbose
Remove-WebAppPool -Name "DefaultAppPool" -Confirm:$false -Verbose
DISCLAIMER: These materials are provided “AS IS” without any express or implied warranty of any kind.
My presentation is completely built around optimizing your SolarWinds Orion installation. In that presentation, I make reference to several scripts that I use to help me in provisioning Orion Servers. One such script is used to install the necessary Windows Features for each role. It uses XML files as the source for which features are needed … Read more