SmartCode Solutions Web Forum




Author Message
ken
 Posted Monday, March 12, 2012
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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..
Post #4147
Add to Twitter Add to Facebook
 Posted Monday, March 12, 2012
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, December 15, 2014
Posts: 1,759, Visits: 3,275
Hi Ken,
$(support_share) resolves to a local path on the remote computer for the share name that is used to upload "support files".

/images/forum/remote-exec-support-share.png

With regards of the %computername% variable. Could you send me the command line that you are trying to execute?

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Kindest Regards,
SmartCode Solutions Support


Edited: Monday, March 12, 2012 by Yury Averkiev (s-code)
Post #4148
Add to Twitter Add to Facebook
ken
 Posted Tuesday, March 13, 2012
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

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
Post #4149
Add to Twitter Add to Facebook
 Posted Tuesday, March 13, 2012
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, December 15, 2014
Posts: 1,759, Visits: 3,275

($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.

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
Kindest Regards,
SmartCode Solutions Support
Post #4150
Add to Twitter Add to Facebook
ken
 Posted Tuesday, March 13, 2012
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: Friday, February 22, 2013
Posts: 34, Visits: 192
That did it!
Post #4151
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse