As I have learned so much from reading and asking questions, thanks so much for everyones help. I have another problem to solve. One of the lines in one of the textbooks, I think it was Mr. Jones (Not exactly sure) stated that the best way to learn Powershell is to get yourself a problem that needs to be solved and then use powershell to solve it if at all possible, so here is the problem. As we reimage boxes, we have a great need to reapply many ODBC connections that get blown away by the reimage process. Some need to be applied under the User DSN tab, and some are under the System DSN tab.
Is there a way to get PowerShell to reapply these settings for us using a script or other PowerShell technique? I have done a lot of reading, tried a lot of the stuff posted, some of the stuff worked but did not provide the correct results. Any ideas to try will be greatly appreciated, we usually have to redo about 12 database sets so it gets really old doing the "copy and Paste" routine.