Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
 All Forums
 SteadierState
 SS Problems, Solutions, Questions, Answers
 How to Not Retain Changes After Reboot

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Note: please do not cross-post.
Cross-postings will be deleted and ignored.
Thanks for helping to keep this forum junk-free!
   

T O P I C    R E V I E W
PeterS Posted - 07/03/2012 : 11:29:35 PM
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
6   L A T E S T    R E P L I E S    (Newest First)
Mark Minasi Posted - 01/11/2013 : 3:28:22 PM
Looks interesting! Are you using it on your SS systems?
vvad152e Posted - 11/15/2012 : 7:23:20 PM
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
hairtrigger Posted - 11/14/2012 : 4:34:45 PM
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.
Kwegar Posted - 11/14/2012 : 3:07:13 PM
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!!
vvad152e Posted - 11/14/2012 : 08:05:57 AM
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.
Mark Minasi Posted - 07/09/2012 : 3:18:37 PM
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 Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000