1
0
mirror of https://github.com/fleschutz/PowerShell.git synced 2025-05-30 15:08:49 +02:00

Repaired UTF-8 BOM encoding

This commit is contained in:
Markus Fleschutz 2024-10-01 15:11:03 +02:00
parent b2413adad6
commit 49072fdbaa
452 changed files with 458 additions and 457 deletions
scripts
add-firewall-rules.ps1alert.ps1build-repo.ps1build-repos.ps1cd-autostart.ps1cd-crashdumps.ps1cd-desktop.ps1cd-docs.ps1cd-downloads.ps1cd-dropbox.ps1cd-etc.ps1cd-fonts.ps1cd-home.ps1cd-jenkins.ps1cd-logs.ps1cd-music.ps1cd-onedrive.ps1cd-pics.ps1cd-public.ps1cd-recent.ps1cd-recycle-bin.ps1cd-repo.ps1cd-repos.ps1cd-root.ps1cd-screenshots.ps1cd-scripts.ps1cd-ssh.ps1cd-temp.ps1cd-templates.ps1cd-trash.ps1cd-up.ps1cd-up2.ps1cd-up3.ps1cd-up4.ps1cd-users.ps1cd-videos.ps1cd-windows.ps1change-wallpaper.ps1check-admin.ps1check-apps.ps1check-bios.ps1check-cpu.ps1check-credentials.ps1check-day.ps1check-dns.ps1check-drive-space.ps1check-drives.ps1check-dusk.ps1check-easter-sunday.ps1check-file-system.ps1check-file.ps1check-firewall.ps1check-gpu.ps1check-hardware.ps1check-health.ps1check-independence-day.ps1check-ipv4-address.ps1check-ipv6-address.ps1check-iss-position.ps1check-mac-address.ps1check-midnight.ps1check-month.ps1check-moon-phase.ps1check-network.ps1check-noon.ps1check-os.ps1check-outlook.ps1check-password.ps1check-pending-reboot.ps1check-pnp-devices.ps1check-power.ps1check-powershell.ps1check-ps1-file.ps1check-ram.ps1check-repo.ps1check-repos.ps1check-santa.ps1check-smart-devices.ps1check-software.ps1check-subnet-mask.ps1check-swap-space.ps1check-symlinks.ps1check-time-zone.ps1check-uptime.ps1check-vpn.ps1check-weather.ps1check-week.ps1check-wind.ps1check-windows-system-files.ps1check-xml-file.ps1check-xml-files.ps1clean-repo.ps1clean-repos.ps1clear-dns-cache.ps1clear-recycle-bin.ps1clone-repos.ps1clone-shallow.ps1close-calculator.ps1close-chrome.ps1close-cortana.ps1

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Adds firewall rules for executables (needs admin rights). Adds firewall rules for executables (needs admin rights).
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Handles and escalates an alert Handles and escalates an alert
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds a repository Builds a repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Builds Git repositories Builds Git repositories
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's autostart folder Sets the working directory to the user's autostart folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Change to the crash dumps folder Change to the crash dumps folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's desktop folder Sets the working directory to the user's desktop folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the documents folder Sets the working directory to the documents folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's downloads folder Sets the working directory to the user's downloads folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's Dropbox folder Sets the working directory to the user's Dropbox folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes to the /etc directory Changes to the /etc directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the fonts folder Sets the working directory to the fonts folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's home folder Sets the working directory to the user's home folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes to the Jenkins home directory Changes to the Jenkins home directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the logs folder Sets the working directory to the logs folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's music folder Sets the working directory to the user's music folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's OneDrive folder Sets the working directory to the user's OneDrive folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's pictures folder Sets the working directory to the user's pictures folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Public folder Sets the working directory to the Public folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the 'recent' folder Sets the working directory to the 'recent' folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the recycle bin folder Sets the working directory to the recycle bin folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to a repository Sets the working directory to a repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's repos folder Sets the working directory to the user's repos folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the root directory Sets the working directory to the root directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's screenshots folder Sets the working directory to the user's screenshots folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the PowerShell scripts folder Sets the working directory to the PowerShell scripts folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's SSH folder Sets the working directory to the user's SSH folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the temporary folder Sets the working directory to the temporary folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the templates folder Sets the working directory to the templates folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the trash folder Sets the working directory to the trash folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to one level up Sets the working directory to one level up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to two directory levels up Sets the working directory to two directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to three directory levels up Sets the working directory to three directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to four directory levels up Sets the working directory to four directory levels up
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the users directory Sets the working directory to the users directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's videos folder Sets the working directory to the user's videos folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the Windows directory Sets the working directory to the Windows directory
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Changes the wallpaper Changes the wallpaper
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for admin rights Check for admin rights
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Query the app status Query the app status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the BIOS status Checks the BIOS status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the CPU status Checks the CPU status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks credentials Checks credentials
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the current day Determines the current day
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the DNS resolution Check the DNS resolution
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the drive space Checks the drive space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time of dusk Checks the time of dusk
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Easter Sunday Checks the time until Easter Sunday
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the file system of a drive (needs admin rights) Checks the file system of a drive (needs admin rights)
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a file Checks a file
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the firewall status Checks the firewall status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the GPU status Checks the GPU status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the hardware Checks the hardware
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the system health Checks the system health
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Independence Day Checks the time until Independence Day
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv4 address for validity Checks an IPv4 address for validity
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks an IPv6 address for validity Checks an IPv6 address for validity
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the ISS position Checks the ISS position
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given MAC address for validity Checks the given MAC address for validity
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Midnight Checks for Midnight
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Gets the current month name Gets the current month name
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the Moon phase Checks the Moon phase
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the network details Checks the network details
.DESCRIPTION .DESCRIPTION
@ -17,10 +17,10 @@
Write-Host "`n N E T W O R K" -foregroundColor green Write-Host "`n N E T W O R K" -foregroundColor green
& "$PSScriptRoot/list-ip-addresses.ps1" & "$PSScriptRoot/list-ip-addresses.ps1"
& "$PSScriptRoot/ping-local-hosts.ps1"
& "$PSScriptRoot/list-ssh-key.ps1" & "$PSScriptRoot/list-ssh-key.ps1"
& "$PSScriptRoot/ping-remote-hosts.ps1" & "$PSScriptRoot/ping-remote-hosts.ps1"
& "$PSScriptRoot/check-firewall" & "$PSScriptRoot/check-firewall"
& "$PSScriptRoot/check-dns.ps1" & "$PSScriptRoot/check-dns.ps1"
& "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/check-vpn.ps1"
& "$PSScriptRoot/ping-local-hosts.ps1"
exit 0 # success exit 0 # success

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks for Noon Checks for Noon
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the OS status Checks the OS status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Outlook's inbox Checks Outlook's inbox
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a password Checks a password
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check for pending reboots Check for pending reboots
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PnP devices Checks PnP devices
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the power status Checks the power status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Check the PowerShell status Check the PowerShell status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks PowerShell file(s) for validity Checks PowerShell file(s) for validity
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the RAM Checks the RAM
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks a Git repository Checks a Git repository
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks Git repositories Checks Git repositories
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time until Saint Nicholas Day Checks the time until Saint Nicholas Day
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the SMART device status Checks the SMART device status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the software Checks the software
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the given subnet mask for validity Checks the given subnet mask for validity
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the swap space Checks the swap space
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks symlinks in a folder Checks symlinks in a folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the time zone Checks the time zone
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the uptime Checks the uptime
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the VPN status Checks the VPN status
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the weather Checks the weather
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Determines the week number Determines the week number
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the wind conditions Checks the wind conditions
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks the validity of the Windows system files (requires admin rights) Checks the validity of the Windows system files (requires admin rights)
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Verifies an XML file Verifies an XML file
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Checks all XML files in a directory tree Checks all XML files in a directory tree
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans a repo Cleans a repo
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Cleans all Git repositories in a folder from untracked files Cleans all Git repositories in a folder from untracked files
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the DNS cache Clears the DNS cache
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clears the recycle bin folder Clears the recycle bin folder
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones Git repos Clones Git repos
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Clones a shallow Git repo Clones a shallow Git repo
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the calculator application Closes the calculator application
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes the Chrome browser Closes the Chrome browser
.DESCRIPTION .DESCRIPTION

@ -1,4 +1,4 @@
<# <#
.SYNOPSIS .SYNOPSIS
Closes Microsoft's Cortana application Closes Microsoft's Cortana application
.DESCRIPTION .DESCRIPTION

Some files were not shown because too many files have changed in this diff Show More