Solving Event Log Subscription Error "0x138C"

Today I saw some collector-initiated event log subscriptions that displayed a weird error, something like

Windows Event Forward plugin can't read any event from the query since the query returns no active channel. Please check channels in the query and make sure they exist and you have access to ...
more ...

Group Policy Security Filtering and Loopback

I recently discovered that when applying a GP object using loopback and user security filtering (allowing only specific users to apply the GP), the computer still needs read access to the GP.

Otherwise, the GP will show up as not applied due to it being "inaccessible":

My guess is that ...

more ...

Opening Group Policy Management Editor from the Command Line

Yesterday I wanted to open the Group Policy editor (or "Group Policy Management Editor") for a specific GP object through PowerShell, but there is no "Edit-GPO" cmdlet. I quickly checked from the task manager how the GPMC opens the editor, and made my own:

function Edit-GPO([guid]$guid){
$domain = Get-ADDomain ...
more ...

Removing all Metro Apps from Windows 8

I wanted to open some photos today (to add to my blog) on my Windows 8 workstation, and it kept opening the full-screen metro app instead of the normal picture viewer. It really annoyed me, and I looked for a quick and dirty way to remove ALL metro apps. This ...

more ...

Wget in PowerShell v3

I've been envying my *nix brethren for having Wget for a long time. To get the contents of a web page or download a file using http I had to use workarounds that took more than one command - either creating a new System.Net.WebRequest or using a BITS ...

more ...

Copying Files In PowerShell - Using Windows Explorer UI

I know this trick is widely known, but I thought it's worth mentioning anyway.
If you use PowerShell's Copy-Item to copy files, you don't get any progress report, ETA or statistics like you do when using Windows Explorer's file copy.

First, let's generate a random ...

more ...

Testing actual SMB version

Ever since I got employed in my present company, I've been told that our NetApp Filer supports SMB2 when used as NAS.
I was always skeptic of that (due to high transfer times and being unable to cancel mid-file) but had no easy way of testing (I guess I ...

more ...

Mass Setting Permissions on Remote Shares

I was recently asked by one of my teammates to add several NTFS permissions to the root folders of a bunch of shares. Seems easy, but I had two problems:

  1. The shares were stored on a NetApp Filer, so I couldn't use any WMI trickery (or the new SMB ...
more ...

Copying List Permissions in SharePoint 2010

I just wrote a small script to copy permissions from one SharePoint list to the other.

Things to consider

  • Custom permission levels are not preserved: For some reason, my method of copying permissions isn't custom-permission-level friendly. The customized permissions will still be copied, but an auto-generated permission level will ...
more ...

Finding WSUS Clients by SusClientId

Today someone showed me a strange problem - he had servers that recently installed new updates from his WSUS server, but he couldn't find them in the WSUS console by their name.
Obviously the servers have been renamed and didn't have time to report to the WSUS server, but ...

more ...