mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-06-30 04:31:39 +02:00
Update the manuals
This commit is contained in:
@ -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 {
|
||||
|
@ -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" }
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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" }
|
||||
|
@ -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" }
|
||||
|
@ -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" }
|
||||
|
@ -10,7 +10,7 @@
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
#
|
||||
|
||||
#Requires -Version 2.0
|
||||
|
||||
try {
|
||||
|
@ -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
|
||||
|
@ -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 = "")
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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" }
|
||||
|
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user