WeiYen Tan

Explore articles and content from this author

WeiYen Tan

4 articles published

1 min read

Pester – Parameters and Hashtable Fun!

I have written a short excerpt on how to pass parameters from an object to a Pester test. I have turned this into a function: Invoke-POVTest. The function is primarily for operational validation tests, where you might have a single operational test but you need to test multiple cases. (Sorry, I am not quite sure if I described it properly). I’ll be interested in any feedback. Link to blog post here.

1 min read

A study in Powershell scripting – A beginners guide Part 2

In this post I elaborate the steps that I went through to build the function to extract users into alphabetical order. I talk about the problems I face and how I resolved them. I also post snippets of my code that I used so that new people can see how I wrote it. I’m hoping that this help the new people that are out there. Biggest tip in the post is what the secret sauce is on how to pass results from one cmdlet to another.

1 min read

A study in Powershell Scripting – A beginners Guide Part I

I thought I would post my learning experiences as a person that has very little programming background. Don did say in one of the TechEd’s a few years ago that even a beginner could share their experiences with others. So I thought that I should contribute with the approach that I use to write my scripts so that other people starting to begin their Powershell adventure could benefit. The scenario in this case is to do with three Active Directory security groups and synchronizing with a master Active Directory security group.