He shells on the sea shore, or floor, or couch. Ouch, Neck, hurts now.
Ah, the wonderful world of shells. It's been over a year since I posted about trying out linux.
Im going to have to come out of the closet at some point (ha! not what you were thinking), but I have "switched to the dark side". Ok, I haven't really switched. I have however, gained an entirely new respect for linux. In the past, I used Linux to accomplish the things I was unable to do in windows, such as password recovery or removing malware entries from the registry. Shortly after that post, I discovered Ubuntu Linux. Since then, I have explored many other distro's and I really do like Linux. It is simply a very powerful operating system. What does this have to do with shells or my hurt neck?
Well, the power of linux is quite apparent once you start to do some shell scripting. It also make you think about how you can accomplish some of the same things in windows. Ok, shells made for a better title, but I needed something to segway into batch scripting and the power of being LAZY. I am a lazy person. I live by the theory of "If you do it more than once, AUTOMATE it." I posted this last month on using WMIC to manage McAfee, but WMIC is much more powerful than the examples I listed. Matt Broadstock posted a comment stating that he loved to see folks using the FOR command, and that's because Matt knows the power of that command and scripting in general. He has some great posts on his blog with many examples of the FOR command. He would appear to be lazy also. I say lazy, but it actually takes some practice to be lazy, much practice. You will know you have been practicing enough when you only sleep a few hours per night and your neck is in pain from staring at the screen for so long. Ah, another segway, pun intended. Your welcome segway, both of my readers will visit your link. Lets get started on your hurt neck, but first lets ask Matt a question, if he is not busy with world of warcraft. Hey Matt, or anyone who may stumble upon this post, what is the clipboard output of WMIC used for? Yea, Yea, I know you can copy the output to the clipboard, but why? What else could you do besides paste it into another document? I'm just curious if there are some other uses or not. Ok back to the hurt neck....
If you had the time to read this, then whats the next few months of neck injury going to matter?
Open a shell, um you know, start, run, cmd.exe.
Then type WMIC
Then /?
Good luck, life will never be the same. If you have to physically go to the server room after that, and a HDD or a motherboard isnt shot, just bang your head against the nearest wall - just kidding.
If that doesnt peak your interest, then pick up Microsoft Windows Command-Line - Administrators Pocket Consultant ISBN# 0-7356-2038-5, its good stuff and will be great for your career administering Windows.