PowerShell function to find stale and old trusts in your Active Directory
Trusts… most of the times you create them and never look back… until you have to create a new one. So what about legacy/ancient trusts? Trusts you don’t need? Trusts that aren’t in use? Again a post...
View ArticlePowerShell function to report users in domain local groups
AGDLP… it’s an old principle. Almost as old as Active Directory itself. You put a User in a Global group, the Global group in a Domain Local group and you provide Permissions on a resource to that...
View ArticlePowerShell function to find groups with no users as members
Groups with no members in them are, in my opinion, a waste of a perfectly good object So here is a function to find groups that have no users and no groups as member… function Get-EmptyGroups { $Groups...
View ArticlePowerShell function to list users in Authoritative Groups in Active Directory
Thanks to Shay Levy for pointing me to the possibility to filter on the GroupType to get the authorative groups in Active Directory. Here’s a function you can use to list the users that are a member of...
View ArticleMemory requirements for Windows Server 2012 (R2)
This is all about installation vs a running installation within a virtual machine. When you install Windows Server 2012 (R2) you will need to configure 800MB+ of startup RAM. If you don’t, the...
View ArticleSet domain runas account for SQL Server Management Pack in SCOM
Last week the SCOM admin from my customer asked me to help out with a PowerShell command he was trying. A little background information: We introduced the SQL Server Management Pack in SCOM and chose...
View ArticleGet-InstalledUpdates – List all installed updates and hotfixes
I recently got the task to inventory all installed updates and hotfixes on a bunch of cluster nodes. Yes, I could have gone through ‘Add/Remove Programs’ and created a list by hand… right? Are you...
View ArticleWhich servers have an Operations Manager client?
Some time ago I got asked to write some PowerShell code to list all servers which have an Operations Manager agent installed. So, how does one accomplish this? The nice and proper way would be to query...
View ArticleUse PowerShell and repadmin to get active directory replication status
The Active Directory replication status is about the first thing I check whenever I enter a project at a new customer. Why? You wouldn’t believe the problems they can cause and the time it can take to...
View ArticleCompare installed updates and hotfixes
Earlier this month I posted about a function that I wrote: Get-InstalledUpdates – List all installed updates and hotfixes In that post, I wrote a little extra code in order to compare the results...
View ArticleA PowerShell function to get the installed software
Earlier this month I posted about getting the installed updates and/or hotfixes. This got me thinking… what about installed software? If you want to compare servers to each other, installed software...
View ArticleA PowerShell function to compare installed software
Earlier this week I posted a fuction to get the installed software. Naturally the next step is to compare installed software over multiple targets once you’ve got the results of that function. So,...
View ArticleGet remote Best Practice Analyzer results through PowerShell
Today I received an email from a community member where he wrote that he was writing a PowerShell script that basically does the same thing at the Microsoft Best Practice Analyzer. Why? Couldn’t you...
View ArticleWhat is Project Possessod?
Last year I wrote a tweet about a new ‘secret’ PowerShell project I started working on. I’m happy to anounce that v1 of the script is almost ready and …. I’ll be showing it for the first time on the...
View ArticleOut of memory exception in PowerShell
When running scripts in a large environment, you could run into an exception in PowerShell telling you it’s out of memory. To get the value of the amount of memory available per shell, run the...
View ArticleA first glimpse at my Active Directory Health Check
Last week I presented at the Virtual PowerShell User Group about the big secret PowerShell project I’ve been working on (codename: possessod). As I wrote earlier: It’s an Active Directory Health Check....
View ArticleAn Active Directory Health Check PowerShell script v1.0
This is a PowerShell script which offers an Active Directory Health Check. These checks are based on my personal best practices. Some of the checks may not be applicable to your environment. The...
View ArticleWhere to find the latest version of my Healh Check PowerShell script(s)
As many of my readers now, last week I’ve finally released v1 of my AD Health Check PowerShell script. In the future newer versions will come out, with fixes and more checks. So, where can you find the...
View ArticleGet print server information via PowerShell
This weekend I found myself in a situation where I needed to find print server information, such as the default spool directory and restart job timeout value. You can use the System.Printing assembly...
View ArticleCheck if a value is an ip address or not
Here’s an easy way to check if a value has the format of an ip address:
View Article