We can't guarantee quick solutions - Experts Exchange isn't a help desk. We're a community of IT professionals committed to sharing knowledge. Our experts volunteer their time to help other people in the technology industry learn and succeed. Plans and Pricing. Contact Us. Certified Expert Program.
Kristina Brooks Kristina Brooks Language independent version. NYCdotNet 4, 1 1 gold badge 19 19 silver badges 26 26 bronze badges. Almost perfect answer. I've made the script universal so It allows me to use in Windows Scheduler tasks. And why you think it's not Windows batch? Have you tried to use it? Perhaps you have link to all those scripting commands? Show 1 more comment. That is a useful answer, however it is important to note, that is will only work if the service has stopped with exit If the service exited gracefully even with error message Auto Recover will not trigger.
It also won't trigger if the service was killed manually by user. ArtGertner - Killing via task manager a service process will be interpreted as "crash" and will trigger a recovery.
Sunil Lama 4, 1 1 gold badge 16 16 silver badges 45 45 bronze badges. Magige Daniel Magige Daniel 1 1 gold badge 9 9 silver badges 10 10 bronze badges. Sicco 5, 4 4 gold badges 41 41 silver badges 59 59 bronze badges. Daniel Serrano Daniel Serrano 75 1 1 silver badge 1 1 bronze badge. It will be better for every one if you write your answer in english.
Not sure why the downvote. This is an important point and a reason to avoid string comparisons if possible. In this case you have to change the string depending on the default language of the target Windows installation. It might be more useful to reference or include a resource which says what string to search for a given language. Logan78 Logan78 31 2 2 bronze badges. Community Bot 1 1 1 silver badge. BYoung BYoung 1 1 silver badge 9 9 bronze badges. Aylian Craspa Aylian Craspa 3 3 silver badges 11 11 bronze badges.
Maybe a much simpler way? You could have a 32 bit OS installed on a xbased pc. I did not mean to mislead anyone. Run the command mentioned in the post on each of the servers using psexec or rsh.
I will soon add a post on psexec. If I have understood correctly, you have different images of Win7 and you want to find out which image you have installed on the computer? I can think of a workaround for this. You can add custom reg key and set the image version number in that and then create the image.
And on the installed computer, you can do reg query from command line. Copy pasting the command would work fine now. Thank you for pointing that out. You can use registry keys in that case. Windows version in registry key. How can I get the serial number from a Windows Server device. OSType Next. What could be the probable solution to make work of wmic command?
This was exactly the info I was looking for. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. A vbscript to find windows version name and the service pack Ask Question. Asked 11 years, 1 month ago. Active 6 years, 6 months ago. Viewed 14k times.
0コメント