Bendo1984 Posted December 11, 2014 Report post Posted December 11, 2014 Hi guys, We have a SCCM setup, with 12 DP's in 12 different countrys - i would like to copy the sms logs to the currently deploying DP. How can this be done? I have a Access based Emuration share on evey DP \\Server\OSDlogs$ I cant get this to work cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %_SMSTSHTTP%\OSDLogs$ Is there any other variable i can use, to get the local DP unc path ? Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted December 12, 2014 Report post Posted December 12, 2014 What is not working? What error do you get? Have you checked the permission on the share and files? Are you sure? Why would you want to do this? How can you tell which OSD deployment the logs are for. Quote Share this post Link to post Share on other sites More sharing options...
Bendo1984 Posted December 15, 2014 Report post Posted December 15, 2014 i dont get any errors in the log file, but the files is not getting copied over to the share - permission is set to everyone on the share We want to this, so we can have some informations on every deployemnt. i dont want all the logs copied to a central server in Denmark, i would like to get them copied to the local SCCM Site Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted December 15, 2014 Report post Posted December 15, 2014 Are you sure that you are not getting an access denied? I would think that you would be. Again, how do you plan to prevent each computer over writing the next OSD's logs? Quote Share this post Link to post Share on other sites More sharing options...
Bendo1984 Posted December 15, 2014 Report post Posted December 15, 2014 I would add SMSTSMachineName. Nope, no access denied - But the variable SMSTSHTTP is given me http://DP- i need the UNC Path, and not the HTTP adress - is there any other variable i can use with instead ? SMSTSPackageID would give me an UNC path to a given package location, but i cannot use that either as i only want the FQDN of the DP. There is some informations here : http://venusingireddy.blogspot.dk/2013/07/sccm-osd-task-sequence-slow-package.html Quote Share this post Link to post Share on other sites More sharing options...
GarthMJ Posted December 15, 2014 Report post Posted December 15, 2014 So you are going to have to create a share on each DP in order to capture this data. you can parse the DP name from the HTTP address. Also keep in mind that you based on xcopy command above you will only ever has 1 set of logs on each DP. Quote Share this post Link to post Share on other sites More sharing options...
Bendo1984 Posted December 16, 2014 Report post Posted December 16, 2014 How would i get the UNC path from the HTTP adress in a variable ? By useing SMSTSMachineName i can create i folder for each computer. Quote Share this post Link to post Share on other sites More sharing options...
Bendo1984 Posted December 19, 2014 Report post Posted December 19, 2014 Any other takers ? Quote Share this post Link to post Share on other sites More sharing options...
Bendo1984 Posted December 22, 2014 Report post Posted December 22, 2014 Could this work ? cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %~dp0\OSDLogs$ ? Quote Share this post Link to post Share on other sites More sharing options...
Iroqouiz Posted December 29, 2014 Report post Posted December 29, 2014 If you haven't already, integrate MDT 2013 with SCCM. Then create a new task sequence with MDT, this will prompt you to create the toolkit files and settings files packages. Copy this into your CustomSettings.ini file in the MDT Settings Files package directory: [Settings] Priority=DefaultGateway, Default [DefaultGateway] 192.168.20.1=STOCKHOLM 192.168.40.1=SINGAPORE 192.168.60.1=LONDON [STOCKHOLM] SLSHARE=\\STOCKHOLM-SERVER\OSD_Logs\Finished_Logs SLShareDynamicLogging=\\STOCKHOLM-SERVER\OSD_Logs\%hostname% [SINGAPORE] SLSHARE=\\SINGAPORE-SERVER\OSD_Logs\Finished_Logs SLShareDynamicLogging=\\SINGAPORE-SERVER\OSD_Logs\%hostname% [LONDON] SLSHARE=\\LONDON-SERVER\OSD_Logs\Finished_Logs SLShareDynamicLogging=\\LONDON-SERVER\OSD_Logs\%hostname% [Default] Then do your custom tweaks to the TS, whatever it looks like. The SLShare property will copy all the log files after a deployment to the directory you specify. The SLShareDynamicLogging property will copy the log files to that directory specified, in real time, effectively enabling real time logging. Add this as the last step in your TS to actually copy the log files (SLShare): Quote Share this post Link to post Share on other sites More sharing options...