Quantcast
Channel: Scripts – PS Fab:\> Windows PowerShell scripts, functions, techniques, etc. IIS related… or not!
Browsing all 24 articles
Browse latest View live

Merry XMas

A little fun for christmas: display a flickering christmas tree... Really usefull! But can mesmerize more than one child... Christmas Tree | Customize your PowerShell console

View Article



The Daily Reboot (with execution check)

To workaround memory leaks in its application, one of my customers had an old bad thing on its webservers: a scheduled perl script to reboot the servers each day which uses the...

View Article

LogCentralizer

Today, I lacked inspiration; or rather I lacked needs to fill ... So I found one: Sudhakaran B. asked for some help on the "PowerShell Power Users" LinkedIn discussion group: we need to get the iis and...

View Article

Windows Server 2003 Inventory & BPA (Webserver)

Here's an example of HTML configuration report generation with PowerShell. The script scans a fews WMI classes to build the report, and act like a Best Practices Analyzer. Windows Server 2003 Inventory...

View Article

MonitorWP

Here's an example of how monitor CPU usage for a specific worker process and send an alert if a defined threshold is exceeded. MonitorWP | Worker Process CPU usage

View Article


SQL Server Databases Backup

Based on Olaf Helper's work (http://social.technet.microsoft.com/wiki/contents/articles/900.how-to-sql-server-databases-backup-with-powershell-en-us.aspx), here's the script to back up all non-system...

View Article

Challenge your Database – MS SQL (part. 1)

How-to check how many SQL queries can be runned during a defined time on your MS SQL server? Let's see   Challenge your Database – MS SQL (part. 1) | Challenge your Database – Oracle (part. 2)

View Article

Challenge your Database – Oracle (part. 2)

How-to check how many SQL queries can be runned during a defined time on your Oracle server? Let's see   Challenge your Database – MS SQL (part. 1) | Challenge your Database – Oracle (part. 2)

View Article


Restart computer if…

I like to find new needs to fill... Once again, I found one today on LinkedIn: Sambasiva Rao K. asked for some help on the "PowerShell Power Users" LinkedIn discussion group:  I have a requirement...

View Article


Check-BrokenLinks

Tired of using 'System.Net.WebClient' as I am? Upgrade to PowerShell v3 and use Invoke-WebRequest instead! My first application of Invoke-WebRequest is to create a broken links checker for my website....

View Article

Check-SSL

How-to get a SSL certificate expiration date and send an email alert if a defined threshold is exceeded, from a remote place. Check-SSL | Add-SSLCertificate | Create a self signed SSL certificate

View Article

Test Your SQL Server Backups with PowerShell

The best way of checking SQL Server backups is to restore them and run DBCC CHECKDB on the restored database. To do this regularly means that you need to automate the task. Allen White   That's right....

View Article

Working in and with Temporary Folders

Sometimes, we have to create a (totally random named) temporary folder, do some stuff in it and then delete everything. Here's the way

View Article


Create-NLBCluster

Network Load Balancing (NLB) didn't get a chance to have a new mmc to manage it in Windows 2008; we still have to use the old one inherited from Windows 2003. No way! Now we have a complete set of...

View Article

Mirror-Database

Database mirroring is a solution for increasing the availability of a SQL Server database. Mirroring is implemented on a per-database basis and works only with databases that use the full recovery...

View Article


Check-PasswordExpiration

Because 'Password never expires' is a really bad option for an administrator... For those who use their Active Directory account (the administrative one...) to connect to remote server roles through an...

View Article

Enhanced profile – Display my custom functions

Somehow, I can be compared to a goldfish : my memory is really, really poor... And I do eat fish! But no, I can't help... Sometimes I wrote a usefull function that I embed in my profile and some weeks...

View Article


Convert value in CSV file

Someone asked me recently how to convert a field value in a CSV file before to process the file with Log Parser. The value in this example is in bytes and needs to be converted to terabytes. The column...

View Article

YAWPU

YAW what!? No, I’m not trying to learn some Iroquoian language. That’s just the acronym of the useless script I just wrote to demonstrate a friend how Write-Progress can be hijacked. Thats why I called...

View Article

Self-Destruct

Sometimes we need want to play secret agents, sometimes we just want to remove our trail. Remote execution is one thing and then, sometimes, for non-legitimate purpose we need a local script to be...

View Article
Browsing all 24 articles
Browse latest View live




Latest Images