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