VMware

This Question is Answered

5 Replies Last post: Dec 2, 2008 2:00 AM by Skatchek  

How do I interactively login to Windows? posted: Nov 6, 2007 9:10 AM

Click to view bgreenberg's profile Novice 2 posts since
Nov 5, 2007

Hello,

I'm automating a Windows XP VM. I've had success so far doing what I need with LoginInGuest, but for some tasks I'd like to actually log in at the Windows login prompt so the UI comes up.

I realize that I can save a snapshot with the user already logged in, but I would prefer to have my snapshots with the VM powered off.

Is there a recommened technique for scripting a login at the Windows login prompt?

Thanks,
Ben

Re: How do I interactively login to Windows?

1. Nov 6, 2007 3:38 PM in response to: bgreenberg
Click to view mattrich's profile Expert 510 posts since
Nov 29, 2006
You can configure the virtual machine to automatically log a user in.

There is a Microsoft knowledge base article explaining the process for how to do this: http://support.microsoft.com/kb/315231

Re: How do I interactively login to Windows?

3. Nov 20, 2007 5:02 AM in response to: bgreenberg
Click to view rinf's profile Novice 8 posts since
May 28, 2007
Automatic Graphical Logins can be scripted in Windows using what is known as GINA . You have to write a dll called gina.dll which will perform your customised graphical authentication and replace it with the one in windows. For logoff you have to write a batch script.

Re: How do I interactively login to Windows?

4. Nov 20, 2007 5:13 AM in response to: bgreenberg
Click to view rinf's profile Novice 8 posts since
May 28, 2007
Check out http://www.pgina.org. GPL. They have plugins for authenticated, automated logins through ldap, pop3, myqsl database etc.

Re: How do I interactively login to Windows?

5. Dec 2, 2008 2:00 AM in response to: rinf
Click to view Skatchek's profile Novice 8 posts since
Nov 27, 2008

Checked out this link and can't understand how it can solve my problem. Could you please help with it.

I have around 80 virtual machines with different configurations. I'm trying to write automated script with VIX API that will execute program on each VM and i need to capture several screenshots of program status during its execution. I already wrote this, but the problem is that until i logon manually into Windows i get screenshot of its login screen http://communities.vmware.com/images/emoticons/angry.gif . Due to security i can't enable automatic windows logon on VMs. That is the reason that i need something that can do it with my VIX API, something that will bypass windows login screen only for my script, not for all other users that can use this VM. Is there anything that can help me?

Steps that i suppose:

1. Through vix api connect to host - imlemented.

2. Open vm - imlemented.

3. Start vm - imlemented.

4. Login through VIX API (doesn't actually login on UI) - imlemented.

5. Copy some files with automate windows login script and start them to login through UI - is it possible???

As i understood from last post i need just to copy gina.dll into my virtual machine but after checking url have no idea how to do it.

Can anyone help me with this issue?

Developer Social Media

Communities