fiza Posted March 13, 2014 Posted March 13, 2014 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?
computer_expert Posted March 13, 2014 Posted March 13, 2014 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.
fiza Posted March 13, 2014 Author Posted March 13, 2014 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. @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!
computer_expert Posted March 13, 2014 Posted March 13, 2014 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.
sparkeh Posted March 13, 2014 Posted March 13, 2014 Does this help: Deployment Research > Research - Final Configuration for MDT 2013 Lite Touch, now with Autologon support
fiza Posted March 13, 2014 Author Posted March 13, 2014 Does this help: Deployment Research > Research - Final Configuration for MDT 2013 Lite Touch, now with Autologon support yeah I looked at that earlier today but seems to over complicate things. @computer_expert 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.
computer_expert Posted March 13, 2014 Posted March 13, 2014 (edited) What about creating a batch script that calls the application setup? for example: install.bat start /wait "\\server\share\setup.exe" /silent 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). Edited March 13, 2014 by computer_expert
computer_expert Posted March 13, 2014 Posted March 13, 2014 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.
fiza Posted March 17, 2014 Author Posted March 17, 2014 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. @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)
computer_expert Posted March 17, 2014 Posted March 17, 2014 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now