Schedule login to Windows Server 2008 R2 Virtual Box - testcomplete

I have a test script created using TestComplete 10.0. The test script to uninstall then install a software and update config file. It hosted in a Windows 2008 R2 Virtual Box and I have tested using TestExecute and it runs successfully.
I have scheduled the run via Task Scheduler and I have created a bat file to run it. Task starts successfully but fails. I have searched in Google and found TestComplete fails when remote desktop session is disconnected for the user set to execute the task.
I have tried adding the tscon /dest:console but did not successfull.
Is there any other way to login to Windows Server 2008 R2 Virtual Box?

This behavior is documented and the TestComplete Help file contains a number of possible solutions for it. You can find this information in the Running Tests on Locked Computers help topic of the tool.

Related

Is there a regedit key in windows that blocks the running of exe files (by services)

I have a Windows Service that runs an exe file and it is working fine under Win7 and Win8 Environments. But when I try the program in a Windows Server 2008 or Windows Server 2012 Environment, the service works but the exe file is not run. So I am wondering if there is a regedit key that blocks running of exe files when they are run from Session 0 or something similar.
I have noticed that Windows 2012 by default blocks running interactive programs. But I have already allowed it by setting the following value to zero.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows
NoInteractiveServices
When you install a Windows Service in Windows Server enviorment, you need to check Allow service to interact with desktop property in the service properties -> Log On.
When this property is enabled, try to restart Interactive Services Detection service.

Selenium test runs on Windows Server 2008 R2 doesn't work?

I'm working with Selenium in VB.NET using IEDriver. I want to launch my ordered tests suite on my windows server 2008 R2 (My server used IE 11). I launch my test by command line : vstest.console.exe.
When I launch this on Windows 7, that works. I try to launch it on my server ( OS : windows server 2008 R2). That launch my Internet Explorer and my first page test. My test fail on the first try to find element (text input) and send key . However the element is present on my web page and I launch on the same website. I don't know where is my problem. I have some idea :
IE Driver compatibility with Windows Server 2008 R2 can't modify
Security server, some rights don't allow my driver to interact with IE
Problem in my code tests (Impossible for me, because the same code run perfectly on the same website)
Someone have any idea ?
This seems like a problem with windows server. Look for installed updates in server. This will probably occur because of that. Windows sometimes install updates without telling you and there are some updates that tamper with IEdriver and breakes it

windows service msi installer created in vs2003 hangs in win7 while installing

We have few windows services developed using .Net framework 1.1(VS2003).For each windows service an msi installer(set up project) is created to make installation easier.These installers are able to install windows services successfully in windows XP.But these installers unable to install windows service in WIN7 though I have admin privileges on the machine in which I am trying install them.While I am trying to install the windows service in win7, Through msi installer,installation is progressing till 90%.After that it is neither completing nor throwing an error.I am unable to understand what the problem is.
I tried following ways.
1.Opened cmd window in admin mode and tried to execute the msi with the command msiexec -i --Din't work
2.Right clicked on the actual exe(windows service exe) file and tried to run it in admin mode.--Din't work
3.Changed the UAC to never notify, restarted the machine and then tried to install--Din't work
4.Right clicked on both exe and msi and open their properties and changed the compatibility to lower version of windows and tried to install--Din't work
One thing I have noticed is that for all the custom actions of our windows service installer, primary output of our main project(exe) was given as input.I build the msi installer by removing all the custom actions.Then i tried to install it in win7.Then it was installed.But during the installation system not prompted for account details (which is the actual case while installing windows service) and also the service was not appeared in services manager window.
I spent somuch time to identify the cause and resolution.But I dint find any posts on this issue.I suspect that the problem is with custom actions.But not sure.If the problem is with custom actions please let me know how to overcome it.
Please provide a resolution for this issue or share me if there are any links which talks about this.
FWIW, .NET 1.1 isn't supported on Win7. Also I'm guessing you are using InstallUtil custom actions to drive the setup of your .NET Windows Service. These are very fragile and you can eliminate all those brittle points by refactoring and using the ServiceInstall ServiceControl tables in MSI.

Standalone SharePoint 2010 Installation on Windows7

I am installing SharePoint on windows 7 as a standalone using ServerFarm
So i m using a standalone server so i do not have a domain account. When i m using command shell to create database it is giving me following error
I also off windows firewall but no solution if you have any solution please help me
Regards
Run the shell as Administrator (right-click -> Run As administrator)

Taking a snapshot from the command prompt for Hyper-V 2008

Background:
I am using Hyper-V on Server 2008 to manage many virtual servers. I have scripts that have been built to make changes or apply updates to some or all of these virtual servers. Using the Hyper-V Manager, I am able to snapshot these virtual servers prior to doing an update, then roll back the changes if there is a problem.
The Question:
What I would like to do is script from a batch file or something similar this whole process of the snapshot on Hyper-V on Microsoft Windows Server 2008. How can you trigger a snapshot from the windows command prompt in Hyper-V?
Thanks in advance for any hep with this.
Here is how to do it with powershell

Resources