Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SteadierState
 SS Problems, Solutions, Questions, Answers
 How to Not Retain Changes After Reboot
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeterS
Welcome Newcomer

Australia
1 Posts
Status: offline

Posted - 07/03/2012 :  11:29:35 PM  Show Profile  Reply with Quote
Firstly Thank you Mark for SDRSTATE and forum members for you input as some questions have been answered.


However I would like to know how to set the virtual drive to 'Not Retain Changes After Reboot'. No merging of changes/data would be required unless admin do updates occassionly.

Would i be correct in saying that changing the boot preference in the virtual drive from 'Windows 7' to 'Rollback...' would do the trick or would this just create a nasty loop?

thx
Pete

Mark Minasi
Chief cook and bottle washer

USA
10658 Posts
Status: offline

Posted - 07/09/2012 :  3:18:37 PM  Show Profile  Visit Mark Minasi's Homepage  Reply with Quote
Hi Pete --

Yes, that would be a problem, you'd get a loop.

I don't know how to get around that, as the Win 7 boot and the Rollback boot go to different disk partitions. Maybe some trickery with a semaphore file with a name like "alreadybooted.txt" that the WinPE and Win 7 startup scripts could add/delete? Not sure, sorry, it'd take some serious thinking and I'm deep in Server 2012 land at the moment.<g> Thanks for using it, Pete, if something occurs to me I'll post it here, or if anyone's got a brilliant idea...<g>

Mark
tweetin' at mminasi
Go to Top of Page

vvad152e
Welcome Newcomer

2 Posts
Status: offline

Posted - 11/14/2012 :  08:05:57 AM  Show Profile  Reply with Quote
Maybe using bcdedit to switch between Win7 and Win-PE. Like setting default boot to Win7 after rollback and setting it back to Win-PE after Win7 booting.
Go to Top of Page

Kwegar
Welcome Newcomer

Canada
1 Posts
Status: offline

Posted - 11/14/2012 :  3:07:13 PM  Show Profile  Reply with Quote
This is something I am very interested in as well. Trying to run a 50 computer classroom and the students like to mess around. Currently the systems are windows XP with steady state. (works great)

Trying to setup a new batch of systems with windows 7 and do not like the prospect that when they reboot they can pick where they want to boot.

I am not very up on the bcdedit and the like to try and default the boot and or hide the other boot options.

Hope someone can add more info and or options to try and do this. (would love it to roll back unless the admin updates some software and needs to keep the changes)

Thanks!!
Go to Top of Page

hairtrigger
Seasoned But Casual Onlooker

USA
30 Posts
Status: offline

Posted - 11/14/2012 :  4:34:45 PM  Show Profile  Reply with Quote
I just did this for a KIOSK machine...
Change the default to "Rollback" (bcdedit /default {current}
Change the timeout to 2 (bcdedit /timeout 2)
Find the GUID of the Windows entry (bcdedit /v)
Add the following to the end of the rollback.cmd and merge.cmd:
bcdedit /bootsequence {GUID of Windows}
The "bootsequence" switch changes the default for only the next reboot.

-Nate
"If you have to do it more than once.. script it"
Go to Top of Page

vvad152e
Welcome Newcomer

2 Posts
Status: offline

Posted - 11/15/2012 :  7:23:20 PM  Show Profile  Reply with Quote
here is the script I have made.

@echo off
for /f "tokens=1* delims= " %%i in ('bcdedit /v') do call :SetVAR "%%i" "%%j"

if [%SystemDrive%]==[C:] (
	if [%ROLLBACK%]==[] (
		echo Could not found Roll Back identifier*****
	)
	if NOT [%ROLLBACK%]==[] (
		echo Set boot default to Roll Back identifier of %ROLLBACK%
		bcdedit /set {bootmgr} default %ROLLBACK% >nul
		bcdedit /set {bootmgr} timeout 0 >nul
	)
)
if [%SystemDrive%]==[X:] (
	if [%WINDOWS7%]==[] (
		echo Could not found Windows 7 identifier*****
	)
	if NOT [%WINDOWS7%]==[] (
		echo Set boot default to Windows 7 identifier of %WINDOWS7%
		bcdedit /set {bootmgr} default %WINDOWS7% >nul
		bcdedit /set {bootmgr} timeout 0 >nul
	)
)
goto end

:SetVAR
if %1=="identifier" set ID=%~2
if %1=="description" (
	if %2=="Roll Back Windows" set ROLLBACK=%ID%
	if %2=="Windows 7" set WINDOWS7=%ID%
)
goto end

:end
Go to Top of Page

Mark Minasi
Chief cook and bottle washer

USA
10658 Posts
Status: offline

Posted - 01/11/2013 :  3:28:22 PM  Show Profile  Visit Mark Minasi's Homepage  Reply with Quote
Looks interesting! Are you using it on your SS systems?

Mark
tweetin' at mminasi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.08 seconds. Snitz Forums 2000