Closed michaelulmer closed 2 years ago
Same issue here. The script fails because of New-ScheduledJobOption: The 'New-ScheduledJobOption' command was found in the module 'PSScheduledJob', but the module could not be loaded. For more information, run 'Import-Module PSScheduledJob'.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
MachinePolicy Undefined UserPolicy Undefined Process Unrestricted CurrentUser Unrestricted LocalMachine Unrestricted
PS C:\Windows\system32> C:\Users\TesterTest\Desktop\test-connection.ps1 It is not possible to call a method for an expression that has the NULL. In C:\Users\TesterTest\Desktop\test-connection.ps1:167 Zeichen:5
PowerShell is NOT running with elevated privileges
Recommended action: This test needs to be running with elevated privileges
Script completed successfully.