Skip to content

Commit 3655830

Browse files
committed
Remove trailing whitespaces
1 parent 5ede887 commit 3655830

File tree

43 files changed

+215
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+215
-215
lines changed

AD-GROUP-Get-NestedMember/AD-GROUP-Get-NestedMember.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
Write-Verbose -Message "[$FunctionName] Group '$Group' - Name:$($_.name) | ObjectClass:$($_.ObjectClass)"
7575
$CurrentObject = $_
7676
switch ($_.ObjectClass)
77-
{
77+
{
7878
"group" {
7979
# Output Object
8080
$CurrentObject | Select-Object Name,SamAccountName,ObjectClass,DistinguishedName,@{Label="ParentGroup";Expression={$ParentGroup}}, @{Label="RelationShipPath";Expression={$RelationShipPath}}

AD-GROUP-Get-ParentGroup/AD-GROUP-Get-ParentGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
[Parameter(Mandatory = $true)]
2727
[String[]]$Name
2828
)
29-
BEGIN
29+
BEGIN
3030
{
3131
TRY{
3232
if(-not(Get-Module Activedirectory -ErrorAction Stop)){

AD-GROUP-Monitor_MemberShip/AD-GROUP-Monitor_MemberShip.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
object and all its child objects.
2525
2626
.PARAMETER GroupScope
27-
Specify the group scope of groups you want to find. Acceptable values are:
28-
'Global';
29-
'Universal';
27+
Specify the group scope of groups you want to find. Acceptable values are:
28+
'Global';
29+
'Universal';
3030
'DomainLocal'.
3131
3232
.PARAMETER GroupType
33-
Specify the group type of groups you want to find. Acceptable values are:
33+
Specify the group type of groups you want to find. Acceptable values are:
3434
'Security';
3535
'Distribution'.
3636
@@ -111,7 +111,7 @@
111111
112112
.NOTES
113113
NAME: AD-GROUP-Monitor_MemberShip.ps1
114-
AUTHOR: Francois-Xavier Cat
114+
AUTHOR: Francois-Xavier Cat
115115
116116
WWW: www.lazywinadmin
117117
Twitter:@lazywinadmin

AD-OBJECT-Get-ADSITokenGroup/Get-ADSITokenGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
.NOTES
3636
Francois-Xavier Cat
3737
www.lazywinadmin.com
38-
@lazywinadm
38+
@lazywinadm
3939
#>
4040
[CmdletBinding()]
4141
param

AD-SITE-Add-ADSubnet(ADSI)/Add-ADSubnet.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
.NOTES
3434
NAME: FUNCT-AD-SITE-Add-ADSubnet_using_ADSI.ps1
35-
AUTHOR: Francois-Xavier CAT
35+
AUTHOR: Francois-Xavier CAT
3636
DATE: 2013/11/07
3737
3838
WWW: www.lazywinadmin.com

AD-SITE-Find_Missing_Subnets/AD-Find_missing_subnets_in_ActiveDirectory.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<#
22
.SYNOPSIS
3-
This script goal is to get all the missing subnets from the
3+
This script goal is to get all the missing subnets from the
44
NETLOGON.LOG file from each Domain Controllers in the Active Directory.
55
It will copy all the NETLOGON.LOG locally and parse them.
66
77
.DESCRIPTION
8-
This script goal is to get all the missing subnets from the
8+
This script goal is to get all the missing subnets from the
99
NETLOGON.LOG file from each Domain Controllers in the Active Directory.
1010
It will copy all the NETLOGON.LOG locally and parse them.
1111
@@ -30,7 +30,7 @@
3030
3131
.NOTES
3232
NAME: TOOL-AD-SITE-Report_Missing_Subnets.ps1
33-
AUTHOR: Francois-Xavier CAT
33+
AUTHOR: Francois-Xavier CAT
3434
DATE: 2011/10/11
3535
3636

AD-SITE-Get-ADSiteInventory/Get-ADSiteInventory.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
NotificationEnabled = $LinksInfo.NotificationEnabled -join ','
8787
TransportType = $LinksInfo.TransportType -join ','
8888
InterSiteReplicationSchedule = $LinksInfo.InterSiteReplicationSchedule -join ','
89-
DataCompressionEnabled = $LinksInfo.DataCompressionEnabled -join ','
89+
DataCompressionEnabled = $LinksInfo.DataCompressionEnabled -join ','
9090
#}
9191
#>
9292
}#New-Object -TypeName PSoBject

AD-USER-Report_Expiring_users/AD-USER-Report_Expiring_users.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PARAM (
4343
)
4444
BEGIN
4545
{
46-
# Add Active Directory Module
46+
# Add Active Directory Module
4747

4848
# Define Email Subject
4949
[String]$EmailSubject = "PS Report-ActiveDirectory-Expiring Users (in the next $days days)"

EXCHANGE-Connect-ExchangeOnline/Connect-ExchangeOnline.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757
CATCH
5858
{
59-
$Error[0]
59+
$Error[0]
6060
}
6161
}
6262
}

O365-Get-O365CalendarEvent/O365-Get-O365CalendarEvent.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@
201201
}
202202
CATCH
203203
{
204-
$PSCmdlet.ThrowTerminatingError($_)
204+
$PSCmdlet.ThrowTerminatingError($_)
205205
}
206206
}
207207
}

SCCM-Get-SCCMUserCollectionDeployment/Get-SCCMUserCollectionDeployment.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
# Find the User in SCCM CMDB
111111
$User = Get-WMIObject @Splatting -Query "Select * From SMS_R_User WHERE UserName='$UserName'"
112112

113-
# Find the collections where the user is member of
113+
# Find the collections where the user is member of
114114
Get-WmiObject -Class sms_fullcollectionmembership @splatting -Filter "ResourceID = '$($user.resourceid)'" |
115115
ForEach-Object {
116116

@@ -123,7 +123,7 @@
123123
{
124124
IF ($DeploymentIntent -eq 'NA')
125125
{
126-
# Find the Deployment on one collection
126+
# Find the Deployment on one collection
127127
$Deployments = (Get-WmiObject @splatting -Query "Select * From SMS_DeploymentInfo WHERE CollectionID='$($Collection.CollectionID)'")
128128
}
129129
ELSE

SCSM-Get-SCSMWorkItemAffectedCI/Get-SCSMWorkItemAffectedCI.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
)
2626
PROCESS
2727
{
28-
# Find the Ticket Object
28+
# Find the Ticket Object
2929
$WorkItemObject = Get-SCSMObject -id $GUID
3030

3131
# Find the Affected Configuration Items

SCSM-Get-SCSMWorkItemRelatedCI/Get-SCSMWorkItemRelatedCI.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
)
2626
PROCESS
2727
{
28-
# Find the Ticket Object
28+
# Find the Ticket Object
2929
$WorkItemObject = Get-SCSMObject -id $GUID
3030

3131
# Find the Related Configuration Items

SCSM-IR-Get-SCSMIRComment/Get-SCSMIRComment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454
CATCH
5555
{
56-
$Error[0]
56+
$Error[0]
5757
}
5858
} #FOREACH ($IR in $Incident)
5959

SCSM-SR-Add-SCSMSRComment/Add-SCSMSRComment.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
}
7070
CATCH
7171
{
72-
$Error[0]
72+
$Error[0]
7373
}
7474
}
7575
PROCESS
@@ -120,7 +120,7 @@
120120
}
121121
CATCH
122122
{
123-
$Error[0]
123+
$Error[0]
124124
} #CATCH
125125
} #PROCESS
126126
} # Function

TOOL-Clean-MacAddress/Clean-MacAddress.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function Clean-MacAddress
9797
IF ($PSBoundParameters['Lowercase'])
9898
{
9999
$MacAddress = $macaddress.tolower()
100-
}
100+
}
101101
IF ($PSBoundParameters['Separator'])
102102
{
103103
IF ($Separator -ne "None")

TOOL-ConvertTo-StringList/ConvertTo-StringList.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
$Computers = "Computer1","Computer2"
1818
ConvertTo-StringList -Array $Computers
1919
20-
Output:
20+
Output:
2121
Computer1,Computer2
2222
2323
.EXAMPLE
2424
$Computers = "Computer1","Computer2"
2525
ConvertTo-StringList -Array $Computers -Delimiter "__"
2626
27-
Output:
27+
Output:
2828
Computer1__Computer2
2929
3030
.EXAMPLE
3131
$Computers = "Computer1"
3232
ConvertTo-StringList -Array $Computers -Delimiter "__"
3333
34-
Output:
34+
Output:
3535
Computer1
3636
3737
.NOTES

TOOL-Get-AsciiReaction/Get-AsciiReaction.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Get-AsciiReaction
2424
[cmdletbinding()]
2525
Param
2626
(
27-
# Name of the Ascii
27+
# Name of the Ascii
2828
[Parameter()]
2929
[ValidateSet(
3030
'Shrug',
@@ -83,15 +83,15 @@ function Get-AsciiReaction
8383
'Shrug' = [char[]]@(175, 92, 95, 40, 12484, 41, 95, 47, 175) -join '' | Write-Ascii
8484
'Disapproval' = [char[]]@(3232, 95, 3232) -join '' | Write-Ascii
8585
'TableFlip' = [char[]]@(40, 9583, 176, 9633, 176, 65289, 9583, 65077, 32, 9531, 9473, 9531, 41) -join '' | Write-Ascii
86-
'TableBack' = [char[]]@(9516, 9472, 9472, 9516, 32, 175, 92, 95, 40, 12484, 41) -join '' | Write-Ascii
87-
'TableFlip2' = [char[]]@(9531, 9473, 9531, 32, 65077, 12541, 40, 96, 1044, 180, 41, 65417, 65077, 32, 9531, 9473, 9531) -join '' | Write-Ascii
88-
'TableBack2' = [char[]]@(9516, 9472, 9516, 12494, 40, 32, 186, 32, 95, 32, 186, 12494, 41) -join '' | Write-Ascii
89-
'TableFlip3' = [char[]]@(40, 12494, 3232, 30410, 3232, 41, 12494, 24417, 9531, 9473, 9531) -join '' | Write-Ascii
90-
'Denko' = [char[]]@(40, 180, 65381, 969, 65381, 96, 41) -join '' | Write-Ascii
91-
'BlowKiss' = [char[]]@(40, 42, 94, 51, 94, 41, 47, 126, 9734) -join '' | Write-Ascii
92-
'Lenny' = [char[]]@(40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41) -join '' | Write-Ascii
93-
'Angry' = [char[]]@(40, 65283, 65439, 1044, 65439, 41) -join '' | Write-Ascii
94-
'DontKnow' = [char[]]@(9488, 40, 39, 65374, 39, 65307, 41, 9484) -join '' | Write-Ascii
86+
'TableBack' = [char[]]@(9516, 9472, 9472, 9516, 32, 175, 92, 95, 40, 12484, 41) -join '' | Write-Ascii
87+
'TableFlip2' = [char[]]@(9531, 9473, 9531, 32, 65077, 12541, 40, 96, 1044, 180, 41, 65417, 65077, 32, 9531, 9473, 9531) -join '' | Write-Ascii
88+
'TableBack2' = [char[]]@(9516, 9472, 9516, 12494, 40, 32, 186, 32, 95, 32, 186, 12494, 41) -join '' | Write-Ascii
89+
'TableFlip3' = [char[]]@(40, 12494, 3232, 30410, 3232, 41, 12494, 24417, 9531, 9473, 9531) -join '' | Write-Ascii
90+
'Denko' = [char[]]@(40, 180, 65381, 969, 65381, 96, 41) -join '' | Write-Ascii
91+
'BlowKiss' = [char[]]@(40, 42, 94, 51, 94, 41, 47, 126, 9734) -join '' | Write-Ascii
92+
'Lenny' = [char[]]@(40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41) -join '' | Write-Ascii
93+
'Angry' = [char[]]@(40, 65283, 65439, 1044, 65439, 41) -join '' | Write-Ascii
94+
'DontKnow' = [char[]]@(9488, 40, 39, 65374, 39, 65307, 41, 9484) -join '' | Write-Ascii
9595
}
9696
}
9797
}

TOOL-Get-ComputerInfo/Get-ComputerInfo.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function Get-ComputerInfo
1313
a local or remote machine.
1414
It requires PowerShell version 3 for the Ordered Hashtable.
1515
16-
The properties returned are the Computer Name (ComputerName),the Operating
17-
System Name (OSName), Operating System Version (OSVersion), Memory Installed
18-
on the Computer in GigaBytes (MemoryGB), the Number of
16+
The properties returned are the Computer Name (ComputerName),the Operating
17+
System Name (OSName), Operating System Version (OSVersion), Memory Installed
18+
on the Computer in GigaBytes (MemoryGB), the Number of
1919
Processor(s) (NumberOfProcessors), Number of Socket(s) (NumberOfSockets),
2020
and Number of Core(s) (NumberOfCores).
2121
@@ -69,7 +69,7 @@ function Get-ComputerInfo
6969
NumberOfCores : 4
7070
7171
ComputerName : FILESERVER
72-
OSName : Microsoft Windows Server 2008 R2 Standard
72+
OSName : Microsoft Windows Server 2008 R2 Standard
7373
OSVersion : 6.1.7601
7474
MemoryGB : 2
7575
NumberOfProcessors : 1
@@ -100,7 +100,7 @@ function Get-ComputerInfo
100100
Get-ComputerInfo -ComputerName FILESERVER,SHAREPOINT -ErrorLog d:\MyErrors.log.
101101
102102
ComputerName : FILESERVER
103-
OSName : Microsoft Windows Server 2008 R2 Standard
103+
OSName : Microsoft Windows Server 2008 R2 Standard
104104
OSVersion : 6.1.7601
105105
MemoryGB : 2
106106
NumberOfProcessors : 1

TOOL-Get-HelpMessage/Get-HelpMessage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function Get-HelpMessage
2727
Another installation is already in progress. Complete that installation before proceeding with this install
2828
2929
.EXAMPLE
30-
Get-HelpMessage –2147023278
30+
Get-HelpMessage –2147023278
3131
Another installation is already in progress. Complete that installation before proceeding with this install
3232
3333
.NOTES

TOOL-Get-ImageInformation/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Get-ImageInformation -FilePath c:\test\image.png
88
## Output example
99

1010
``` powershell
11-
Tag :
11+
Tag :
1212
PhysicalDimension : {Width=301, Height=308}
1313
Size : {Width=301, Height=308}
1414
Width : 301

TOOL-Get-LogFast/Get-LogFast.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
Get-LogFast -Path C:\367.msp.0.log -Match "09:36:43:417" -Verbose
1212
1313
VERBOSE: [PROCESS] Match found
14-
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: Font
14+
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: Font
1515
VERBOSE: [PROCESS] Match found
16-
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: Class
16+
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: Class
1717
VERBOSE: [PROCESS] Match found
18-
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: TypeLib
18+
MSI (s) (A8:14) [09:36:43:417]: Note: 1: 2205 2: 3: TypeLib
1919
2020
.NOTES
2121
Francois-Xavier cat

TOOL-Get-NetFramework/Get-NetFramework.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
.EXAMPLE
77
Get-NetFramework
88
9-
PSChildName Version
10-
----------- -------
11-
v2.0.50727 2.0.50727.4927
12-
v3.0 3.0.30729.4926
13-
Windows Communication Foundation 3.0.4506.4926
14-
Windows Presentation Foundation 3.0.6920.4902
15-
v3.5 3.5.30729.4926
16-
Client 4.5.51641
17-
Full 4.5.51641
18-
Client 4.0.0.0
9+
PSChildName Version
10+
----------- -------
11+
v2.0.50727 2.0.50727.4927
12+
v3.0 3.0.30729.4926
13+
Windows Communication Foundation 3.0.4506.4926
14+
Windows Presentation Foundation 3.0.6920.4902
15+
v3.5 3.5.30729.4926
16+
Client 4.5.51641
17+
Full 4.5.51641
18+
Client 4.0.0.0
1919
2020
.NOTES
2121
TODO:

TOOL-Get-NetFrameworkTypeAccelerator/Get-NetFrameworkTypeAccelerator.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function Get-NetFrameworkTypeAccelerator
22
{
33
<#
4-
.SYNOPSIS
4+
.SYNOPSIS
55
Function to retrieve the list of Type Accelerator available
66
.EXAMPLE
77
Get-NetFrameworkTypeAccelerator

TOOL-Get-NetworkLevelAuthentication/Get-NetworkLevelAuthentication.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function Get-NetworkLevelAuthentication
2222
NLAEnabled : True
2323
TerminalName : RDP-Tcp
2424
TerminalProtocol : Microsoft RDP 8.0
25-
Transport : tcp
25+
Transport : tcp
2626
2727
.EXAMPLE
2828
Get-NetworkLevelAuthentication -ComputerName DC01

TOOL-Get-PSObjectEmptyOrNullProperty/Get-PSObjectEmptyOrNullProperty.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Get-PSObjectEmptyOrNullProperty
66
77
.DESCRIPTION
88
Function to Get all the empty or null properties with empty value in a PowerShell Object.
9-
I used this function in a System Center Orchestrator where I had a runbook that could update most of the important
9+
I used this function in a System Center Orchestrator where I had a runbook that could update most of the important
1010
properties of a user. Using this function I knew which properties were not be updated.
1111
1212
.PARAMETER PSObject
@@ -29,21 +29,21 @@ function Get-PSObjectEmptyOrNullProperty
2929
MemberType : NoteProperty
3030
IsSettable : True
3131
IsGettable : True
32-
Value :
32+
Value :
3333
TypeNameOfValue : System.String
3434
Name : LastName
3535
IsInstance : True
3636
3737
MemberType : NoteProperty
3838
IsSettable : True
3939
IsGettable : True
40-
Value :
40+
Value :
4141
TypeNameOfValue : System.Object
4242
Name : nullable
4343
IsInstance : True
4444
4545
.NOTES
46-
Francois-Xavier Cat
46+
Francois-Xavier Cat
4747
www.lazywinadmin.com
4848
@lazywinadmin
4949
#>

0 commit comments

Comments
 (0)