In today’s Active Directory Friday we touch the subject of security of Domain Administrator accounts. Although this should not be overlooked it is not uncommon for passwords to be unchanged for a long period of time.
To find the members of the Domain Admins group we can use following LDAP Filter:
Note that in PowerShell v3 and up it is not required to unwrap the array, as the Member Enumeration feature of PowerShell will ensure that the methods and properties of underlying objects in an array are available. As demonstrated in the following line of code:
I have been using some of the default graphic interfaces that are provided by the System.Windows.Forms Class in my scripts. The FolderBrowserDialog class can be used to create a Dialog box that allows a user to select a folder, which can in turn be used in your script. I wrote an article on this for PowerShell Magazine, you can check it out here:
As a board member of the Dutch PowerShell User Group I am happy to announce that we will be holding our next meeting in exactly one months time. The details as specified on our website:
“We are pleased to inform you that the evening of PowerShell will be held as below, following our successful 2ndDutch PowerShell User Group meetup last June. We changed the format of this meetup to take place in the evening. Parking is available nearby and the venue is located next to Amsterdam Zuid train station. In this meeting all sessions will be in English.”
The System.Windows.Forms.OpenFileDialog Class can be used to create a dialog which allows a user to select a single file or multiple files. This allows for a quick method of user interaction with a script. The selected file or list of files is returned as an object to the script and can be used for further automation.
To read more on this subject head over to my article on PowerShell Magazine:
I recently wrote a short function to gather all available Com Objects from the registry and display the list of all objects using PowerShell. I wrote a short article on how this work on PowerShell Magazine, have a look at it here: