Domain Controller Granular Event Log Delegation

Posted on Posted in Active Directory, Microsoft, Powershell

So you’ve combed through 7 year old TechNet forum posts, cursed the limitations of Event Log Readers group when trying to use Get-WinEvent, and then tried to decipher SDDL to no avail.  A treatment for all those woes:

The basic gist here is that the CustomSD registry value will contain your new permissions and […]

VMware PowerCLI 10 Setup

Posted on Posted in Powershell, VMware

I found that the latest version of PowerCLI 10 ran fine in 32-bit mode but VS Code, Powershell ISE, or Powershell console in 64-bit mode were unable to load the module.  I would get the following errors when trying to import the newly installed module: Could not load file or assembly ‘log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304’ […]

Search for Details on Installed Software with Powershell

Posted on Posted in Microsoft, Powershell

Anyone that has ever queried for installed software knows that win32_Product is annoyingly slow.  There are plenty of solutions out there to pull in all installed software, then filter, then act but I wanted something lightweight and could drill down to my target in a single function.  The script below doesn’t validate that targetAttribute name is […]

O365 License Discovery and Management

Posted on Posted in Office 365, Powershell

If you’ve ever had the pleasure of working with the built-in O365 cmdlets for viewing and modifying licenses you’ve probably come across: Set-MsolUserLicense : Unable to assign this license because it is invalid. Use the Get-MsolAccountSku cmdlet to retrieve a list of valid licenses. In every instance I ran across this “error” it was because […]