Powershell Microsoft Active Directory full script

image To finish the Powershell Microsoft Active Directory blog post series here is a script which I used for a customer. The script is used for moving the Terminal Server Home Drives of all TS users to a Central Directory. The central directory is based on the ServernameShare%USERNAME% value. The TS Home Drive location was set manually and different location were used. We needed to change this to one single location. Doing this manually would take us months so we need to automate these tasks.

(more…)

Powershell App-V Script – Add applications by using manifest.xml

appvWith the introduction of Microsoft App-V v4.5 Microsoft introduced the manifest.xml file. To read more about the manifest file please read this blog post by Rodney Medina MVP on App-V and owner of Softrgidblog.com.

The PowerShell App-V script I will show you today will perform two actions. One is adding the Virtual Application to the App-V client by using the manifest file and the second is performing a full load of the added Virtual Applications.

(more…)

Powershell and Active Directory Part 3/4 Get TS info

64px-Windows_PowerShell_icon Back again with a new post in the Powershell and Active Directory series of posts. Remember when I said I will show you how to work with attributes that are not schema attributes? By default you can do a $var.schemaatrributename like $user.name or $user.DistinguishedName. This is not possible for for example the TerminalServiceHomeDrive attribute because this strange enough is not a schema attribute.

(more…)

Powershell and Active Directory Part 2/4 Search

64px-Windows_PowerShell_iconAfter part 1 of the Powershell and Active Directory postings we are now finally ready for working with Powershell and Active Directory! In this post I will show you how to do a basic Active Directory search. I know this has been explained over and over again on different blogs but I will go the extra mile which we need for part 3 which will be released later this week.

(more…)

Powershell Active Directory Part 1/4 Intro

64px-Windows_PowerShell_iconPowerShell Active Directory

Let me start by giving my honest opinion about Powershell. Powershell Rocks! This truly is a great and powerful scripting language. I’ve looked in to VB scripting before but really I don’t have enough patience to do VB! So keep in mind that I love powershell when reading the rest of this post.

(more…)