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 …
Since I have no memory (it’s actually this blog’s main purpose!), here is a summary of the possible subnet masks: Subnet Mask …
Like in previous “educationnal” post, I consider that theory is bullshit; only an example is valuable! So here’s a few examples to …
Again and again, one good thing with IT is that you have million ways to do the same thing. That’s right with …
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 …
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’ …
Because we’re not “sexists”, here’s some common and usefull Bash to PS equivalents. Yes, *nixes pussies, you can now start to use …
Thanks to Jason Niver on MSDN Blogs (Downloading files from the internet in PowerShell (with progress)), yep, we can download a file …
If your PC is running Windows 8 Pro and you’d like to get Windows 8 Media Center Pack so you can watch …
Sometimes a script have to authenticate, but it would be a really bad idea to store passwords in scripts. Encrypt them! Store-Creds.ps1 …
To improve readability and to easily differentiate the items returned by the script to the user, the usage of color in the …
How to add an help section/function to your own powershell scripts. Here we are: you can add comment based help either to …
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-).
Here is a function to allow a script to log its execution. Output data into a log file. Options for path, extension …
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; …
Here are the supported hotkeys by the PowerShell console Hotkey Explanation Up arrow Scan backward through your command history. Down arrow Scan …