header image

Archive for March, 2017

Test data for bulk AD changes

Posted by: | March 3, 2017 Comments Off on Test data for bulk AD changes |

I’ve had a number of questions about changing AD user data in bulk. If you need to do that you need some test data. The specific questions were around setting the Division property and the EmployeeNumber at the same time – but some accounts didn’t have an employee number. First you need to generate some […]

under: PowerShell and Active Directory, PowerShell Basics

Get-Content and Numbers

Posted by: | March 1, 2017 Comments Off on Get-Content and Numbers |

A common technique is to put a list of information into a text file and read that using Get-Content. The information is often server names. This works great when the data is strings but breaks down if you’re dealing with numbers. Lets start with a text file containing some numbers: PS> Get-Content -Path .\num.txt 1000 […]

under: PowerShell Basics

« Newer Posts

Categories