The ProblemA customer required the inventory of product keys for various products on all network systems. I had used a tool which scanned all machines and nicely produced a .csv file for each machine it had scanned.
Ideally I wanted to have a single .csv file which I could then filter against, either using Excel or PowerShell.
The FunctionCheck the examples notes on how to use the function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 function Merge-CSV{ <# .
At my job I tend to have quiet and busy periods, just like everyone else.
At some times I even have very busy periods… like now. Because of that I tend to not have time or motivation to do any blogging, but that doesn’t mean I’m not doing anything productive.
Because of that I thought “why not just share the work I’m creating?”.
An idea was born….Then it hit me..
The ProblemA frequent issue on servers is when services that are supposed to start simply haven’t started.
There’s a simple one-liner that can show you the services that meet these requirements for you:
1 Get-WmiObject -Class Win32_Service -Filter "Startmode = 'Auto' AND State = 'Stopped' AND ExitCode != 0" Want to directly start up these services? Not a problem!
1 Get-WmiObject -Class Win32_Service -Filter "Startmode = 'Auto' AND State = 'Stopped' AND ExitCode !
The next part in my Lab setup now that I’ve gotten network configured is to actually no longer touch my new Lab machine…
While that might sound strange at first, the reason for this is simple. My Lab should be a headless server, stuffed in a cabinet somewhere with power and a network connection and I should be able to do ALL my management tasks remotely.
This should be a simple task you’d say, but for the sake of clarity [and to learn this process better myself] I have decided to write down all the steps required to do this.
Since I’ve decided to get more serious about updating my skills and knowledge again [also why I started blogging], I thought about getting a proper lab setup.
The goal is to have a small, portable but powerful Hyper-V based lab which I can carry along with me from home and to work if need be. Now I tend to have a test setup on my home machine and one on my work laptop, depending on what I need at that moment.
I’m loving the way Microsoft is currently pushing PowerShell as THE go-to tool required to manage all your solutions.
I’m at a loss however at why they aren’t providing out of the box solutions so that you can manage all of your workstations/servers through PowerShell. Sure, you can head over to every machine and configure PowerShell using
1 Enable-PSRemoting However I can understand that people have better things to do with their time [I sure do!