none
MDT 2012 currently logged on user variable

    คำถาม

  • Hi guys while doing a specific USMT capture TS that users run themselves via a shortcut (to prestage a new laptop we are building for example), is there a simple way to get the currently logged in user ID into MDT.

    If possible I would like to inject it directly into the customsettings.ini from the batch/script/shortcut being used, in whch case my basic flow will be -

    • If the shortcut is run,  current user injected in as UDDIR=%currentuser% etc then it is a completely automated USMT TS.
    • If it is run from litetouch.vbs, %currentuser% doesn't exist proceed to normal wizard etc.  

    I'm pretty positive I could do it with a script later on in the TS but this seems like the simplest way to do it.

    I basically want to name the scanstate location as the current user (instead of the computer as it currently is).

    Thanks!

    13 มีนาคม 2555 6:42

คำตอบ

ตอบทั้งหมด