Skip to content

Commit d25bcff

Browse files
committed
add link to a few scripts
1 parent e335458 commit d25bcff

File tree

8 files changed

+40
-21
lines changed

8 files changed

+40
-21
lines changed

TOOL-Get-ScriptDirectory/Get-ScriptDirectory.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ function Get-ScriptDirectory {
66
This function retrieve the current folder path
77
.EXAMPLE
88
Get-ScriptDirectory
9+
.LINK
10+
https://github.com/lazywinadmin/PowerShell
911
#>
1012
if ($null -eq $hostinvocation) {
1113
Split-Path -Path $hostinvocation.MyCommand.path

TOOL-Get-StringLastDigit/Get-StringLastDigit.ps1

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
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"
1111
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"
1515
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
1919
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
2628
#>
2729
[CmdletBinding()]
2830
PARAM($String)

TOOL-Get-Uptime/Get-Uptime.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ function Get-Uptime {
3232
Francois-Xavier Cat
3333
@lazywinadmin
3434
lazywinadmin.com
35+
.LINK
36+
https://github.com/lazywinadmin/PowerShell
3537
#>
3638
[CmdletBinding()]
3739
PARAM (

TOOL-Invoke-Ping/Invoke-Ping.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ Function Invoke-Ping {
6161
Warren F
6262
http://ramblingcookiemonster.github.io/Invoke-Ping/
6363
64+
.LINK
65+
https://github.com/lazywinadmin/PowerShell
66+
6467
#>
6568
[cmdletbinding(DefaultParameterSetName = 'Ping')]
6669
param (

TOOL-New-CimSmartSession/New-CimSmartSession.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ function New-CimSmartSession {
2424
Francois-Xavier Cat
2525
lazywinadmin.com
2626
@lazywinadmin
27+
28+
.LINK
29+
https://github.com/lazywinadmin/PowerShell
2730
#>
2831
#Requires -Version 3.0
2932
[CmdletBinding()]

TOOL-New-Password/New-Password.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ function New-Password {
3434
.NOTES
3535
See ASCII Table http://www.asciitable.com/
3636
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
3740
#>
3841
[CmdletBinding()]
3942
PARAM

TOOL-New-ScriptMessage/New-ScriptMessage.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ function New-ScriptMessage {
5252
lazywinadmin.com
5353
@lazywinadmin
5454
github.com/lazywinadmin
55+
.LINK
56+
https://github.com/lazywinadmin/PowerShell
5557
#>
5658

5759
[CmdletBinding()]

TOOL-Remove-HashTableEmptyValue/Remove-HashTableEmptyValue.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Function Remove-HashTableEmptyValue {
1313
@lazywinadmin
1414
lazywinadmin.com
1515
github.com/lazywinadmin
16+
.LINK
17+
https://github.com/lazywinadmin/PowerShell
1618
#>
1719
[CmdletBinding()]
1820
PARAM([System.Collections.Hashtable]$HashTable)

0 commit comments

Comments
 (0)