none
Turning Windows Disk Protection on by script RRS feed

  • Question

  • Hello,

    I am searching for a method to turn Steady State Disk Protection on or off by script.

    I have already successfully written a C++ program using the WMI interface to change the status of Disk Protection. But I need a possibility to turn Disk Protection on by running a program in a system with Steady State installed but Disk Protection turned off.

    Can someone help me?

    Best regards,
      Alexander Boegelsack
    Monday, February 25, 2008 3:52 PM

Answers

  • Hi,

     

    SteadyState v2.5 includes a simple, scriptable way to do this.  There's no easy way to accomplish this with v2.0, however. 

     

    Thanks,

    Rob

    Monday, February 25, 2008 6:59 PM

All replies

  • Hi,

     

    SteadyState v2.5 includes a simple, scriptable way to do this.  There's no easy way to accomplish this with v2.0, however. 

     

    Thanks,

    Rob

    Monday, February 25, 2008 6:59 PM
  • Hello Rob,

    thank you for your prompt response. First at all, excuse the great delay of my answer, but first I had to work on other tasks with priority and then I was one week out of my office for a course. But now I am engaged in investigating this topic again.

    To clarify my problem: I am able to change the mode of the DiskProtection from Discard to Commit or vice versa by using the WMI interface by a C++ program. But what I would need is to turn the DiskProtection on or off by means of a scipt or program including the creation and deletion of the cache file.

    The background is that we want to be able to clone systems which are write protected by means of the DiskProtection feature of the Windows Steady State tool. A potential solution was to generate a XP system, activate it, install SteadyState and activate the DiskProtection. Then we would save this system for our clones.

    Bringing the system to a target would then mean that the system would be loaded to the system partition of the target, then the SID change would be made,  the DiskProtection was set to COMMIT to make the SID change persistent, the system would reboot, and then the DiskProtection was set to DISCARD. All this could be done automatically. But the problem is that with activated DiskProtection, regardless of the mode, there must be a large cache file. Saving the cache file in the system to clone is not possible and bringing the system to a target without the cache file would invalidate the DiskProtection feature because of a corrupted (because missing) cache file.

    So we must go another way. We have to save our system to clone it in a state with deactivated DiskProtection so that after the system is loaded on a target, the DiskProtection could be activated including the creation of the cache file, then the SID change could be made, the mode set to COMMIT, the system restarted and at last the mode set to DISCARD. But we see no possibility to programmatically activate the DiskProtection and create the cache file.

    Is the scritptable way you mention a way to activate the DiskProtection or just a way to change its mode? And, by the way, I am not sure which version of SteadyState I am using. My install file SteadyState_Setup_ENU.exe has the version 6.1.22.4 and the SteadyState user interface SCTUI.exe has the version 5.1.2600.3370.

    Further hint if our special problem is solvable would be great.

    Thanks,
     Alexander
    Wednesday, March 12, 2008 1:04 PM
  •  

    Hi Alexander,

     

    I think you are using 2.0 which cannot turn on/off WDP by scripts. If you are using 2.5beta, the program title will tell you it’s beta version.

     

    Based on my experience, WDP is very sensitive the physical layout of the HD, thus, clone WDP cache file will not work. You can download 2.5beta from here:

     

    Windows SteadyState 2.5 Beta
    http://www.microsoft.com/downloads/details.aspx?FamilyID=4de91d3a-69f4-4d7b-94b1-c69b8be029f4&DisplayLang=en


    Windows SteadyState 2.5 Beta Handbook
    http://www.microsoft.com/downloads/details.aspx?FamilyId=D173452A-CE26-4F26-9C30-982F705F84D2&displaylang=en

     

    Best Regards,

     

    Thursday, March 13, 2008 1:48 PM