techjunkie.tv

powershell tips, ccna tips, tech videos, learn tech

Archive for the ‘PowerShell’ Category

How to Backup A Sybase Database With Powershell and Send Syslog MEssage With Powershell —

#Scott Alvarino #01/28/2011 Version 3 #This is script to backup Sybase db to 2 other different locations. #It also notifies the user through email, plus leaves a syslog message and a winEvent message. #add-pssnapin NetCmdlets # Remove the comment if pssnapin is not in the PS profile #Variables Section That is configureable $ftptimeframemin =”-8change_me” #How [...]

How do you create a message Box with powershell? —

Hello Everyone here is a another Windows Powershell tip that I use everyday, I use this to notify me of a backup I run so that I know it completed. Here is the code [system.Reflection.Assembly]::LoadWithPartialName(“System.Windows.Forms”);[Windows.Forms.MessageBox]::Show(“The UAS was backedup at $(get-date)”, “UAS Nightly Backup”, [Windows.Forms.MessageBoxButtons]::OK, [Windows.Forms.MessageBoxIcon]::Information) What do you think?