This is an interesting article I wish I had read when I bought my MacBook. Or just before that. If you have read my post about my first problem with Mac OS X you will understand...
Today I spent some frustrating time debugging a VBScript looking for an authentication problem that didn't exist. I was trying to a install an MSI file on a remote server and kept getting "SWbemServicesEx: A security package specific error occurred." Googling the error only drove me further in the wrong way. Only when I decided to run the script locally on the target computer I realised it wasn't an authentication problem. At least not any more. The error was now "SWbemServicesEx: Not found". I then noticed the Win32_Product class I was using to install the MSI files did not exist. I googled for the error and found lots of people with the same problem but no straightforward solution. Well... it turns out this was not the first time this happened to me... Maybe the next time this happens I google it and find my own blog post with the answer. It's as simple as this: "Add/Remove Programs" "Add/Remove Windows Components" "Management
One of my first experiments with PowerShell, besides ls and HelloWorld.ps1, was trying the object oriented features and the .Net Framework. I was at the time thinking about a problem I was having with an FTP client I was using and I asked myself: "Would it be possible to make an FTP client with PowerShell?" I knew there was a .Net class that implemented an FTP client so I googled and bit and found it . After reading the examples shown and a little try-and-error, I came up with this extremely simple FTP client in PowerShell below. Note that by "extremely simple" I mean "with very few features and no error detection code". This only gets one file from the FTP server. I probably wouldn't use this in production without a few changes. But it's still a nice example on how to use the .Net framework with PowerShell and this class in particular $localfile = "c:\file.txt" $remotefile = "/folder/file.txt" $ftphost = "ftp://ftpserver&
Comments
Post a Comment