PHP – File Download
When WGET isn’t available PHP comes to the rescue. In this example $path file name can be different than the $url file name or the same, if it is different it will be saved with the file name in $path
This area of the site is dedicated to code snippets for quick and easy reference
When WGET isn’t available PHP comes to the rescue. In this example $path file name can be different than the $url file name or the same, if it is different it will be saved with the file name in $path
If you are on a freshly installed Windows server and can’t find IIS Site Mangement try this script below.
If you are on a newly installed server and trying any of the IIS PowerShell scripts on this site that call “Import WebAdministration” you may have some issues if the “WindowsPowerShellWebAccess” feature isn’t installed, this script below should help.
This first function is helpful to provide a range of IPv4 addresses within a set range This next function will get the broadcast IPv4 address from a CIDR range Next this function will detect if a specified IPv4 address is in the range This next function will convert an IPv4 address to a Bin This…
Work In Progress This will remove some of the default apps along with a couple other fun features to come.
This code is rather useful if you need to install Java JDK or Java JRE without a product like SCCM. This script will download the installer file, create the silent install text file then silently install Java JDK or Java JRE and place the executable path into the System Environment Path. Make sure you close…
This script is best followed by PowerShell – Java JDK/JRE Unattended Install as you need Java JDK installed.
Possibly the easiest manual way is in Windows 10 and Windows 2012 R2 (likely previous versions too but don’t have them handy while writing this): From the Desktop, right click on the Windows icon (Start Menu) in the bottom left of the screen Click on “System” Click the “Advanced system settings” link in the left…
Unix SED command is very useful to make changes to a configuration file when you know what the default values are, below is a way to do a SED-like text change in PowerShell Example: TeamCity Build Agent Configuration file needs updated so it knows where the server is.