Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted
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!

Posted

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.

Posted

 

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.

Posted (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 by computer_expert
Posted
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.
Posted
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)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...