-
- Influencer
- Posts: 15
- Liked: 5 times
- Joined: May 08, 2015 12:16 am
- Full Name: Paul S
- Contact:
Pre-freeze script on windows guest: how to troubleshoot
I am having issues with my pre-freeze and post-thaw script on a new shoreTel VM running windows 2012 R2. my script works fine when I run it manually, but when it is ran from the veeam job the script hangs and command window never closes until I kill it with task manager. I added extra logging and echo statements to my batch file, but it is not helping me find the cause. How do I get veeam to run the script in a manner in which I can see it visibly?
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Pre-freeze script on windows guest: how to troubleshoot
Hi,
I'd like to clarify a few points, if you don't mind.
If you run the script manually in the guest it works as intended, but it hangs if started automatically in the course of the job, is that correct? Also, did you get any info from echoes and logging Were you able to track till what point the script keeps working?
Thanks
I'd like to clarify a few points, if you don't mind.
If you run the script manually in the guest it works as intended, but it hangs if started automatically in the course of the job, is that correct? Also, did you get any info from echoes and logging Were you able to track till what point the script keeps working?
Thanks
-
- Influencer
- Posts: 15
- Liked: 5 times
- Joined: May 08, 2015 12:16 am
- Full Name: Paul S
- Contact:
Re: Pre-freeze script on windows guest: how to troubleshoot
yes to your first questions.
yes, I can track it to where it stops. The script is only a single command that actually does something. Everything else is just logging. the main command it where it stops progressing through my log statements.
I am trying to combine a powershell script and a schedule job to get around UAC limitations and what not. maybe this will work.
yes, I can track it to where it stops. The script is only a single command that actually does something. Everything else is just logging. the main command it where it stops progressing through my log statements.
I am trying to combine a powershell script and a schedule job to get around UAC limitations and what not. maybe this will work.
-
- Influencer
- Posts: 15
- Liked: 5 times
- Joined: May 08, 2015 12:16 am
- Full Name: Paul S
- Contact:
Re: Pre-freeze script on windows guest: how to troubleshoot
My latest theory is that UAC is the problem.
Orignially I was using batch file. Then I tried Powershell script, to start scheduled task, which starts batch file. This looked like it would work and elevate my script, but then I found that the powershell command to start a scheduled task requires elevation.
Orignially I was using batch file. Then I tried Powershell script, to start scheduled task, which starts batch file. This looked like it would work and elevate my script, but then I found that the powershell command to start a scheduled task requires elevation.
-
- Influencer
- Posts: 15
- Liked: 5 times
- Joined: May 08, 2015 12:16 am
- Full Name: Paul S
- Contact:
Re: Pre-freeze script on windows guest: how to troubleshoot
I disabled UAC more fully on the guest and now the script works. I went back to my basic .cmd batch file.
Who is online
Users browsing this forum: Baidu [Spider], Semrush [Bot] and 57 guests