Currently browsing

Page 8

Subnet mask functions

Since I have no memory (it’s actually this blog’s main purpose!), here is a summary of the possible subnet masks: Subnet Mask …

FileFinder

Here’s a script playing around Get-ChildItem and Select-String. Searches files from various criterias (before a modification date, after a modification date, with …

Speeding up PowerShell startup

Jeffrey Snover [MSFT] has updated his Update-Gac script and yes it speeds up the start of the PowerShell console: Before running ‘update-Gac.ps1’ …

PowerShell CheatSheet – Bash > PS

Because we’re not “sexists”, here’s some common and usefull Bash to PS equivalents. Yes, *nixes pussies, you can now start to use …

Download file with progress

Thanks to Jason Niver on MSDN Blogs (Downloading files from the internet in PowerShell (with progress)), yep, we can download a file …

Create-Website

Question: What’s the best way to have standardized websites accross server(s)?
Answer: Using a script to create them! Thus, all websites will meet the same standards

In this example, the only mandatory parameter is the website display name. All others have default values, but the script will list them and ask confirmation before creating the website.
Furthermore, a selection of the IP address to use is required (yes, a webserver can have multiple IP address configured, I hope so by the way, at least two -one for the admin network-).

Write-LogFile

Here is a function to allow a script to log its execution. Output data into a log file. Options for path, extension …

PowerShell Profile Example

Here’s an example (mine…) of a PowerShell profile First of all, if you don’t know about profile, you probably don’t have one; …

Scroll to Top