Skip to main content

Posts

Showing posts from August, 2019

How to Create and Use a Multi-Dimensional Array with PowerShell

An array is a neat little data structure that allows you to store more than one piece of information in a single variable.   Take a look at the examples below. $VariableName 10 In this example, we have a standard variable.   It contains only one value. PS C:\> $VariableName 10 An array is a bit different.   It stores each value in a unique index number. $Array1 0 Apple 1 Pear 2 Plum PS C:\> $array1 Apple Pear Plum PS C:\> $array1[1] Pear A multidimensional array is like a grid (2 dimensional) or a cube (3 dimensional).   You can add more dimensions but those beyond 3 are hard to conceptualize.   $Array2 0 1 2 0 Dog Alpha 100 1 Cat Bravo 200 2 Bird Charlie ...

Active Directory Web Services Configurations

Yes, I am actually taking the time to add some blog posts! In class today we had a question about setting the  MaxGroupOrMemberEntries to Unlimited  in the Active Directory Web Servers configuration file.  Unfortunately, I could not find a way.  Just set this value to be very high.  Just remember, your results must come within 5 minutes or you will hit the time out.   I also forgot how hard it was to find these settings.  Here is a link to the Microsoft article that contains the configuration properties and how to use them:   https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd391908(v=ws.10) Happy coding everybody!