If you've ever set up an SVS environment to run without Excludes and then, down the road, decided you really need them, you're aware of the pain and suffering that lies ahead.
Lucky for you, Altiris test maven Lance TeNgaio created FindExcludes to grease the skids of transition.
When you run FindExcludes, it goes back through your legacy Layers and moves the data (that's affected by the newly-enabled excludes) out of Layers and into the Base where it should be.
- Run this as Administrator on systems that have SVS 2.0.1403 or later.
- Run the batch file to create the output file c:\svs\excludes.txt
- The utility when run as "FindExcludes /m /f" will do the following for each layer:
- Force the layer to deactivate if active.
- Look at the excludes (file, directory, subdirectory) specified for the layer.
- Search for any files and directories that are in the corresponding R\W sub layer and copy them to the proper location in the base. This will fail if the user does not exist on the system. No files will be copied but the search will continue. I've considered this a non-issue because it means that the layer had the other user's file in it before the layer was imported.
- Verify the copy and if successful, remove the layer's copy.
- Reactivate the layer if it was previously active.
- Note that if the file already exists in the base, the layer file will be renamed to Copy of , or Copy (2) of , etc. This is so that it does not overwrite any base files which are likely the latest versions.
- It will return an error if it encounters svs or system issues. When an error is reported back or a user reports some weirdness with their files, we will need to look at the excludes.txt file to see what happened.
- You can check for the existence of %systemdrive%\svs\excludes.txt to see if the utility has been run already.
- Please feel free to modify the batch file as needed and let me know if there are issues with the utility.
- BTW, without the /m parameter, the utility will just list the files it finds and will not move them to the base.
By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
|Support:||User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.|