Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Clean install solutions needed

Clean Install Windows 8

  • Please log in to reply
8 replies to this topic

#1
lurk&jerk

lurk&jerk

    Stealth

  • Member
  • PipPip
  • 107 posts

Is there anyway to automate the following things during a Windows 8 clean install, either in the Autounattend.xml, a batch or registry file.

 

1) Preset drive letters for the various storage drives so that USB Mass Storage Devices aren't assigned randomly.

 

2) Eliminate unwanted/Unneeded scheduled Windows Tasks such as stopping WinSAT.exe from running and/or disabling the Windows Customer Experience Improvement checking program.

 

3) Eliminating the Windows 8 lock screen without drilling down through the Windows Group Policy Editor

 

4) Enable legacy F8 boot to safe mode option in Windows without running a batch file under an elevated command prompt.

 

I know most of these things were implemented/changed for security reasons but when running a PC in admin mode, they are a huge annoyance to fix/change. Thanks in advance.


Like B.I.G., I goes haard errry rhyme....
Know your OS-tan
Ou vai ou racha


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,019 posts
  • OS:none specified
  • Country: Country Flag

4) Enable legacy F8 boot to safe mode option in Windows without running a batch file under an elevated command prompt.

 

Your reference to "Local Group Policy Editor" seems like unrelated. :w00t: :ph34r:

 

Legacy boot should be a setting in \boot\BCD, the reference is here, look for "bootmenupolicy [ Legacy | Standard ]":

http://msdn.microsof...e/ff542202.aspx

 

Since the BCD is a Registry hive, it should be possible by comparing a "Standard" BCD against the same BCD once set to "Legacy" to implement the change via "registry file", though it has to be seen when it needs to be applied. :unsure:

 

jaclaz



#3
lurk&jerk

lurk&jerk

    Stealth

  • Member
  • PipPip
  • 107 posts

Can't apply the legacy setting through the registry but I'm testing a utility that executes an elevated command prompt. Looks interesting and works for applying the legacy boot menu through a batch file. Can't solve some of the other issues though 


Edited by lurk&jerk, 17 March 2014 - 12:22 PM.

Like B.I.G., I goes haard errry rhyme....
Know your OS-tan
Ou vai ou racha

#4
lurk&jerk

lurk&jerk

    Stealth

  • Member
  • PipPip
  • 107 posts

3 down, 1 no go. From the top:

 

1. @HALIKKUS http://forums.mydigi...ry-Tweaks/page7

Can only re-store drives on the same PC; not a new one but helpful nonetheless for clean-reinstalls.

 

2. Can only do this manually as you apparently can't overwrite system tasks in Task Scheduler  :thumbdown

 

3. Disable the lock screen by registry script (I forgot this was possible) 

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization] 
"NoLockScreen"=dword:00000001  

4. Download elevate.exe and use it in a batch file using this command to restore legacy boot menu.

@echo off
elevate -c -w BCDEDIT /set {bootmgr} displaybootmenu yes

Like B.I.G., I goes haard errry rhyme....
Know your OS-tan
Ou vai ou racha

#5
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,019 posts
  • OS:none specified
  • Country: Country Flag

Can't apply the legacy setting through the registry but I'm testing a utility that executes an elevated command prompt. Looks interesting and works for applying the legacy boot menu through a batch file. Can't solve some of the other issues though 

 

Well, actually we can elevate to a much higher level ;) as System  :yes: or even as TrustedInstaller :w00t: :ph34r::

http://reboot.pro/to...d-runfromtoken/

 

http://www.msfn.org/...ustedinstaller/

 

jaclaz



#6
lurk&jerk

lurk&jerk

    Stealth

  • Member
  • PipPip
  • 107 posts

@The Finder. Nice finds (no pun intended). Except RunasSystem and Runastoken are listed as a 

  • File Size: 3.05MB download. Whereas elevate is a 11kb download and the actual file size is 5kb. But I'm sure RunAsSystem is way more flexible and powerful.

Like B.I.G., I goes haard errry rhyme....
Know your OS-tan
Ou vai ou racha

#7
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,019 posts
  • OS:none specified
  • Country: Country Flag

 

@The Finder. Nice finds (no pun intended). Except RunasSystem and Runastoken are listed as a 

  • File Size: 3.05MB download. Whereas elevate is a 11kb download and the actual file size is 5kb. But I'm sure RunAsSystem is way more flexible and powerful.

 

Sure, but - to be picky - the "elevate.exe" does not actually "elevate", it is a form of "Run As" (Administrator with UAC), and - to all practical effects - can be replaced by a few lines of script (thus saving much of the 5 Kb)

 

Something *like*:

http://technet.micro...yspotlight.aspx

http://blogs.technet...ing-script.aspx

http://www.tomshardw...e-elevates.html

http://www.cammckenz...r-a-batch-file/

 

Or, something that I would advise to anyone actually fiddling on Windows machines with command line and batches, get Nircmd:

http://www.nirsoft.n...ils/nircmd.html



NIRCMD.exe elevate command 

In other words, whilst the elevate.exe is a nice thingy to have not the stupid right click->Run As Administrator, it doesn't provide "extra" powers, while being System (or TrustedInstaller) does provide them.

 

jaclaz


Edited by jaclaz, 28 March 2014 - 04:27 AM.


#8
lurk&jerk

lurk&jerk

    Stealth

  • Member
  • PipPip
  • 107 posts

Good points. I had forgot that nircmd had an elevate function. 


Like B.I.G., I goes haard errry rhyme....
Know your OS-tan
Ou vai ou racha

#9
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,019 posts
  • OS:none specified
  • Country: Country Flag

Yep :) and, before I forget, a few words of warning, remember that Voltaire (long before Peter Parker's uncle Ben :whistle:) said:

With great power comes great responsibility

 

and - to be fair - the concept is also in Luke 12:48

http://www.biblegate...:48&version=KJV

 

Kids, don't play with System or TrustedInstaller at home! ;)

 

jaclaz


Edited by jaclaz, 29 March 2014 - 10:50 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN