Changing "Sessions" information on user account in Active Directory with Powershell

Doing some digging with a teammate today it was incredibly difficult to find information on how to automate the settings change of the Sessions tab on a user object.  Different paths indicate we need to edit the userParameters attribute but you’ve probably found that it’s a binary blob and not easily manageable.  Perhaps you went down…

3

Solution for: A security package specific error occurred

For me the issue was happening with Powershell and Get-Winevent, but it could happen with any number of actions.  In my instance the problem occurs when we were using a cross-forest single sign-on account to manage multiple Active Directory forests. In this case if there are multiple computer accounts with the same name in play and one of those…

2

Interacting with Data Collector Sets via Powershell

Background: In an earlier post I talked about some new features for Windows 2008 and Vista.  One of those new features that is often overlooked are the data collector sets (DCS).  One particular role that leverages data collector sets is active directory.  Active directory has put “hooks” into tracing that can really take a lot…

6

Check that driver file versions match on all your cluster nodes via Powershell

This is more of a proof of concept, but I’ve used it with success internally.  Take it and do with it what you want.  Many thx to Brandon who did the “heavy lifting” when I got stuck! Overview: Ever run into cluster issues and wanted to see if the driver file versions matched on all…

5

SET-ACL on registry key

Man it was hard to find info on using set-acl on a registry key!   I was looking for a way to set an ACL that once set would be inherited by child keys and values.    We needed to give “Local Service” full control on the registry key below and have the subkeys inherit the permission. …

6

Caught the Powershell Bug.

Over the past few months I have fallen in love with PowerShell.   I’ve taken on a new role (starting in mid-October) that will be more focused on automating out administrative tasks via powershell so the focus of this blog might change more towards that subject.  I think the crowd that congregates here are IT admins…

1

Getting Access Denied when trying to query rootMSCluster namespace remotely against Windows 2008.

Ran into a weird issue where I was getting access denied when trying to query nodes remotely in powershell.  The query was working fine against Windows 2003 cluster names and worked locally when ran on a Windows 2008 cluster node, it just didn’t work remotely.   Against 2k3: PS C:\Debuggers> gwmi -q "Select name from…

7

Find out who pings on a subnet quick and easy

So i know there are tools out there to do this but figured some would be interested on how to do this real quick with stuff that’s already in the OS. 1) Turn off echos to make the out put clean (don’t forget to turn it back on when its done via “echo on”). 2)…

1