Hi team,
If on server execution policy was set to unrestricted, then I got 2 errors.
Would you please assist, if it was ok to have this policy and why I got 2nd error:
You cannot call a method on a null-valued expression. (on line 32)
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>.\Reset-ScanEngineVersion.ps1
******server****** UpdateVersion: 2201010001
******server****** Stopping MSExchangeTransport, FMS, and updateservice...
******server****** Removing Microsoft engine folder...
******server****** Emptying metadata folder...
******server****** Starting services...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Filtering Management Service (FMS)' to start...
WARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to start...
WARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to start...
******server****** Starting engine update...
Running as *****
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At C:\Program Files\Microsoft\Exchange Server\V15\Scripts\Update-MalwareFilteringServer.ps1:85 char:34
+ ... Invoke-Command -ScriptBlock {Set-ExecutionPolicy RemoteSigned} -Erro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
--------
Connecting to ******server******.*****.
Dispatched remote command. Start-EngineUpdate -UpdatePath http://amupdatedl.microsoft.com/server/amupdate
--------
You cannot call a method on a null-valued expression.
At C:\Program Files\Microsoft\Exchange Server\V15\Scripts\Reset-ScanEngineVersion.ps1:110 char:25
+ if ($null -ne $transfer.BytesTotal -and
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
[PS] C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Get-EngineUpdateInformation
Engine : Microsoft
LastChecked : 01/04/2022 10:50:13 AM +02:00
LastUpdated : 01/04/2022 10:50:24 AM +02:00
EngineVersion : 1.1.18800.4
SignatureVersion : 1.355.1377.0
SignatureDateTime : 01/03/2022 11:36:20 PM +02:00
UpdateVersion : 2112330013
UpdateStatus : UpdateAttemptSuccessful