You can setup a Powershell script that sends credentials along with what work you want it to do, like list files, etc.. Here are some basic PowerShell commands that will guide you with this task. Remember that in your PowerShell script you must output/set
the StatusCode and StatusMessage properties.
StatusCode; 1=OK , 2=Warn , 3=Fail (basically any number outside of the 1,2 range is a failure)
Here are the PowerShell nuggets..
-creates secure password
$plainText = "MyPassword"
$secureString = ConvertTo-SecureString $plainText -AsPlainText -Force
-creates a credentials object using your info as specified above (fill in your domain and username obviously)
$MyCred = New-Object System.Management.Automation.PSCredential("domain\username",$secureString)
-map a drive to the remote location
New-PSDrive -Name X -PSProvider FileSystem -Root \fileserver1\downloads -persist -Credential $MyCred
-call a quick command to do something (this gets the items in the drive you just mapped)
The above command(s) you would run your powershell stuff to find dates, file sizes, qty, etc. Then set your StatusCode and StatusMessage (if necessary) and you are done. Enjoy..