aravind anche
asked on
Copying .exe file to a specific folder after deployment in MDT
I have a .exe file for laptop and desktop. I have a folder created inside the image. Is there any possibility MDT can copy the laptop.exe file to laptop and desktop.exe to desktop and the specific folder.
Sure - you can create an "application" in MDT for each EXE. The application's command line would be an xcopy command from the source directory to your local directory. You can then use a WMI filter on the task to decide if the device is a desktop or laptop.
ASKER
yes I had the command xcopy command ready but I want to know about how to set the filter.
Thanks
Thanks
ASKER
I create a run command line in TS and gave command xcopy %scriptroot%\desktop.exe c:\filelib\flag
(desktop.exe is in scripts folder of deploymentshare)
and in options add query wmi
Select * FROM Win32_computersystem Where Model LIKE "%Hp Compaq Elite 8300 SFF%" & Select * FROM Win32_computersystem Where Model LIKE "%HP Z240 SFF Workstation%" & Select * FROM Win32_computersystem Where Model LIKE "%HP Compaq Elite 8300 SFF%"
It didnt work.
Any suggesttions?
(desktop.exe is in scripts folder of deploymentshare)
and in options add query wmi
Select * FROM Win32_computersystem Where Model LIKE "%Hp Compaq Elite 8300 SFF%" & Select * FROM Win32_computersystem Where Model LIKE "%HP Z240 SFF Workstation%" & Select * FROM Win32_computersystem Where Model LIKE "%HP Compaq Elite 8300 SFF%"
It didnt work.
Any suggesttions?
Do those WMI queries evaluate correctly on the clients? Add a suspend task sequence step right before that task runs. Then execute that application command manually. Does it work?
ASKER
Thanks for the response, I didn't get you. I have added the suspend before it and how can I run that manually?
I kept the task sequence at the end . Right before that i have a batch file to change power settings and also to create a folder.
I kept the task sequence at the end . Right before that i have a batch file to change power settings and also to create a folder.
When machine is imaging, the suspend step will freeze the task sequence. Open up a command prompt and run the Xcopy command manually. Let me know if it works.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Joseph, I tried the suspend task sequence I am getting error.
@ Mike, I tired using IsDesktop ir true and the desktop.exe is copied to folder.
But under that task sequence I have used same command to laptop.exe for laptops and set the condition IsLatop equals true. Its not copied.
@ Mike, I tired using IsDesktop ir true and the desktop.exe is copied to folder.
But under that task sequence I have used same command to laptop.exe for laptops and set the condition IsLatop equals true. Its not copied.
OK, 50% there :). Check your spelling as IsLatop is missing a p. I know this is here, but it's the simple things that trip me up most often. When you are debugging look at the smsts.log in c:\windows\ccm\logs\smsts\ smsts.log (whilst running).
If you are still stuck, please attach the log and maybe screenshots of your TS.
Mike
If you are still stuck, please attach the log and maybe screenshots of your TS.
Mike
ASKER
Thanks