Currently browsing tag

security

Add-SSLCertificate

Installs a .pfx file Function Add-SSLCertificate{ param([string]$pfxPath,[string]$pfxPassword,[string]$HostHeader,[string]$Website) Import-Module “WebAdministration” -ErrorAction Stop $certMgr = New-Object -ComObject IIS.CertObj -ErrorAction SilentlyContinue $certMgr.ImportToCertStore($PfxPath,$PfxPassword,$true,$true) New-WebBinding -Name $Website …

HardenedOrNot

Read some registry keys to check if the Windows 2003 server is hardened or not Function HardenedOrNot() { $hardened = @() $regkey …

ModSecurity extension for IIS

Microsoft announced the popular open source security module ModSecurity for the IIS platform is coming. Over the last few years Microsoft has …

Scroll to Top