Remote Command Line–GFI MAX
June 16, 2015 1 Comment
We had a new PC in for setup, usually this is the work of my proles Co Workers, but as i was the only one in the office that day i knuckled down and bloody well did it myself. The first task we usually undertake is to remove all of the preinstalled additional programs vendors like to ship with their PCs. If you missed the recent Lenovo incident, that is a great example of why you might want to do this.
Incidentally this was not a Lenovo PC.
Anyway, given the list of programs was so long i thought i might struggle to get through it, i wrote a small PowerShell script to do the bulk of the work for me, all i had to do was hit Y if i wanted to remove a program, or N if i did not.
Feeling quite pleased with myself i left that task and went on to more serious matters. Sadly i forgot to take a copy of the script and the PC went out to the clients office.
Today another PC requires the same treatment, and i realised my script was missing.
Given i am inherently lazy and having already gone to the trouble of writing a script, it seemed easier to me to try to retrieve the script rather than write another one. GFI Remote Background to the rescue.
I connected to the PC using our GFI MAX Console, and loaded the Remote Background tool.
Using the TYPE command, i was able to print the content of the file to the console window.