Learn about Windows PowerShell
Event 7: It is hard to believe that the 2010 Scripting Games are already up to Event 7! Time flies when you’re sort of having fun. Take today’s script, for example. The hard part was finding out how to find the administrative tools; the rest was not very hard at all. Maybe that is the way scripting really is. I don’t know.
Anyway, I kind of cheated for today’s script. I tried to do the right thing; I searched MSDN for “admin tools,” “administrative tools,” and even “administrative tools folder.” None of those searches were enough to limit the results to what I needed. There are tons of stuff out there, such as how to install administrative tools and how to assign a folder to someone, but nothing even remotely connected to what I needed.
I then tried to ask the Microsoft Scripting Guy, but he was busy and simply said. “Yoyo.”
“Yoyo,” I echoed. “What in the world does yoyo mean?”
“You’re on your own,” he mirthlessly replied.
“Well, fine,” I thought to myself. “If the Script Monkey will not help me directly, he can help me by proxy.” I opened Internet Explorer and headed over to the Hey, Scripting Guy! Blog. Once again, I struck out. Then I thought about the Script Repository and boom there it was. I found exactly the script I needed. Of course, it was written in VBScript, but at least it identified the COM object that I needed to use. With that information, it took me about 15 minutes to write the script; however, I wasted an hour trying to search for the object I needed.
Oh, well, such are the trials of an everyday Scripting Wife. I am going to e-mail this to Ed so that he can get it to Craig, and I am going to get started baking a turkey I picked up at the grocery store yesterday.
Microsoft Scripting Guy Ed Wilson here. Check out the due dates page to see when the remaining scripts are due. Let me invite you again to keep up with the 2010 Scripting Games by following us on Twitter or Facebook. If you have any questions during the Games, send e-mail to us at email@example.com or post your questions on the 2010 Scripting Games Forum. See you tomorrow. Until then, peace.
Ed Wilson and Craig Liebendorfer, Scripting Guys