Skip to content

Commit

Permalink
Merge pull request #14 from tmknight/develop
Browse files Browse the repository at this point in the history
v1.7.1
  • Loading branch information
tmknight authored Apr 14, 2023
2 parents 131894e + 3dcf15b commit bd17862
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 49 deletions.
5 changes: 3 additions & 2 deletions TMK-CoreModules.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Generated by: Travis M Knight
###
@{
ModuleVersion = '1.7.0'
ModuleVersion = '1.7.1'
GUID = '0c83f152-41a4-4997-92da-c06923fb3e12'
Author = 'Travis M Knight'
CompanyName = 'TMK World Headquarters'
Expand Down Expand Up @@ -110,7 +110,8 @@
* 2023-01-22: tmknight: v1.6.0: To be more in alignment with verb naming recommendations, rename: Get-OUObject to Get-ADOUObject;
Start-Fast-Ping to Test-FastPing; Start-MultiThreading to Invoke-Multithreading (aliases created for each)
* 2023-01-23: tmknight: v1.6.1: Revert breaking change in Invoke-Multithreading
* 2023-01-27: tmknight: v1.7.0: Rewrite to more cleanly expose functions and eliminate dependency warnings'
* 2023-01-27: tmknight: v1.7.0: Rewrite to more cleanly expose functions and eliminate dependency warnings
* 2023-04-14: tmknight: v1.7.1: Add `force` switch to Find-File'
}
}
}
1 change: 0 additions & 1 deletion public/Copy-WithProgress.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
$Message = "File Copy Progress:"
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2019-07-09: tmknight: Inception
#>

function Copy-WithProgress {
Expand Down
10 changes: 5 additions & 5 deletions public/Find-File.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
$MaxThreads = 100
.PARAMETER Quiet
This paramater is an option switch that will turn off visual progress
.PARAMETER Force
This paramater overrides the prompt about Windows directories in the search path
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2019-04-16: tmknight: Inception
Date: 2022-07-20: tmknight: New logic to allow for UNC paths and avoid double-seraching the source path
Date: 2022-08-18: tmknight: New logic to get search path into more threads to speed up search
#>

function Find-File {
Expand All @@ -59,7 +58,8 @@ function Find-File {
ValueFromPipeline = $false,
Position = 3)]
[Alias("NoProgress")]
[switch]$Quiet
[switch]$Quiet,
[switch]$Force
)

Begin {
Expand All @@ -71,7 +71,7 @@ function Find-File {

if ($dirs -match "\w{1,}") {
$level = "root"
if ($dirs -match "$regEx\\Windows\b") {
if ($dirs -match "$regEx\\Windows\b" -and -not $Force.IsPresent) {
$title = 'A "Windows" directory is in your search; this may take a very long time to complete.'
$prompt = ''
$abort = New-Object System.Management.Automation.Host.ChoiceDescription '&Abort', 'Aborts the operation'
Expand Down
2 changes: 0 additions & 2 deletions public/Get-ADGroupMembership.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2021-03-16
v0-1: Inception
#>

Function Get-ADGroupMembership {
Expand Down
13 changes: 0 additions & 13 deletions public/Get-ADOUObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@
$OperatingSystem = "Windows 10*"
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2017-05-22: tmknight: Inception
Date: 2017-06-06: tmknight: Added OS version to computer query;
added mail and display name to user query;
added validate set to scope and Category;
set defaults for InputObject and OperatingSystem;
prompt to continue if Category user, InputObject = "*" and Base = subtree
Date: 2017-06-12: tmknight: Check for ActiveDirectory module
Date: 2017-11-30: tmknight: Clean-up code
Date: 2018-07-03: tmknight: Add description parameter
Date: 2019-04-24: tmknight: Change name to reflect singular standard;
Changed Objects to InputObject;
Moved large data set warning further up
Date: 2023-01-22: tmknight: Updated example; rename to Get-ADOUObject
#>

function Get-ADOUObject {
Expand Down
10 changes: 0 additions & 10 deletions public/Get-ADSite.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,8 @@
Description
-----------
The example returns all AD Sites matching the IP/subnet input.
.NOTES
Author: Travis M Knight; tmknight
Date: 2017-05-24: tmknight: Inception
Date: 2017-09-27: tmknight: Code cleanup
Date: 2018-05-25: tmknight: Updated help messages
Date: 2018-08-22: tmknight: Add switch to pull all known AD Sites and subnets
Date: 2018-11-21: tmknight: Add Test-SubnetMember to assess boundary membership
Date: 2022-04-14: tmknight: Switch to Get-ADReplicationSite/Subnet from ActiveDirectory module
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Note: Please enter only one of an AD Site Name, a portion of the subnet address a computer name or the All switch.
Using more than one parameter is not supported at this time.
#>

function Get-ADSite {
Expand Down
10 changes: 0 additions & 10 deletions public/Invoke-Multithreading.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,6 @@
NOTE: When executing in VS-Code, the Write-InlineProgress command from TMK-CoreModules must be present
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2017-03-15: tmknight: Inception
Date: 2017-05-03: tmknight: Update notes. Modify how runspace status is tracked.
Date: 2017-11-30: tmknight: Update progress to account for VS-Code host.
Date: 2018-02-07: tmknight: Added switch to not show progress if desired for silent execution;Parameter verbiage change from LoopObjects to InputObject.
Date: 2018-02-14: tmknight: Add logic to force progress to 100% when all operations complete.
Date: 2018-08-09: tmknight: Clarify "Arguments" parameter.
Date: 2018-10-19: tmknight: Rename "InputObject" parameter to be in alignment with other PS modules.
Date: 2018-12-18: tmknight: Rename "Arguments" to "ArgumentList" to be in alignment with other PS modules.
Date: 2021-12-08: tmknight: Rename "MaxThreads" to "ThrottleLimit" to be in alignment with other PS modules.
Date: 2022-08-18: tmknight: Rename "NoProgress" to "Quiet" to be in alignment with other PS modules.
.LINK
https://blogs.technet.microsoft.com/heyscriptingguy/2015/11/26/beginning-use-of-powershell-runspaces-part-1/
https://github.com/tmknight/TMK-CoreModules
Expand Down
3 changes: 0 additions & 3 deletions public/Test-FastPing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
$Lookup = $false
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2017-04-28
v0-1: Inception
v0-6: Update to permit IP address
#>

Function Test-FastPing {
Expand Down
5 changes: 2 additions & 3 deletions public/Test-SubnetMember.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
False
.NOTES
Project: https://github.com/tmknight/TMK-CoreModules
Date: 2018-11-21: tmknight: Inception
.NOTES
Inspired by www.padisetty.com
.LINK
Inspired by https://www.padisetty.com
#>
function Test-SubnetMember {
param(
Expand Down

0 comments on commit bd17862

Please sign in to comment.