Skip to content

Commit acaadf4

Browse files
PsCustomObjectPsCustomObject
authored andcommitted
Fixed typos and grammar on multiple posts
1 parent c6f642e commit acaadf4

7 files changed

+9
-10
lines changed

_posts/2018-12-24-Add-Remove-Items-From-Array.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $adUsers = Get-AdUser -Filter '*' -Server $adDomainController
2929

3030
The above will return an array of AD objects containing all users matching the used filter.
3131

32-
Of course you can initialize an empty array with the following syntax
32+
Of course you can initialise an empty array with the following syntax
3333

3434
```powershell
3535
$myArray = @()
@@ -38,7 +38,7 @@ $myArray = @()
3838
[array]$myArray = @()
3939
```
4040

41-
The above will initialize an empty array that we can, for example, fill with an AD query or adding static elements like this
41+
The above will initialise an empty array that we can, for example, fill with an AD query or adding static elements like this
4242

4343
```powershell
4444
$myArray = (1,2,3,4,5)

_posts/2018-12-27-PowerShell-Delete-Files-Older-Than-Days.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ foreach ($file in $filesToPurge)
7373
}
7474
```
7575

76-
The above code has an issue though. Maybe no file in defined folder is older that the define time span period while this would not generate any error it is a good idea to add a small clause to our code like this:
76+
The above code has an issue though. Maybe no file in defined folder is older that the defined time span period while this would not generate any error it is a good idea to add a small clause to our code like this:
7777

7878
```powershell
7979
if ($filesToPurge.Count -gt 0)
@@ -108,7 +108,7 @@ There are probably more features that could make the script even more useful and
108108

109109
I am developing something to accommodate the above requirements as it is something I do rather frequently, it is not quite ready yet but I will share as soon code has been written and tested.
110110

111-
## Update January 5th 2019
111+
## Update January 5 2019
112112

113113
I have released a complete solution to perform automatic cleanup of files in folders called **Remove-OldFiles.ps1** it does all that I described in the post in addition to support:
114114

_posts/2019-09-08-PowerShell-Convert-to-Title-Case.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $firstString -eq $SecondString
4242
$true
4343
```
4444

45-
Most of the times this is not an issue but there are cases, for example when generating DisplayNames for users, where you want to *sanitize* the string so that it will use proper **Title Case**.
45+
Most of the times this is not an issue but there are cases, for example when generating DisplayNames for users, where you want to *sanitise* the string so that it will use proper **Title Case**.
4646

4747
## PowerShell convert string to Title Case
4848

_posts/2019-10-28-Measure-Script-Time.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ tags:
1111
- PowerShell Timer
1212
- PowerShell StopWatch
1313
- StopWatch how-to
14-
- PowerShell measure
1514
- PowerShell Execution Time
1615
---
1716

@@ -71,7 +70,7 @@ I use, *abuse* would be a better fit, the **Get-Date** cmdlet and measuring scri
7170
Write-Host $($startMs - $endMs)
7271
```
7372

74-
In the above example we initialize a variable containing begin of operation milliseconds, again have PowerShell count from 1 to 10000, set another variable at the end of the cycle and finally print out difference between the start and end time giving us elapsed milliseconds.
73+
In the above example we initialise a variable containing begin of operation milliseconds, again have PowerShell count from 1 to 10000, set another variable at the end of the cycle and finally print out difference between the start and end time giving us elapsed milliseconds.
7574

7675
**Warning Notice:** I personally discourage, and never use myself, this approach for different reasons. *First* it makes code more difficult to read and generally **slower** due use of multiple variables and extra calculation. *Second* it poses problems with the elapsed time itself, what if the example above would require 5 seconds to execute? Would it still work according to you?
7776
{: .notice--warning}

_posts/2020-08-04-PowerShell-Export-Registry-Key.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ header:
1212
teaser: "/assets/images/WindowsRegistry.png"
1313
---
1414

15-
Window registry has been for many years the joy and pain of every Windows Systems Administrator and if memory does not fail me it was even part of some of the old NT4 exams (the sweet sting of nostalgia!)
15+
Window registry has been for many years the joy and pain of every Windows Systems Administrator and if memory does not fail me it was even part of some of the old NT4 exams (the sweet sting of nostalgia!).
1616

1717
![MCSE Windows NT](/assets/images/WindowsNTBook.jpg)
1818

_posts/2020-08-11-PowerShell-Get-Users-Manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function Get-ReportChain
200200
}
201201
```
202202

203-
Function accepts **SamAccountName**, **UserPrincipalName** or **DistinguishedName** of a user account and will reutrn an array containing all direct and indirect reports of the user.
203+
Function accepts **SamAccountName**, **UserPrincipalName** or **DistinguishedName** of a user account and will return an array containing all direct and indirect reports of the user.
204204

205205
```powershell
206206
# Get reports for user

_posts/2022-01-25-Cannot bind argument to parameter-Token-Expiry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ It took me quite a bit to figure this out as no exception during the connection
4949
When I was about to give up and open a ticket with Microsoft, which is usually as helpful as freezer in the North Pole, I discovered by chance that opening connection to Exchange Online **first** and **only afterwards** to the Exchange on-prem was working as intended, allowing me to interact with both the Online service and my local Exchange.
5050

5151
**Note:** I have experienced/tested this with version 2.0.4 and 2.0.5 of Exchange Online PowerShell module but other versions could be affected as well.
52-
{: .notice-warning}
52+
{: .notice--warning}
5353

5454
I did not dig deep into the root cause of the issue but plan to do this tomorrow and already sent my feedback to exocmdletpreview {at} service {fullstop} microsoft {fullstop} com but I doubt I will hear anything from that channel. I plan to open a ticket anyhow to at least have an official statement on this.
5555

0 commit comments

Comments
 (0)