-
- Veteran
- Posts: 462
- Liked: 134 times
- Joined: Jul 16, 2015 1:31 pm
- Full Name: Marc K
- Contact:
AAP Script Paths
I'm trying out running a custom EXE as a pre-freeze script. I copied the EXE to the Veeam server and configured the job. When the job starts, I see the EXE load and then it sits there forever. Eventually Veeam gives up waiting for it.
I found that that after Veeam copied the EXE to the VM, it ran the following command:
\\<IP Address of VM>\admin$\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe
When I run this manually, I get a popup security warning.
"We can't verify who created this file. Are you sure you want to run this file?"
"This file is in a location outside your local network. Files from locations you don't recognize can harm your PC."
That's what's going on. Veeam is starting this on the VM and it is popping up this dialog that no one will ever respond to. It's occurring because of the weird way Veeam runs it. Now, I could work-around this by signing the EXE. But, that's a lot of extra work for an in-house custom exe.
If instead, Veeam ran it as "C:\Windows\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe", it wouldn't be running over a network share and Windows wouldn't care that it's not signed.
I found that that after Veeam copied the EXE to the VM, it ran the following command:
\\<IP Address of VM>\admin$\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe
When I run this manually, I get a popup security warning.
"We can't verify who created this file. Are you sure you want to run this file?"
"This file is in a location outside your local network. Files from locations you don't recognize can harm your PC."
That's what's going on. Veeam is starting this on the VM and it is popping up this dialog that no one will ever respond to. It's occurring because of the weird way Veeam runs it. Now, I could work-around this by signing the EXE. But, that's a lot of extra work for an in-house custom exe.
If instead, Veeam ran it as "C:\Windows\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe", it wouldn't be running over a network share and Windows wouldn't care that it's not signed.
-
- VP, Product Management
- Posts: 27120
- Liked: 2721 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: AAP Script Paths
Hi Marc,
Yes, you're correct Veeam is using admin share (cannot be changed now) to push and execute the script, so I guess either singing it or launching a batch file that would in turn trigger your custom application from the required path should be a way to.
Thanks!
Yes, you're correct Veeam is using admin share (cannot be changed now) to push and execute the script, so I guess either singing it or launching a batch file that would in turn trigger your custom application from the required path should be a way to.
Thanks!
-
- Product Manager
- Posts: 6431
- Liked: 729 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: AAP Script Paths
my 2 cents:
There is also a workaround for that, please check the very first comment on this article.
Thanks!
There is also a workaround for that, please check the very first comment on this article.
Thanks!
-
- Veteran
- Posts: 462
- Liked: 134 times
- Joined: Jul 16, 2015 1:31 pm
- Full Name: Marc K
- Contact:
Re: AAP Script Paths
I think if Veeam were using the Netbios name, I wouldn't have experienced this. The work-around would probably be to add the machine's local IP address to the Local Intranet zone. But, I think the true fix for all of Veeam's customers would be to stop running the file across the Admin$ share and do it through the local path instead.
-
- VP, Product Management
- Posts: 27120
- Liked: 2721 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: AAP Script Paths
Yes, we were just trying to suggest you a workaround, since switching from Admin$ share to the local path is not available. Thanks for the FR anyway!
-
- Veteran
- Posts: 462
- Liked: 134 times
- Joined: Jul 16, 2015 1:31 pm
- Full Name: Marc K
- Contact:
Re: AAP Script Paths
Yes. Just trying to do my part to improve the product. Thanks for pointing out that additional work-around option.
-
- Chief Product Officer
- Posts: 31561
- Liked: 6725 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: AAP Script Paths
I am curios if it is even possible to match "\\<IP Address of VM>\admin$\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe" to the local path such as "C:\Windows\{5d35dec2-230d-45d0-9703-a000ed570709}\MyCustomProgram.exe" without a local process though.
-
- Veteran
- Posts: 462
- Liked: 134 times
- Joined: Jul 16, 2015 1:31 pm
- Full Name: Marc K
- Contact:
Re: AAP Script Paths
You mean the custom program is not being launched by a local process? I figured it was being launched by the runtime process that AAP deploys on the VM as that would be the easiest way to do it.
Who is online
Users browsing this forum: No registered users and 35 guests