locked
Writing To Folder On DP RRS feed

  • Question

  • Quick question, I have a small app that run from the DP package. Lets say i create a folder called logs in the package and want the client that runs my app permissions to only the log folder to write a log when the app is done running. The app is running is system.

     

    Thanks


    Friday, August 19, 2011 7:03 PM

Answers

  • Bad joo-joos. DsP are designed to deliver applications that run on local systems using local resources. Clients directly writing to the DP packages or package share is unsupported and will cause you issues.

    You should redirect the application logs/output to somewhere else on the network or the local system.


    Jason | http://myitforum.com/cs2/blogs/jsandys | Twitter @JasonSandys
    Friday, August 19, 2011 8:41 PM

All replies

  • Bad joo-joos. DsP are designed to deliver applications that run on local systems using local resources. Clients directly writing to the DP packages or package share is unsupported and will cause you issues.

    You should redirect the application logs/output to somewhere else on the network or the local system.


    Jason | http://myitforum.com/cs2/blogs/jsandys | Twitter @JasonSandys
    Friday, August 19, 2011 8:41 PM
  • I agree, not supported, and additionally, I don't understand why you want to "write a log when the app is done running".

    If you want to know if people are running your app, why don't you make a Software Metering rule for it?


    Standardize. Simplify. Automate.
    • Proposed as answer by Garth JonesMVP Sunday, August 21, 2011 4:25 PM
    Sunday, August 21, 2011 3:54 PM
  • Well the app installs a lot of third party updates if needed and the log i write tells me whether or not it was successful. I'm running the app directly from the DP. I am currently writing the logs to another network share location but it only works on Windows 7 systems not XP. I'm assuming it has to do with it being run as the SYSTEM account on the local machine and XP can't use this account to write to network shares?
    Monday, August 22, 2011 1:50 AM
  • Well the app installs a lot of third party updates if needed and the log i write tells me whether or not it was successful. I'm running the app directly from the DP. I am currently writing the logs to another network share location but it only works on Windows 7 systems not XP. I'm assuming it has to do with it being run as the SYSTEM account on the local machine and XP can't use this account to write to network shares?

    You need to design application in such a way "to write the logs to network location". SCCM can't do anything to achieve this. It's fully depends upon application functionality.

    Anoop C Nair - Twitter @anoopmannur

    MY BLOG:  http://anoopmannur.wordpress.com

    SCCM Professionals

    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, August 22, 2011 2:55 AM
  • The ConfigMgr agent uses the local SYSTEM account for executing actions like adverts set to run with admin privileges on both Win XP and Win 7 -- no difference between the two there. What permissions do you have set on the share and NTFS folder being shared? Have you examined the event log on the system hosting the share? Why not use a MIF file to return the status info to ConfigMgr instead of a one-off log file that is outside of ConfigMgr?


    Jason | http://myitforum.com/cs2/blogs/jsandys | Twitter @JasonSandys
    Monday, August 22, 2011 1:05 PM
  • Domain Computers have write access. That what I was thinking AN00p; I will just write something into the program. It's weird because Windows 7 SYSTEM account does write the log to the network but not XP
    Monday, August 22, 2011 2:55 PM