From c82ddcbdac8e179c9ce64e65beae9d7406265fa1 Mon Sep 17 00:00:00 2001 From: Floris van Enter Date: Fri, 19 Jan 2018 12:56:33 +0100 Subject: [PATCH] fixed typo & added Get-PsBeeps --- PowerShell/MSSQLServer/export-SQLToExcel.ps1 | 2 +- PowerShell/function_get-psbeeps.ps1 | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 PowerShell/function_get-psbeeps.ps1 diff --git a/PowerShell/MSSQLServer/export-SQLToExcel.ps1 b/PowerShell/MSSQLServer/export-SQLToExcel.ps1 index ce28552..a71938b 100644 --- a/PowerShell/MSSQLServer/export-SQLToExcel.ps1 +++ b/PowerShell/MSSQLServer/export-SQLToExcel.ps1 @@ -33,7 +33,7 @@ If you to mail the sheet, fill in an email body This is an optional parameter; if it is not included, an empty mail will be sent .EXAMPLE Read data from the SQL Server, save it in a file and mail it to floris@entermi.nl -download-CsvToSQL.ps1 -sqServer "SQL01" -database "migrate-data" -table "export" -url "http://localhost/data.csv" -file "c:\temp\file.csv" +download-CsvToSQL.ps1 -sqlServer "SQL01" -database "migrate-data" -table "export" -url "http://localhost/data.csv" -file "c:\temp\file.csv" .LINK https://github.com/beakerflo/EnterMI #> diff --git a/PowerShell/function_get-psbeeps.ps1 b/PowerShell/function_get-psbeeps.ps1 new file mode 100644 index 0000000..9556d26 --- /dev/null +++ b/PowerShell/function_get-psbeeps.ps1 @@ -0,0 +1,19 @@ +function Get-PsBeeps (){ + + <# + .SYNOPSIS + Create random beeps + .DESCRIPTION + Beeps random beeps from the console. Press CRTL-C to break. + Written by Sten Lootens + .EXAMPLE + .\GetPsBeeps() + #> + + While($true){ + [Console]::Beep( + (Get-Random -Minimum 200 -Maximum 8000) + ,500 + ) + } + } \ No newline at end of file