While running the script I've got an error when it tries to kill the PSSession, the "-Force" parameter cannot be found.
At line 101, I think it should be: Get-PSSession | Remove-PSSession -Confirm:$false
Error message:
PS>TerminatingError(Remove-PSSession): "A parameter cannot be found that matches parameter name 'Force'."
Remove-PSSession : A parameter cannot be found that matches parameter name 'Force'.
At ..\SPPatchify.ps1:101 char:38
Get-PSSession | Remove-PSSession -Force
Hi Jeff,
While running the script I've got an error when it tries to kill the PSSession, the "-Force" parameter cannot be found. At line 101, I think it should be: Get-PSSession | Remove-PSSession -Confirm:$false
Error message:
Apart from this issue, the script runs very well. Great work!
All the best,
HP