How to copy folders and files with the permissions?

by Xavier Dilip Kumar 30. January 2015 06:46

Solution:

xcopy "<Source Folder>" "<Target Folder>" /O /X /E /H /K

/X - Copies file audit settings and file ownership and ACL information.
/H - Copies hidden and system files.
/E - Copies directories and sub directories, including empty ones.
/V - Verifies each new file.

/D - Copies files changed on or after the specified date (D:m-d-y).If no date is given, copies only those files whose source time is newer than the destination time.

/Y - Suppresses prompting to confirm you want to overwrite an existing destination file.

/K - Copies attributes. Typically, Xcopy resets read-only attributes

/O - Copies file ownership and ACL information

Tags: ,

Supporting Tools

Not able to download files from IIS site or application folders which are set to directory browsing.

by Xavier Dilip Kumar 31. October 2014 06:33

Exceptions:

  • The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable
  • Unable to download file from server
  • unable to open this internet site. The requested site is either unavailable or cannot be found. Please try again later

Explanation:

By default, IIS blocks some file extentions. You can see the blocked file extensions in "Request Filtering" --> "File Name Extensions" tab.  

Solution:

  • Open IIS manager (cmd --> inetmgr)
  • Click on the folder or application site
  • Double click on "Request Filtering"

  • Select "File Name Extensions" tab
  • Select the file extension and click on remove.

If you still have the issue with some other extensions, then add the file extensions to "MIME Type" as below.

  

 

 

Tags:

General

w3wp.exe process is missing after TFS app tier reboot

by Xavier Dilip Kumar 23. December 2013 11:12

Explanation:

w3wp.exe an Internet Information Services (IIS) worker process is a windows process which runs Web applications, and is responsible for handling requests sent to a Web Server for a specific application pool. W3wp.exe process will not be started automatically after App tier reboot or IIS restart or application pool restart. w3wp.exe will be launched once the first request is made to the TFS Application.

Solution:

1. Try accessing TFS application once http://tfs:8080/tfs. See whether the w3wp.exe is available in "Windows Task Manager" --> "Processes Tab"

2. You can configure Worker process started automatically by adding startMode attribute to TFS application pool to AlwaysRunning in your applicationHost.config

<applicationPools>

   <add name="Default App Pool" startMode="AlwaysRunning" />

</applicationPools>

Solution 2 will work for IIS 7.5 or newer

Tags:

TFS | TFS 2010 | TFS 2012 | TFS 2013

Host Dormancy Concept in TFS

by Xavier Dilip Kumar 21. December 2013 13:44

Explanation:

Host Dormancy is a feature built-in to the 'kernel' of TFS that will pause jobs from running if a collection hasn't been accessed in a period of time. If a collection isn't being accessed, that means that the data isn't changing, so there's no need to run some jobs. This is key functionality that allows the Team Foundation Service to scale to thousands of collections.

Tags:

TFS

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn

  

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Disclaimer

The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List