Hi there, yes it is working successfully now with the links created as advised.
Thank you for your help.
Thank you for your help.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
mklink "c:\scripts\linked\ c:\Windows\System32\certsrv\CertEnrol"
# Connect to SFTP server PKI-02 using a password
open sftp://xxxxxxxx:xxxxx@xxxxx.replaceme.com.au/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory *using a temp location*
cd /var/www/html/CertEnroll
# Upload file
put C:\scripts\linked\certenroll\*.crl
#
# Disconnect
close
# Exit WinSCP
exit
C:\Windows\System32
folder is "magic" on 64-bit Windows. It shows a different contents to 32-bit applications (WinSCP) than to 64-bit applications (e.g. Windows Explorer).
C:\Windows\SysWOW64
, where there's no certsrv
subfolder.
certsrv
from WinSCP. You can though create a directory junction to the subfolder to create an alternative access path.
C:\Windows\sysnative
, which can be used by 32-bit applications like WinSCP to access the 64-bit System32
folder.
put
files referenced from that directory. Any suggestions or steps I am missing? I searched around and wasn't able to find anything like my situation.
c:\Program Files (x86)\WinSCP>winscp.com /script=c:\scripts\crl_transfer_pki.txt
# This script uploades the newly created CRLs To the PKI servers And overwrites existing files On the PKI Hosts
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect to SFTP server PKI-01 using a password
open sftp://xxxxxxxx:xxxxx@xxxxx.replaceme.com.au/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory *using a temp location*
cd /var/www/html/CertEnroll
# Upload file
put C:\Windows\System32\certsrv\CertEnroll\*.crl
#
# Disconnect
#
#
# Connect to SFTP server PKI-02 using a password
open sftp://xxxxxxxx:xxxxx@xxxxx.replaceme.com.au/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Change remote directory *using a temp location*
cd /var/www/html/CertEnroll
# Upload file
put C:\Windows\System32\certsrv\CertEnroll\*.crl
#
# Disconnect
close
# Exit WinSCP
exit
batch abort
reconnecttime 120
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "crl".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [1] crl@xxxxx.replaceme.com.au
/var/www/html/CertEnroll
No file matching '*.crl' found. (System Error. Code: 3.
The system cannot find the path specified)
Searching for host...
Connecting to host...
Authenticating...
Using username "crl".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [2] crl@xxxxx.replaceme.com.au
/var/www/html/CertEnroll
No file matching '*.crl' found. (System Error. Code: 3.
The system cannot find the path specified)
Session 'crl@xxxxx.replaceme.com.au' closed.
Active session: [1] crl@xxxxx.replaceme.com.au