mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-23 18:38:19 +02:00
Updated the header
This commit is contained in:
parent
36b82583d7
commit
9e9428f76f
@ -1,10 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Calculate SHA256 Hashes for Files
|
# Description: prints the SHA256 checksum of the given file
|
||||||
# ------------------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
param(
|
param(
|
||||||
[string]$File)
|
[string]$File)
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
|
# Description: initializes Git
|
||||||
|
# Author: Markus Fleschutz
|
||||||
|
# Source: github.com/fleschutz/PowerShell
|
||||||
|
# License: CC0
|
||||||
|
#
|
||||||
$UserName = read-host "Your full name: "
|
$UserName = read-host "Your full name: "
|
||||||
$UserEmail = read-host "Your email address: "
|
$UserEmail = read-host "Your email address: "
|
||||||
$UserEditor = read-host "Your favorite editor (nano, vi, emacs): "
|
$UserEditor = read-host "Your favorite editor (nano, vi, emacs): "
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Create a New Password
|
# Description: generates and prints a single new password
|
||||||
# ------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
$CharsPerPassword = 15
|
$CharsPerPassword = 15
|
||||||
$MinCharCode = 33
|
$MinCharCode = 33
|
||||||
$MaxCharCode = 126
|
$MaxCharCode = 126
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Create New Passwords
|
# Description: generates and prints a list of new passwords
|
||||||
# -----------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
$NumPasswords = 20
|
$NumPasswords = 20
|
||||||
$CharsPerPassword = 15
|
$CharsPerPassword = 15
|
||||||
$MinCharCode = 33
|
$MinCharCode = 33
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Shutdown the Local Computer
|
# Description: halts the local computer (administrator rights might be needed)
|
||||||
# ------------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
#
|
#
|
||||||
# NOTE: Halts the local computer! Administrator rights might be needed!
|
|
||||||
|
|
||||||
Stop-Computer
|
Stop-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,12 +1,9 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Reboot the Local Computer
|
# Description: reboots the local computer (administrator rights might be needed)
|
||||||
# ----------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
#
|
#
|
||||||
# NOTE: Reboots the local computer! Administrator rights might be needed.
|
|
||||||
|
|
||||||
Restart-Computer
|
Restart-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script for Text-To-Speech (TTS)
|
# Description: speaks the given text
|
||||||
# ------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
$Text = "Hello World!"
|
$Text = "Hello World!"
|
||||||
|
|
||||||
$voice = New-Object ComObject SAPI.SPVoice
|
$voice = New-Object ComObject SAPI.SPVoice
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script for Testing
|
# Description: simple test script
|
||||||
# -----------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
write-output "PowerShell Works!"
|
write-output "PowerShell Works!"
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Train the DNS Cache
|
# Description: trains the DNS cache with frequently used domain names
|
||||||
# ----------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
$DomainTable = import-csv domain_table.csv
|
$DomainTable = import-csv domain_table.csv
|
||||||
|
|
||||||
foreach($Row in $DomainTable) {
|
foreach($Row in $DomainTable) {
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script for Translating Texts
|
# Description: translates the given text
|
||||||
# ---------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
$SourceText = "Hello World!"
|
$SourceText = "Hello World!"
|
||||||
$SourceLang = "en"
|
$SourceLang = "en"
|
||||||
$TargetLanguages = "af","da","de","el","es","hr","it","ja","ko","pl","pt","nl","ru","tr","uk","vi"
|
$TargetLanguages = "af","da","de","el","es","hr","it","ja","ko","pl","pt","nl","ru","tr","uk","vi"
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Convert Text to Audio WAV files
|
# Description: converts the given text into an audio .WAV file
|
||||||
# ----------------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
# Configuration:
|
# Configuration:
|
||||||
$Text = "Hello, my name ist Bond, James Bond"
|
$Text = "Hello, my name ist Bond, James Bond"
|
||||||
$Speed = -1 # -10 is slowest, 10 is fastest
|
$Speed = -1 # -10 is slowest, 10 is fastest
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/snap/bin/powershell
|
#!/snap/bin/powershell
|
||||||
#
|
#
|
||||||
# PowerShell Script to Wake-up Other Computers
|
# Description: sends a magic packet to the given computer, waking him up
|
||||||
# --------------------------------------------
|
|
||||||
# Author: Markus Fleschutz
|
# Author: Markus Fleschutz
|
||||||
# Source: github.com/fleschutz/PowerShell
|
# Source: github.com/fleschutz/PowerShell
|
||||||
# License: CC0
|
# License: CC0
|
||||||
|
#
|
||||||
function Send-WOL
|
function Send-WOL
|
||||||
{
|
{
|
||||||
<#
|
<#
|
||||||
|
Loading…
Reference in New Issue
Block a user