I'm new to Protect so forgive me if this is something that has been dicussed someplace else.
I downloaded and Approved the IT Scripts GetRebootTime. I attempted to run this on a remote server across our Domain WAN using Domain Admin credentials and received the error below.
Activity: Get-WmiObject
Reason: UnauthorizedAccessException
Target:
Exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementObjectSearcher.Initialize()
at System.Management.ManagementObjectSearcher.Get()
at Microsoft.PowerShell.Commands.GetWmiObjectCommand.BeginProcessing()
at System.Management.Automation.Cmdlet.DoBeginProcessing()
at System.Management.Automation.CommandProcessorBase.DoBegin()
Line in error: Get-WmiObject -Class Win32_OperatingSystem -ComputerName $ST_ComputerName -Credential $ST_Credential
Offset in line: 14
Is there something more that needs to be configured on our Protect server or remote server to get this script to work?
Thanks.