Reference: http://poshcode.org/6067
Category: Code
This area of the site is dedicated to code snippets for quick and easy reference
PowerShell – Windows 7 – Windows Service Cleanup
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.
PowerShell – Delete Windows Service
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.
PowerShell – Get Computer Information
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…
PowerShell Get All Environment Variables
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
Unix Change Static IP
It is best to do this on the machine itself and not remotely as you will lose connection.
PHP Create MySQL Table From CSV File Headings
Reference: https://bytes.com/topic/mysql/answers/746696-create-mysql-table-field-headings-line-csv-file