Hey, Scripting Guy! How Can I Determine Folder Size?

Hey, Scripting Guy! We are getting ready for a migration, and I am trying to find an easy way to determine the size of the Documents folder. I would like to use Windows PowerShell to do this, but when I use the Get-Item cmdlet to retrieve the properties of a folder, I do not see… Read more

Hey, Scripting Guy! How Can I Create an HTA to Do Temperature Conversions?

Hey, Scripting Guy! I read with interest your “blog from down under,” and I was interested in your function that converts Fahrenheit to Celsius. My wife and I are going on vacation to Germany, and I want to be able to do metric conversions. The problem, however, is that I do not want to install… Read more

Hey, Scripting Guy! How Can I Edit Terminal Server Profiles for Users in Active Directory?

Hey, Scripting Guy! I need to modify the terminal server profile for a bunch of users in Active Directory, and I don’t get it. I can see the properties on Active Directory Users and Computers, but when I look in ADSI Edit, I cannot find the property names. I know they must be there, but… Read more

Hey, Scripting Guy! How Can I Create Users from a CSV File?

Hey, Scripting Guy! In your last article, you showed how to create random passwords for users and how to write that password out to a CSV file. You said if anyone asked that you would show how to use that CSV file and create a user from it. Well, here I am, asking you. Show… Read more

Hey, Scripting Guy! How Can I Create Passwords for My Users?

Hey, Scripting Guy! I am trying to create a bunch of users via script, but I am having problems dealing with their passwords. I do not want to give everyone the same password, and I do not want to have to manually create a hundred passwords and store them in a file, so I am… Read more

Hey, Scripting Guy! How Can I Read a CSV File?

Hey, Scripting Guy! I am new to scripting, but I have been tasked with creating a script anyway. What I need to do is to read in a CSV file and then perform an operation on each line in the file. I do not know what the correct cmdlet is or what action I need… Read more

Hey, Scripting Guy! How Can I Read Microsoft Excel Metadata?

Hey, Scripting Guy! I have a VBScript script that reads Microsoft Office Excel metadata. I would like to update the script to Windows PowerShell, but can I do this? I tried using New-Object to create the Excel.Application object but somehow it does not seem to work. What gives? I thought Windows PowerShell could do everything… Read more

Hey, Scripting Guy! Australian Dispatch #3: Self-Contained Underwater Breathing Apparatus

Cold. My nose is cold. My left eye opens slowly to investigate. Everything is dark. Cold and dark. “So why am I awake,” I wonder seemingly to myself. No answers are forthcoming. So my right eye slowly opens to bring a modicum of assistance to the ongoing investigation. Still no answers present themselves. Where am… Read more

Hey, Scripting Guy! How Can I Reuse Functions?

  Hey, Scripting Guy! I have a bunch of functions I wrote in PowerShell that I would like to use in other scripts. I am getting tired of cutting and pasting these things into various scripts over and over again. Surely there has got to be an easier way to do this! Have any ideas?… Read more