Category: PowerShell/Scripting
-
Make a background image stretch or adjust with CSS (Works w/ WordPress)
Stretching a background image with CSS This simple snippet of CSS will stretch or shrink a background image based on the resolution of the browser. Add the following CSS to your stylesheet(for WordPress add this under your themes stylesheet): body { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;…
Written by
-
Using PHP to display all Server Variables
Simple PHP Script to dump all server variables This simple PHP script can be a huge help when trouble shooting server variable related issues, like when using load balancers and in this case IIS with ARR. The way I used this script was to check and see if the HTTP_X_FORWARDED_PROTO had been set by my…
Written by
-
PowerShell – Simple Mass Server Shutdown/Reboot Script with Menu & Status Check (Video)
What is the purpose of this script? This is a simple script that can be used to mass shutdown or reboot any Windows hosts that are in the hosts.txt file. The script is menu driven and allows the user to view the hosts that are in the txt as well as edit it. There is…
Written by
-
PowerShell – Remote File Query Script
Recently I was given the task to find how many computers on my network had a particular file, this is the PowerShell script I used to tackle it. Administrative access on all hosts is assumed. This script will work to find any file or directory from a list of host names contained in a txt.…
Written by