The only missing “simple” action or method on an array is to retrieve the index number representing a value. That’s why I wrote this simple function:
Continue reading
Monthly Archives: December 2009
Template script to use arguments from the command line [updated 24-12-2009]
I had a lot of problems with making a failsafe script that forces the use of ‘named’ parameters from the commandline and give the posibility to show a help when not used correct. This is my solution and it is possible to use it as a template. See the test below or download the script itself from the attachment to have the proper indents.
Update: The template is updated because the error handling didn’t work properly with the arraylist. Also some declarations are moved. Click here to download the template.
Clean-ProfileSharev2
This is my first published script (back in december 2009 so please forgive me for the somewhat unstructured script) and I want to publish it to the world!!! Look at the Help file.
Everybody knows this problem. Especially in a large environment. You have a share with roaming or hybrid profiles. This share seems to grow exponentially. The thing that happens is the users are deleted/disabled because users are no longer working at the company or are no longer using the environment. So the profile is obsolete.
This script will move all the folders of disabled/deleted users into a subfolder _deleted or _disabled. This way you don’t delete folder automated, because that’s scary. But you have a single folder which you can backup and clean very easily.
Click here to download Clean-ProfileSharev2 or click more to see the help and the parameters


