Wait for an Executable to finish
Again and again, one good thing with IT is that you have million ways to do the same thing. That’s right with …
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’ …
Sometimes a script have to authenticate, but it would be a really bad idea to store passwords in scripts. Encrypt them! Store-Creds.ps1 …
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’s an example (mine…) of a PowerShell profile First of all, if you don’t know about profile, you probably don’t have one; …
Test an RPC connection against one or more computer(s)
Use Outlook to send a message from your mailbox in your name and updates the Outlook security settings if needed To be …
Find IIS logfiles location (WMI request on IISWebServerSetting class) and clean them: delete files older than x days and compress (without any …
Standardized script to get TCP Connections stats for Nagios Monitoring NRPE Handler
Monitors a NIC (DevideID 1 in this example) events (network cable unplugged, NIC disabled, etc.)
Monitors a website availability, integrity and response times by looking for a specific string on a page
Create and install a self signed SSL certificate (with the SelfSSL7 utility)
An example on how to read parameters from an ini file. Content of the ‘parameters.ini’ file
Standardized script to get NIC traffic stats for Nagios Monitoring NRPE Handler