Domain logon after sysprep

P

Pieter Smit

I want to start install scripts after a sysprep.
I need to autologon using a domain account, (instead of a local account)

I tried a lot, (autologon, autologon via script executed by the local logon,
domainname\username in registry, etc.). A share with rights for everyone is
not a real solution.

It would be nice to turn on a prepped pc and automaticaly run all te scripts.

Does someone know how to do this?

Thanks.
 
Z

Zaphod Beeblebrox

Pieter Smit said:
I want to start install scripts after a sysprep.
I need to autologon using a domain account, (instead of a local
account)

I tried a lot, (autologon, autologon via script executed by the
local logon,
domainname\username in registry, etc.). A share with rights for
everyone is
not a real solution.

It would be nice to turn on a prepped pc and automaticaly run all te
scripts.

Does someone know how to do this?
I've set up auto logon on a number of platforms through the registry,
but never with a Domain account. I don't know if it
will help but it is simple enough to try if you haven't already. Use
the following registry keys / values:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DefaultUserName"="MyUsername"
"DefaultPassword"="MyPassword"
"DefaultDomainName"="MyDomain"
"AutoAdminLogon"="1"

Good luck, and let me know if it helped or not.
 
P

Pieter Smit

Hi Zaphod,

Thanks for your response.
This was one off the first things I tried.
Sysprep is changing all these registry settings.

I allso tried:
Autologin 1 time, (via sysprep.inf which means local logon) and then
executing a script setting the correct registry settings en than auto reboot.
This is unfortunattely not working. Allso changing the MyUsername in
domainname\username, which normally works does not work this time.

Zaphod Beeblebrox said:
Pieter Smit said:
I want to start install scripts after a sysprep.
I need to autologon using a domain account, (instead of a local
account)

I tried a lot, (autologon, autologon via script executed by the
local logon,
domainname\username in registry, etc.). A share with rights for
everyone is
not a real solution.

It would be nice to turn on a prepped pc and automaticaly run all te
scripts.

Does someone know how to do this?
I've set up auto logon on a number of platforms through the registry,
but never with a Domain account. I don't know if it
will help but it is simple enough to try if you haven't already. Use
the following registry keys / values:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DefaultUserName"="MyUsername"
"DefaultPassword"="MyPassword"
"DefaultDomainName"="MyDomain"
"AutoAdminLogon"="1"

Good luck, and let me know if it helped or not.
 
Z

Zaphod Beeblebrox

Pieter Smit said:
Zaphod Beeblebrox said:
message
I want to start install scripts after a sysprep.
I need to autologon using a domain account, (instead of a local
account)

I tried a lot, (autologon, autologon via script executed by the
local logon,
domainname\username in registry, etc.). A share with rights for
everyone is
not a real solution.

It would be nice to turn on a prepped pc and automaticaly run all
te
scripts.

Does someone know how to do this?
I've set up auto logon on a number of platforms through the
registry,
but never with a Domain account. I don't know if it
will help but it is simple enough to try if you haven't already.
Use
the following registry keys / values:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DefaultUserName"="MyUsername"
"DefaultPassword"="MyPassword"
"DefaultDomainName"="MyDomain"
"AutoAdminLogon"="1"

Good luck, and let me know if it helped or not.

Hi Zaphod,

Thanks for your response.
This was one off the first things I tried.
Sysprep is changing all these registry settings.

True, I didn't think to mention that.
I allso tried:
Autologin 1 time, (via sysprep.inf which means local logon) and then
executing a script setting the correct registry settings en than
auto reboot.
This is unfortunattely not working. Allso changing the MyUsername in
domainname\username, which normally works does not work this time.

Which is how we do it (although not with a script, we actually run an
app that sets up the autologin among other things). However, I've
never attempted it in a Domain environment. If you do find out how to
make it work, be sure to post back with the solution.

--
Zaphod

Pan-Galactic Gargle Blaster: A cocktail based on Janx Spirit.
The effect of one is like having your brain smashed out
by a slice of lemon wrapped round a large gold brick.
 
P

Pieter Smit

I found an acceptable workaround for this problem.

Auto domain logon after sysprep seems to be not possible. The work around is
as follows: In your sysprep.inf file you can tell how many auto, (local)
logons you wish. Choose for example 3 times, (for 3 install scripts each
needing a reboot). During the local logon you can execute a script with the
"net use" command using the passwoord and user:domain\user parameter. Now you
can automatically attach to network, (installscripts and programms) storage
using local logons. The disadvantage is that a domain account and password is
visible in the first script. But only to service personal. Offcourse is the
latest executed script a cleanupscript and is the used account an account
with minimal rights.

Zaphod Beeblebrox said:
Pieter Smit said:
Zaphod Beeblebrox said:
message
I want to start install scripts after a sysprep.
I need to autologon using a domain account, (instead of a local
account)

I tried a lot, (autologon, autologon via script executed by the
local logon,
domainname\username in registry, etc.). A share with rights for
everyone is
not a real solution.

It would be nice to turn on a prepped pc and automaticaly run all
te
scripts.

Does someone know how to do this?

I've set up auto logon on a number of platforms through the
registry,
but never with a Domain account. I don't know if it
will help but it is simple enough to try if you haven't already.
Use
the following registry keys / values:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DefaultUserName"="MyUsername"
"DefaultPassword"="MyPassword"
"DefaultDomainName"="MyDomain"
"AutoAdminLogon"="1"

Good luck, and let me know if it helped or not.

Hi Zaphod,

Thanks for your response.
This was one off the first things I tried.
Sysprep is changing all these registry settings.

True, I didn't think to mention that.
I allso tried:
Autologin 1 time, (via sysprep.inf which means local logon) and then
executing a script setting the correct registry settings en than
auto reboot.
This is unfortunattely not working. Allso changing the MyUsername in
domainname\username, which normally works does not work this time.

Which is how we do it (although not with a script, we actually run an
app that sets up the autologin among other things). However, I've
never attempted it in a Domain environment. If you do find out how to
make it work, be sure to post back with the solution.

--
Zaphod

Pan-Galactic Gargle Blaster: A cocktail based on Janx Spirit.
The effect of one is like having your brain smashed out
by a slice of lemon wrapped round a large gold brick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top