+ Post New Thread
Results 1 to 10 of 10
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. ...
  1. #1

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,372
    Thank Post
    477
    Thanked 339 Times in 287 Posts
    Rep Power
    158

    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?

  2. #2

    Join Date
    Jul 2009
    Posts
    605
    Thank Post
    56
    Thanked 115 Times in 100 Posts
    Rep Power
    70
    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.

  3. #3

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,372
    Thank Post
    477
    Thanked 339 Times in 287 Posts
    Rep Power
    158
    Quote Originally Posted by computer_expert View Post
    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!

  4. #4

    Join Date
    Jul 2009
    Posts
    605
    Thank Post
    56
    Thanked 115 Times in 100 Posts
    Rep Power
    70
    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.

  5. #5

    sparkeh's Avatar
    Join Date
    May 2007
    Posts
    7,231
    Thank Post
    1,446
    Thanked 1,859 Times in 1,252 Posts
    Blog Entries
    22
    Rep Power
    559

  6. #6

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,372
    Thank Post
    477
    Thanked 339 Times in 287 Posts
    Rep Power
    158
    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.

  7. #7

    Join Date
    Jul 2009
    Posts
    605
    Thank Post
    56
    Thanked 115 Times in 100 Posts
    Rep Power
    70
    What about creating a batch script that calls the application setup?

    for example:
    install.bat
    Code:
    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).
    Last edited by computer_expert; 13th March 2014 at 04:35 PM.

  8. #8

    Join Date
    Jul 2009
    Posts
    605
    Thank Post
    56
    Thanked 115 Times in 100 Posts
    Rep Power
    70
    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.

  9. #9

    fiza's Avatar
    Join Date
    Dec 2008
    Location
    London
    Posts
    2,372
    Thank Post
    477
    Thanked 339 Times in 287 Posts
    Rep Power
    158
    Quote Originally Posted by computer_expert View Post
    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)

  10. #10

    Join Date
    Jul 2009
    Posts
    605
    Thank Post
    56
    Thanked 115 Times in 100 Posts
    Rep Power
    70
    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



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 5
    Last Post: 31st January 2013, 03:16 PM
  2. [MDT] How to active Windows + Office when complete?
    By dany2010 in forum O/S Deployment
    Replies: 2
    Last Post: 30th November 2012, 01:30 PM
  3. Knowing when update from WSUS is complete
    By mattcrum in forum Windows Server 2008 R2
    Replies: 7
    Last Post: 6th June 2012, 08:02 PM
  4. [MDT] MDT noob. No OS to select when running Capture and sysprep
    By edutech4schools in forum O/S Deployment
    Replies: 13
    Last Post: 24th March 2011, 04:24 PM
  5. Restart when script completes
    By djones in forum Scripts
    Replies: 4
    Last Post: 18th May 2008, 11:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •