Update the manuals

This commit is contained in:
Markus Fleschutz
2021-09-11 11:37:22 +02:00
parent 9185eed551
commit f0bc1b4160
30 changed files with 372 additions and 46 deletions

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
check-file-system.ps1 [<drive>]
.DESCRIPTION
@ -12,6 +11,8 @@
Author: Markus Fleschutz · License: CC0
#>
#Requires -RunAsAdministrator
param([string]$Drive = "")
try {

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
check-windows-system-files.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
Author: Markus Fleschutz · License: CC0
#>
#Requires -RunAsAdministrator
try {
sfc /verifyOnly
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
hibernate.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false);

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
install-ssh-client.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
install-ssh-server.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
install-wsl.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()

View File

@ -1,5 +1,4 @@
#Requires -Version 3
<#
<#
.SYNOPSIS
list-fritzbox-calls.ps1 [<username>] [<password>]
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -Version 3
param([string]$Username = "", [string]$Password = "")
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }

View File

@ -1,5 +1,4 @@
#Requires -Version 3
<#
<#
.SYNOPSIS
list-fritzbox-devices.ps1 [<username>] [<password>]
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -Version 3
param([string]$Username = "", [string]$Password = "")
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }

View File

@ -1,5 +1,4 @@
#requires -version 4
<#
<#
.SYNOPSIS
list-print-jobs.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -Version 4
try {
$printers = Get-Printer
if ($printers.Count -eq 0) { throw "No printer found" }

View File

@ -10,7 +10,7 @@
.LINK
https://github.com/fleschutz/PowerShell
#>
#
#Requires -Version 2.0
try {

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
poweroff.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
Stop-Computer
exit 0

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
query-smart-data.ps1 [<directory>]
.DESCRIPTION
@ -15,6 +14,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
param([string]$Directory = "")

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
reboot.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
Restart-Computer
exit 0

View File

@ -1,5 +1,4 @@
#requires -version 4
<#
<#
.SYNOPSIS
remove-print-jobs.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
https://github.com/fleschutz/PowerShell
#>
#Requires -Version 4
try {
$printers = Get-Printer
if ($printers.Count -eq 0) { throw "No printer found" }

View File

@ -1,5 +1,4 @@
#Requires -RunAsAdministrator
<#
<#
.SYNOPSIS
restart-network-adapters.ps1
.DESCRIPTION
@ -12,6 +11,8 @@
htts://github.com/fleschutz/PowerShell
#>
#Requires -RunAsAdministrator
try {
$StopWatch = [system.diagnostics.stopwatch]::startNew()