Hello guys, I'm trying to check backup files on remote device through custom senzor. I have script which works perfectly if I run it in Powershell, but if I set it into custom sensor, it doesn't work.
Script is using credentials to connect remote drive:
$SecPasswd = ConvertTo-SecureString $password -AsPlainText -Force $Credentials = New-Object System.Management.Automation.PSCredential ($username, $secpasswd) New-PSDrive –Name "Y" –PSProvider FileSystem –Root "\\15.15.0.30\path" -Credential $Credentials
Error what I get from sensor is: "Logon failure: A specified logon session does not exist. It may already have been terminated"
Is here somethink what I forget to config? Thanks for any advice.
Article Comments
Hello,
please make sure no other device or sensor establishes a connection to the share using the same user name on the target machine (and therefore opens a session).
Furthermore please try to increase the scanning interval for this Custom EXE sensor to 10 minutes.
Does the sensor still flapping between error and ok?
Jun, 2016 - Permalink
UPDATE (can't edit my post) It looks like sensor is half-working, half-not. I got more than 30 emails in last hour with reports that sensor is in error state and that sensor is again OK.
Jun, 2016 - Permalink