|
|
|
|
Group: Forum Members
Last Login: Friday, February 22, 2013
Posts: 34,
Visits: 192
|
I'm trying to run a .exe file with Remote exec and "psexec.exe" like execution method.
It works if I put the computer name in, but it doesn't work as a variable %computername%
For example: (this works) Enter remote file name: c:\program files\ultravnc\MSLogonACL.exe Command-line arguments: /i /o \\acad2025\ADMIN$\mslogonacl.txt
(This doesn't work) Enter remote file name: c:\program files\ultravnc\MSLogonACL.exe Command-line arguments: /i /o \\%computername%\ADMIN$\mslogonacl.txt
So I'm not sure how to pass the computer names off to the arguments.
Also, What is ($support_share) ? I can't find this in any documentation, yet it exists on the right arrow next to command-line arguments..
|
|
|
|
|
Group: Administrators
Last Login: Friday, May 17, 2013
Posts: 1,686,
Visits: 3,175
|
Hi Ken,$(support_share) resolves to a local path on the remote computer for the share name that is used to upload "support files". |
|
|
|
|
Group: Forum Members
Last Login: Friday, February 22, 2013
Posts: 34,
Visits: 192
|
Hi Yuri,
That is the command line I was testing c:\program files\ultravnc\MSLogonACL.exe /i /o \\%computername%\ADMIN$\mslogonacl.txt
So can you use that variable like this: (?) ($support_share)\mslogonacl.txt Would this auto assume the computername target?
Ken
|
|
|
|
|
Group: Administrators
Last Login: Friday, May 17, 2013
Posts: 1,686,
Visits: 3,175
|
($support_share)\mslogonacl.txt Would this auto assume the computername target?
Yes this should work. We used to do something similar as part of the VNC Deployment Wizard.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Group: Forum Members
Last Login: Friday, February 22, 2013
Posts: 34,
Visits: 192
|
That did it!
|