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…

3

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…

2

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?…

0

Hey, Scripting Guy! How Can I Enable or Disable My Network Adapter?

  Hey, Scripting Guy! At my office I access the corporate network by using a wired ethernet connection. However, when I come home, I have a wireless connection. Since our security guys do not allow us to have multiple network connections active at the same time, I am constantly enabling the wireless connection when I…

7

Hey, Scripting Guy! Australian Dispatch #2: A Metric Ton of Scripting

After nearly 20 hours in airports and planes, the giant Boeing 747 aircraft touched down on the runway at Sydney International airport-my scripting eyes were glued to the insides of my eye lids. It is rather evil the way they give you a test to see if you are qualified to enter the country…not Australia,…

0

Hey, Scripting Guy! How Can I Write to Excel Without Using Excel?

Hey, Scripting Guy! I need to be able to write information to an Excel file. I do not want to install Microsoft Office Excel on my server, but the spreadsheet format is a nice way to store information. I can then give it to my pointy-headed boss, and he can create pivot tables, charts, or…

7

Hey, Scripting Guy! How Can I Read from Excel Without Using Excel?

Hey, Scripting Guy! I have an Microsoft Office Excel spreadsheet with server names in it, and I would like to be able to use this in a Windows PowerShell script. The thing is, I do not have Microsoft Office or Excel installed on the server. How can I use this spread sheet without installing Office…

17