Menu Home

Useful powershell snippets

I just wanted to share a list of useful powershell commands that I use every once in a while, the list will most likely keep growing. I have divided it into two sections one for SharePoint related commands and one for just plain old ps commands. Powershall Commands Add-PSSnapin “Microsoft.SharePoint.Powershell” […]

WordPress Security and Hacks

I run some wordpress sites for myself, but I also help some of my friends hosting theirs. Like everybody I care that the sites I manage don’t get hacked or defaced. For a long time my experiences with wordpress in this regard have been very good, it is a mature […]

.Net imaging guide

I’m currently working on a spare time project that is gonna involve quite a bit of image generation and manipulation, so I was doing a brief survey on available libraries to see if there was something more suited than System.Drawing for my purpose. In the process I stumbled upon a […]

Assign write/read permissions to Application Event Log to none admin users

The following powershell sniplet can do exactly that. $Account = “ADACCOUNT” #Change this Write-Host Looking up SID for account $Account $AdObj = New-Object System.Security.Principal.NTAccount($Account) $strSID = $AdObj.Translate([System.Security.Principal.SecurityIdentifier]) Write-Host Found SID for account $strSID.Value $w = wevtutil gl application Write-Host $w $channelAccess = $w[5] if ($channelAccess.Contains(“channelAccess:”)) { $str = $channelAccess.Replace(“channelAccess: “,””) […]