Back up SQL Server database with SQL Server Objects(SMO) using PowerShell
It is easy to set up SQL Server Agent jobs to backup database in timely fashion.But why not in PowerShell while SMO is exposed in .NET assembly?Usage:Backup-Database -dbName [string] -deviceNames...
View ArticleAdd-Member: Extended Example
Add-Member cmdlet provides a way to "Add(s) a user-defined custom member to an object"There are 3 examples on get-help add-member help file but they do not seem to quite reflect the real power of this...
View ArticleWhile Creating a Simple EventLog PsProvider (in C#)
When PowerShell was still called Monad, there was a PDC05 Hands-On Lab document available with Monad distribution. The document was about "Creating Monad Providers" for Access database.I have started...
View ArticleWhile Creating a Simple EventLog PsProvider -Part 2
I was finally able to add EntryType dynamic parameter to Get-ChildItemBeen slacking off lately and finally made some time to extend Get-ChildItem cmdlet in EventLog provider.Now, in the following...
View ArticleInstalling PowerShell with Unattended Windows CD
Here are some steps to include Windows PowerShell(for English Version of Windows XP w/ SP2) in an unattended Windows CD.First,I have copied Windows CD content to "C:\xpcd"Windows PowerShell...
View Article