Skip to content

Commit

Permalink
fix on PS version and capabilities handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek committed Mar 6, 2024
1 parent cf2aef8 commit 0e590d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Module/ExoHelper/ExoHelper.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'ExoHelper.psm1'

# Version number of this module.
ModuleVersion = '1.1.0'
ModuleVersion = '1.1.1'

# Supported PSEditions
CompatiblePSEditions = @('Desktop', 'Core')
Expand Down
4 changes: 4 additions & 0 deletions Module/ExoHelper/ExoHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ This command retrieves mailbox of user JohnDoe and returns just netId property
}
else
{
if($psversionTable.PSVersion -gt '7.4') #7.4+ supports ProgressAction
{
$splat['SkipHeaderValidation'] = $true
}
$splat['ProgressAction'] = 'SilentlyContinue'
}
$response = Invoke-WebRequest @splat
Expand Down

0 comments on commit 0e590d6

Please sign in to comment.