PowerShell – Set Computer Name
Reference: http://poshcode.org/6036
Reference: http://poshcode.org/6036
This is a great script to add to a setup script to lock the workstation after everything is done or before everything starts Reference: http://poshcode.org/6037
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
Following the Chocolatey post we now install WAMP (Windows, Apache, MySQL, and PHP). Open PowerShell as administrator Configure WAMP for port 8080