Re: public services
You didn't post any new information. Nor does it look like you have followed the link I have posted.
echo "Mapowanie serwera_new_sitplan" > $logatt
[xml]$v = Get-Content -Path "C:\Other\att_new.xml"
$d = ConvertTo-SecureString -String $v.Configuration.Password
$i = New-Object System.Management.Automation.PSCredential "username", $d
$n = $i.GetNetworkCredential().Password
& "C:\tools\db_backup\winscp.exe" /command "option batch abort" "option confirm off" "open sftp://hyper:$n@192.168.153.101:22" "cd /tmp/test_adz" "put C:\tmp\fred\*.* /tmp/test_adz"
$?
Start-Sleep -Seconds 300