mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 09:58:19 +02:00
Update the manuals
This commit is contained in:
parent
9185eed551
commit
f0bc1b4160
@ -2,8 +2,24 @@
|
|||||||
|
|
||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
check-file-system.ps1 [[-Drive] <string>]
|
check-file-system.ps1 [<drive>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Checks the file system of a drive (needs admin rights)
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Drive <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 1
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +28,16 @@ check-file-system.ps1 [[-Drive] <string>]
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\check-file-system.ps1 C
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
check-windows-system-files.ps1
|
check-windows-system-files.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Checks the validity of the Windows system files (requires admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/check-windows-system-files.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ check-windows-system-files.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\check-windows-system-files.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of check-windows-system-files.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of check-windows-system-files.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
hibernate.ps1
|
hibernate.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Enables hibernate mode for the local computer (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/hibernate.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ hibernate.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\hibernate.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of hibernate.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of hibernate.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
install-ssh-client.ps1
|
install-ssh-client.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Installs the SSH client (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/install-ssh-client.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ install-ssh-client.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\install-ssh-client.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of install-ssh-client.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of install-ssh-client.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
install-ssh-server.ps1
|
install-ssh-server.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Installs the SSH server (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/install-ssh-server.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ install-ssh-server.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\install-ssh-server.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of install-ssh-server.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of install-ssh-server.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
install-wsl.ps1
|
install-wsl.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Installs Windows Subsystem for Linux (WSL) - needs admin rights.
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/install-wsl.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ install-wsl.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\install-wsl.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of install-wsl.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of install-wsl.ps1*
|
||||||
|
@ -2,8 +2,34 @@
|
|||||||
|
|
||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
list-fritzbox-calls.ps1 [[-Username] <string>] [[-Password] <string>]
|
list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Lists the phone calls of the FRITZ!Box device.
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/list-fritzbox-calls.ps1 [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Username <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 1
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Password <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 2
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +38,16 @@ list-fritzbox-calls.ps1 [[-Username] <string>] [[-Password] <string>]
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\list-fritzbox-calls.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-fritzbox-calls.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of list-fritzbox-calls.ps1*
|
||||||
|
@ -2,8 +2,34 @@
|
|||||||
|
|
||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
list-fritzbox-devices.ps1 [[-Username] <string>] [[-Password] <string>]
|
list-fritzbox-devices.ps1 [<username>] [<password>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Lists FRITZ!Box's known devices.
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/list-fritzbox-devices.ps1 [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Username <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 1
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Password <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 2
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +38,16 @@ list-fritzbox-devices.ps1 [[-Username] <string>] [[-Password] <string>]
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\list-fritzbox-devices.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-fritzbox-devices.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of list-fritzbox-devices.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
list-print-jobs.ps1
|
list-print-jobs.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Lists all jobs from all printers
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/list-print-jobs.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ list-print-jobs.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\list-print-jobs.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-print-jobs.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of list-print-jobs.ps1*
|
||||||
|
@ -30,7 +30,4 @@ Author: Markus Fleschutz · License: CC0
|
|||||||
## Related Links
|
## Related Links
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
|
|
||||||
Requires -Version 2.0
|
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of list-voices.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of list-voices.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
poweroff.ps1
|
poweroff.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Halts the local computer (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/poweroff.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ poweroff.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\poweroff.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of poweroff.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of poweroff.ps1*
|
||||||
|
@ -2,8 +2,27 @@
|
|||||||
|
|
||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
query-smart-data.ps1 [[-Directory] <string>]
|
query-smart-data.ps1 [<directory>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Queries the S.M.A.R.T. data of your HDD/SSD's and saves it to the current/given directory
|
||||||
|
(use smart-data2csv.ps1 to generate a CSV table for analysis).
|
||||||
|
|
||||||
|
Requires smartctl (smartmontools) and admin rights. For automation copy this script to /etc/cron.daily
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/query-smart-data.ps1 [[-Directory] <String>] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
-Directory <String>
|
||||||
|
|
||||||
|
Required? false
|
||||||
|
Position? 1
|
||||||
|
Default value
|
||||||
|
Accept pipeline input? false
|
||||||
|
Accept wildcard characters? false
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +31,16 @@ query-smart-data.ps1 [[-Directory] <string>]
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\query-smart-data.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of query-smart-data.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of query-smart-data.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
reboot.ps1
|
reboot.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Reboots the local computer (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/reboot.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ reboot.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\reboot.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of reboot.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of reboot.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
remove-print-jobs.ps1
|
remove-print-jobs.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
removes all jobs from all printers
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/remove-print-jobs.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ remove-print-jobs.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\remove-print-jobs.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of remove-print-jobs.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of remove-print-jobs.ps1*
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
## Synopsis & Description
|
## Synopsis & Description
|
||||||
```powershell
|
```powershell
|
||||||
restart-network-adapters.ps1
|
restart-network-adapters.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Restarts all local network adapters (needs admin rights).
|
||||||
|
|
||||||
|
## Syntax & Parameters
|
||||||
|
```powershell
|
||||||
|
/home/mf/PowerShell/Scripts/restart-network-adapters.ps1 [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -12,4 +18,16 @@ restart-network-adapters.ps1
|
|||||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example
|
||||||
|
```powershell
|
||||||
|
PS>.\restart-network-adapters.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
Author: Markus Fleschutz · License: CC0
|
||||||
|
|
||||||
|
## Related Links
|
||||||
|
htts://github.com/fleschutz/PowerShell
|
||||||
|
|
||||||
*Generated by convert-ps2md.ps1 using the comment-based help of restart-network-adapters.ps1*
|
*Generated by convert-ps2md.ps1 using the comment-based help of restart-network-adapters.ps1*
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-file-system.ps1 [<drive>]
|
check-file-system.ps1 [<drive>]
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
param([string]$Drive = "")
|
param([string]$Drive = "")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
check-windows-system-files.ps1
|
check-windows-system-files.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sfc /verifyOnly
|
sfc /verifyOnly
|
||||||
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }
|
if ($lastExitCode -ne "0") { throw "'sfc /verifyOnly' failed" }
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
hibernate.ps1
|
hibernate.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
|
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
|
||||||
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false);
|
[System.Windows.Forms.Application]::SetSuspendState("Hibernate", $false, $false);
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-ssh-client.ps1
|
install-ssh-client.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-ssh-server.ps1
|
install-ssh-server.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
install-wsl.ps1
|
install-wsl.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -Version 3
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-fritzbox-calls.ps1 [<username>] [<password>]
|
list-fritzbox-calls.ps1 [<username>] [<password>]
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -Version 3
|
||||||
|
|
||||||
param([string]$Username = "", [string]$Password = "")
|
param([string]$Username = "", [string]$Password = "")
|
||||||
|
|
||||||
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }
|
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -Version 3
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-fritzbox-devices.ps1 [<username>] [<password>]
|
list-fritzbox-devices.ps1 [<username>] [<password>]
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -Version 3
|
||||||
|
|
||||||
param([string]$Username = "", [string]$Password = "")
|
param([string]$Username = "", [string]$Password = "")
|
||||||
|
|
||||||
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }
|
if ($Username -eq "") { $Username = read-host "Enter username for FRITZ!Box" }
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#requires -version 4
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
list-print-jobs.ps1
|
list-print-jobs.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -Version 4
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$printers = Get-Printer
|
$printers = Get-Printer
|
||||||
if ($printers.Count -eq 0) { throw "No printer found" }
|
if ($printers.Count -eq 0) { throw "No printer found" }
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
#
|
|
||||||
#Requires -Version 2.0
|
#Requires -Version 2.0
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
poweroff.ps1
|
poweroff.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Stop-Computer
|
Stop-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
query-smart-data.ps1 [<directory>]
|
query-smart-data.ps1 [<directory>]
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -15,6 +14,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
param([string]$Directory = "")
|
param([string]$Directory = "")
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
reboot.ps1
|
reboot.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Restart-Computer
|
Restart-Computer
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#requires -version 4
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
remove-print-jobs.ps1
|
remove-print-jobs.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -Version 4
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$printers = Get-Printer
|
$printers = Get-Printer
|
||||||
if ($printers.Count -eq 0) { throw "No printer found" }
|
if ($printers.Count -eq 0) { throw "No printer found" }
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#Requires -RunAsAdministrator
|
<#
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
restart-network-adapters.ps1
|
restart-network-adapters.ps1
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -12,6 +11,8 @@
|
|||||||
htts://github.com/fleschutz/PowerShell
|
htts://github.com/fleschutz/PowerShell
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
#Requires -RunAsAdministrator
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
$StopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user