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

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

Display warning text when someone logs onto your servers

This works for Windows 2003 and Windows 2008.  We use it during our reliability study to let the server owners know that they shouldn’t reboot their boxes without a good reason.  You can use it for whatever you’d like. 🙂 The two keys to set: reg add “\\brad-dc-01\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon” /v LegalNoticeCaption /t REG_SZ /d “MSIT…

2

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

Hey Admins! Gathering information from remote machines using WMI (the easy way).

  Those who are just getting into scripting might be wondering how to query info from remote machines using WMI and how to find useful information to query.  When I started out trying to learn some of the WMI syntax and gathering info,  I started with ScriptoMatic.  I found this tool to be quick and…

1

Using TypePerf to get performance data on the command prompt.

I was tracking a high CPU issue this week and needed to know when one of my servers was pegged so I could investigate.  I could of used perfmon I guess but I really like to do everything I can from the command prompt.  I always like it when there is a tool that can…

5

Are there pending operations waiting for a reboot?

Sometimes you might log onto a server and wonder if there have been patches installed and thing needs to be rebooted.  Well if the patch wanted to replace a file that was in use by the system (like NTFS for example) then it populates a certain key in the registry, you could check this key…

0