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.
Add comment