This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Name: Auto Restart Folding@Home | |
Author: Bryan Vine | |
Date: 3/25/2020 | |
Description: Automatically restarts the local Folding @ Home client while cleaning out existing work to reset the connection countdown timer based on CPU & GPU usage. | |
Link: https://www.bryanvine.com/2020/03/covid-19-finding-cure-with-foldinghome.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Name: Restart Folding@Home | |
Author: Bryan Vine | |
Date: 3/25/2020 | |
Description: Restarts the local Folding @ Home client while cleaning out existing work to reset the connection countdown timer. | |
Notes: It will remove all existing work, so make sure you only run this if it's stuck in waiting for download. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
BV-MassDownloader.ps1 | |
https://www.bryanvine.com/2019/05/powershell-script-massdownloader.html | |
Author: Bryan Vine | |
Last updated: 05/12/2019 | |
Description: This function leverages BITS service for downloading many files from a source file with URLs, one per line. | |
The function multithreads, runs in the background asyncronously, can add more files to the queue realtime, | |
is idempotent, fault tolerant, can resume partially downloaded files. | |
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
BV-LinuxSSHRemoting.ps1 | |
https://www.bryanvine.com/2018/05/powershell-script-invoke.html | |
Author: Bryan Vine | |
Last updated: 05/1/2018 | |
Description: This function simplifies running linux shell commands over SSH while returning the output | |
#> | |
#Requires -version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
BV-ZipUtility.ps1 | |
http://www.bryanvine.com/2017/03/powershell-script-7zipunzip-powershell.html | |
Author: Bryan Vine | |
Last updated: 03/27/2017 | |
Description: This collection of functions can be used as a module or imported in other | |
modules to replace most of the functionality of 7zip.exe and unzip.exe. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goto ExecutePowershell | |
cls | |
#Powershell code block begining | |
#LINK http://www.bryanvine.com/2016/02/powershell-quick-script-wrap-any.html | |
0..2 | %{ | |
"Loop: $($_+1)" | |
[System.Console]::Beep(450, 110);[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110) | |
[System.Console]::Beep(675, 200);[System.Console]::Beep(675, 200);[System.Console]::Beep(600, 300);[System.Console]::Beep(450, 110) | |
[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110);[System.Console]::Beep(600, 200) | |
[System.Console]::Beep(600, 200);[System.Console]::Beep(550, 300);[System.Console]::Beep(525, 110);[System.Console]::Beep(450, 300) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 2 | |
Function Set-UserPassword{ | |
<# | |
.SYNOPSIS | |
Remotely sets local user password | |
.DESCRIPTION | |
Uses the [ADSI] object type to remotely connect to SAM to set user object password. | |
.PARAMETER ComputerName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 2 | |
Function Get-LocalUsers{ | |
<# | |
.SYNOPSIS | |
Remotely pulls local users and some properties | |
.DESCRIPTION | |
Uses the [ADSI] object type to remotely connect to SAM to query user objects for group membership, password expiration,etc | |
.PARAMETER ComputerName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 3.0 | |
Function Get-ServerHDDinfo{ | |
<# | |
.SYNOPSIS | |
Gets all harddrive size info using Invoke-Command (PS Remoting) | |
.DESCRIPTION | |
Returns one object per drive: drive mount, label, total size, used size, used percent, free size. | |
.PARAMETER ComputerName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 2.0 | |
Function Get-ServerHDDinfo{ | |
<# | |
.SYNOPSIS | |
Gets all harddrive size info using WMI | |
.DESCRIPTION | |
Returns one object per drive: drive mount, label, total size, used size, used percent, free size. | |
WMI is slower than invoke-command so this is a fail back function for when PSRemoting isn't enabled. |
NewerOlder