O/S Deployment Thread, autlogon when MDT completes in Technical; I am using MDT and its working fine.
I have an application that installs when a certain user logs in. ...
13th March 2014, 12:37 PM #1
autlogon when MDT completes
I am using MDT and its working fine.
I have an application that installs when a certain user logs in. At the moment I am logging in manually to all machines to allow this program to install.
I want to auto login as this user when MDT finishes.
Is this possible?
13th March 2014, 02:33 PM #2
You could add a 'Run command line' step and use the 'Run as the following user' option (with the option to load the user profile if needed). Add it into the custom tasks folder which is near the end of the task sequence.
You can add a 'Run command line' step by clicking Add>General>Run command line in the task sequence properties.
13th March 2014, 03:20 PM #3
Originally Posted by computer_expert
The application resides on a different server to the MDT server.
I put \\servername\share\exename
and put the user details in (including load user profile).
The task sequence errors out at the point of the custom task with "The directory name is invalid".
I have double checked the path I put in the custom task and it is fine.
So not sure where its gone wrong!
13th March 2014, 04:05 PM #4
What happens if you add another command line step (just before the app install) to mount a network drive to the share hosting the application?
Just make sure you change the path on the install task to point to the mapped drive and that the command line step to mount the network drive runs under the account you use to install the software.
13th March 2014, 04:12 PM #5
13th March 2014, 04:15 PM #6
yeah I looked at that earlier today but seems to over complicate things.
Originally Posted by sparkeh
I got it working sort of. For some reason I had put in the path to the exe in "start in". I think this is where I was getting "directory name invalid".
Now my problem is that the task sequence seems to finish before the program is fully installed - thus the machine logs off before install is completed.
Need to find a way of delaying the ending of the task sequence until the app is installed.
13th March 2014, 04:31 PM #7
What about creating a batch script that calls the application setup?
then adding the install batch file to a command line task in mdt (just temporarily disable the previous command line step(s) you have created).
start /wait "\\server\share\setup.exe" /silent
Last edited by computer_expert; 13th March 2014 at 04:35 PM.
13th March 2014, 06:06 PM #8
Alternatively, the easier method would be to take the command from my last post and put it into to a command line step within the task sequence. the start /wait bit should then stop MDT progressing until the application has installed.
17th March 2014, 10:29 AM #9
@computer_expert : I changed the command line to add start /wait \\server\share\app.exe but now MDT returns an error "The system cannot find the file specified. (Error 00000002; Source:Windows)
Originally Posted by computer_expert
17th March 2014, 10:03 PM #10
That's strange - try putting the path to the share into the 'start in' box (as per post 6), but just put "start /wait" in front of the install command and see if that helps
By DocHouse in forum Promethean Direct Support
Last Post: 31st January 2013, 03:16 PM
By dany2010 in forum O/S Deployment
Last Post: 30th November 2012, 01:30 PM
By mattcrum in forum Windows Server 2008 R2
Last Post: 6th June 2012, 08:02 PM
By edutech4schools in forum O/S Deployment
Last Post: 24th March 2011, 04:24 PM
By djones in forum Scripts
Last Post: 18th May 2008, 11:26 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)