Access denied when trying to access shared folder on remote note. Tried CredSSP but still get the error.

153 views
Skip to first unread message

SA

unread,
May 16, 2018, 7:38:45 PM5/16/18
to rundeck-discuss
Can anyone please help sort out what could be going wrong when attempting to run a powershell script (that accesses a shared drive) on a remote windows 2012 server ?
To ensure the script itself works, I ran it by itself on the Windows server and it works fine. 
I did follow the document titled: "Enable CredSSP Authentication Windows"

Additionally, instead of running the command that accesses a shared drive, if I run something basic on the remote windows server eg: ipconfig, that works fine.
Both the remote server and the rundeck server are windows (Server 2012 and Windows 7 respectively)
Both the machines are logged in with the same user

Here's the command that is being run on the remote Windows Server 2012 host (TOMYSERVER in the log below):
    copy \\companyhome\shares\NewBuilds\Runtime\client\jars\* C:\temp_install 
(This command is the content of teh 1_copy_local.bat script seen in debug below)

Here's the error is see:
   Access is denied. 
   [overthere-winrm:TOMYSERVER ] failed: exit code: 1 

Here's the debug output I see in logs:
[workflow] beginExecuteNodeStep(TOMYSERVER): NodeDispatch: CommandItem{label='Run Script on TOMYSERVER', command=[5 words]} 
18:11:24   [overthere-winrm:TOMYSERVER] powershell.exe -ExecutionPolicy Bypass -command C:\TOMYTEST\scripts\1_copy_local.bat 
18:11:24   [overthere-winrm:TOMYSERVER] ConnectionOptions[
connectionTimeoutMillis --> 15000
winrmEnableHttps --> false
winrmKerberosDebug --> false
address --> TOMYSERVER
winrmKerberosUseHttpSpn --> false
os --> WINDOWS
winrmKerberosAddPortToSpn --> false
connectionType --> WINRM_INTERNAL
password --> ********
winrm-cmd --> CMD
winrmKerberosTicketCache --> false
port --> 5985
username --> TO...@TOMYDOMAIN.COM


Message has been deleted

SA

unread,
May 30, 2018, 3:54:22 PM5/30/18
to rundeck-discuss

 
 Would appreciate anyone providing any clues on where to start banging against. This problem seems intractable.
Reply all
Reply to author
Forward
0 new messages