Concatenate PowerShell arrays on the fly
Here is a method to build a global array at the same time you collect data from various parts of a tree.
No need for additional code to concatenate the data.
Here is a method to build a global array at the same time you collect data from various parts of a tree.
No need for additional code to concatenate the data.
A simple method with a oneliner bonus.
Retrieve the information This information can be found in the user’s Active Directory’s objects with the Get-ADUser cmdlet. However, the msDS-UserPasswordExpiryTimeComputed attribute is a constructed attribute. According to Microsoft: Constructed attributes have the property that they are attributes for which the attribute value is computed by using other attributes, sometimes from other objects. And because […]
Sometimes you discover that there are many duplicates in your Path environment variable. This happens because most of the software you install just add new paths without formerly checking if they already exist. How to do it with Powershell First, we want to get the current content of the Path environment variable. Now we want […]
Given that the Description property of the Get-GPO cmdlet has a Set method, this can be done with a simple one-liner.
You must be logged in to post a comment.