In Configuration Manager, the NO_SMS_ON_DRIVE.SMS file prevents site system role component installation. It also prevents the content library from being installed on a specific drive. When you place the NO_SMS_ON_DRIVE.SMS file on a drive, site role components will be installed on a different NTFS formatted disk drive.
Admins who have been working on Configuration Manager since version 2007 surely know the importance of NO_SMS_ON_DRIVE.SMS file. Even today, with Configuration Manager current branch, the NO SMS ON DRIVE.SMS file is still valid and in use.
I place this file on every distribution point server that I create. It is also a best practice to hide this file once you create it to prevent from deletion.
Table of Contents
What is NO_SMS_ON_DRIVE.SMS file ?
The NO_SMS_ON_DRIVE.SMS file is a empty file that you place on a drive to prevent Configuration Manager placing the files on drive. Configuration Manager will not install site role component files on a drive that contains a file named NO_SMS_ON_DRIVE.SMS.
To prevent the content library from being installed on a specific drive, you create an empty file named NO_SMS_ON_DRIVE. Copy it to the root of the drive before the content library is created.
When this file is placed on the content library drive, it also prevents the content distribution to the server. I will do a small test at the end of this post to prove this point.
How does NO_SMS_ON_DRIVE.SMS file works ?
Practical Example – You have prepared a Windows server to install the SCCM distribution point role. You are very clear that you want all the files to be placed on another drive and not on root drive. At one point you specify the SCCM Distribution Point drive settings and specify the drive where SCCM creates the content library.
If the drive that you specified is hardly left with any space, the Configuration Manager tries to place the files in next available drive which is C:\ drive. This is not what you want and at any cost you don’t want the files to be saved to C:\ drive. This is where SMS file comes into picture.
When you place the NO_SMS_ON_DRIVE.SMS file on the C:\ drive it restricts the Configuration Manager to place any files on that drive. If site role installation files are already present on the drive before placing the SMS file on the drive, the installation files are not moved.
How do I Create NO_SMS_ON_DRIVE.SMS file ?
The steps to create the NO_SMS_ON_DRIVE.SMS file include.
- Login to the server that is supposed to be installed with distribution point role.
- Navigate to Root Drive (C:\ Drive).
- Right click anywhere and create a new Text Document. This is a empty file.
- Rename this file as NO_SMS_ON_DRIVE.SMS. Note that the extension of this file should be .SMS.
So what happens when you place the NO SMS ON DRIVE.SMS file on your content library drive ?. Do not try this on your production server because it will halt the content distribution. This is a just a test. I will be placing this file on my content library drive.
Next, I will redistribute an application to this distribution point server. As a matter of fact every thing that you distribute fails.
With this file present on the content library drive on DP, the content distribution fails with the following errors.
- Failed to find a valid drive on the distribution point
- Failed to take snapshot of one or more contents in package MEM0000A
Delete the SMS file and redistribute the content to the distribution point server, the content distribution works perfectly fine. I hope you understood what NO_SMS_ON_DRIVE.SMS file is and how to create it and use it effectively.