File tree 8 files changed +40
-21
lines changed
TOOL-Remove-HashTableEmptyValue
8 files changed +40
-21
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ function Get-ScriptDirectory {
6
6
This function retrieve the current folder path
7
7
. EXAMPLE
8
8
Get-ScriptDirectory
9
+ . LINK
10
+ https://github.com/lazywinadmin/PowerShell
9
11
#>
10
12
if ($null -eq $hostinvocation ) {
11
13
Split-Path - Path $hostinvocation.MyCommand.path
Original file line number Diff line number Diff line change 1
1
function Get-StringLastDigit {
2
- <#
3
- . SYNOPSIS
4
- Get the last digit of a string
5
- . DESCRIPTION
6
- Get the last digit of a string using Regular Expression
7
- . PARAMETER String
8
- Specifies the String to check
9
- . EXAMPLE
10
- PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat5"
2
+ <#
3
+ . SYNOPSIS
4
+ Get the last digit of a string
5
+ . DESCRIPTION
6
+ Get the last digit of a string using Regular Expression
7
+ . PARAMETER String
8
+ Specifies the String to check
9
+ . EXAMPLE
10
+ PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat5"
11
11
12
- 5
13
- . EXAMPLE
14
- PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat"
12
+ 5
13
+ . EXAMPLE
14
+ PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat"
15
15
16
- <no output>
17
- . EXAMPLE
18
- PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat" -Verbose
16
+ <no output>
17
+ . EXAMPLE
18
+ PS C:\> Get-StringLastDigit -String "Francois-Xavier.cat" -Verbose
19
19
20
- <no output>
21
- VERBOSE: The following string does not finish by a digit: Francois-Xavier.cat
22
- . NOTES
23
- Francois-Xavier Cat
24
- @lazywinadmin
25
- lazywinadmin.com
20
+ <no output>
21
+ VERBOSE: The following string does not finish by a digit: Francois-Xavier.cat
22
+ . NOTES
23
+ Francois-Xavier Cat
24
+ @lazywinadmin
25
+ lazywinadmin.com
26
+ . LINK
27
+ https://github.com/lazywinadmin/PowerShell
26
28
#>
27
29
[CmdletBinding ()]
28
30
PARAM ($String )
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ function Get-Uptime {
32
32
Francois-Xavier Cat
33
33
@lazywinadmin
34
34
lazywinadmin.com
35
+ . LINK
36
+ https://github.com/lazywinadmin/PowerShell
35
37
#>
36
38
[CmdletBinding ()]
37
39
PARAM (
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ Function Invoke-Ping {
61
61
Warren F
62
62
http://ramblingcookiemonster.github.io/Invoke-Ping/
63
63
64
+ . LINK
65
+ https://github.com/lazywinadmin/PowerShell
66
+
64
67
#>
65
68
[cmdletbinding (DefaultParameterSetName = ' Ping' )]
66
69
param (
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ function New-CimSmartSession {
24
24
Francois-Xavier Cat
25
25
lazywinadmin.com
26
26
@lazywinadmin
27
+
28
+ . LINK
29
+ https://github.com/lazywinadmin/PowerShell
27
30
#>
28
31
# Requires -Version 3.0
29
32
[CmdletBinding ()]
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ function New-Password {
34
34
. NOTES
35
35
See ASCII Table http://www.asciitable.com/
36
36
Code based on a blog post of https://mjolinor.wordpress.com/2014/01/31/random-password-generator/
37
+
38
+ . LINK
39
+ https://github.com/lazywinadmin/PowerShell
37
40
#>
38
41
[CmdletBinding ()]
39
42
PARAM
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ function New-ScriptMessage {
52
52
lazywinadmin.com
53
53
@lazywinadmin
54
54
github.com/lazywinadmin
55
+ . LINK
56
+ https://github.com/lazywinadmin/PowerShell
55
57
#>
56
58
57
59
[CmdletBinding ()]
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ Function Remove-HashTableEmptyValue {
13
13
@lazywinadmin
14
14
lazywinadmin.com
15
15
github.com/lazywinadmin
16
+ . LINK
17
+ https://github.com/lazywinadmin/PowerShell
16
18
#>
17
19
[CmdletBinding ()]
18
20
PARAM ([System.Collections.Hashtable ]$HashTable )
You can’t perform that action at this time.
0 commit comments