PowerShell – Get Disk Space Report
Reference: http://poshcode.org/6067
This area of the site is dedicated to code snippets for quick and easy reference
Reference: http://poshcode.org/6067
Reference: http://poshcode.org/491
There are many services on Windows 7 that do not need to run, while some suggest disabling the service I tend to go on the side of caution and simply stop and set them to manual startup.
Recently while trying Kentico I had to uninstall it and found that the service didn’t properly uninstall so I found PowerShell was quickly able to remedy that problem.
This script is pieced together from various posts, I only take credit for combining the resources. There is more than initially is seen to this script, based on the code below it will write a text file on c:\ and does need admin privileges in order to run. Right around lines 358-361 should be uncommented…
If you need to know some of the system variables that are already set you can run this script to get the values Once you know what variable you want you can do something like this
It is best to do this on the machine itself and not remotely as you will lose connection.
Reference: https://bytes.com/topic/mysql/answers/746696-create-mysql-table-field-headings-line-csv-file