How to get the data from msinfo32 with wmic commands

written by Andrew Shay on 2018-03-23

I was recently looking to gather the same data that msinfo32 reports and I found a couple wmic commands that provided me with what I needed.

The first is a basic wmic command eg wmic service get /format:list. This will output the services on Windows.
Run wmic /? to see a list of other information you can gather.
Other formatting options /format:table and /format:csv

The second wmic command uses the CIM WMI Provider. eg wmic path CIM_LogicialDisk get /value. This outputs the logical disks that Windows detects.
To find a list of possible options see the MSDN docs https://msdn.microsoft.com/en-us/library/aa386541.aspx


Apache disable TLS_RSA_WITH_3DES_EDE_CBC_SHA after LetsEncrypt

written by Andrew Shay on 2017-05-09

This guide is for Apache but might be similar for other web servers

If you've just installed Let's Encrypt certificates with Certbot on your web server and ran SSL Server Test, you might have warning saying your server supports TLS_RSA_WITH_3DES_EDE_CBC_SHA.

To drop support for this protocol you must

  • Open /etc/letsencrypt/options-ssl-apache.conf
  • Delete :DES-CBC3-SHA from the SSLCipherSuite line.
  • Restart apache sudo service apache2 restart

Also, here is the default conf file
https://github.com/certbot/certbot/blob/master/certbot-apache/certbot_apache/options-ssl-apache.conf


Subreddit Monitor supports multiple subreddits

written by Andrew Shay on 2017-02-25

Subreddit monitor now supports multiple subreddits via a JSON file
View on GitHub


Subreddit Monitor

written by Andrew Shay on 2016-12-22

I created a really simple script that parses the RSS of a subreddit and prints a message when a new thread is posted (checking every 5 minutes).
This was just a script to test this functionality that will be integrated into a larger project.
https://github.com/Andrew-Shay/subreddit-monitor


Blog built with Lektor

written by Andrew Shay on 2016-11-16

My blog has been rebuilt and is now generated with Lektor!
Get Lektor!