myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Add Registry Keys to LTI OSD build

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS Feature Packs >> Add Registry Keys to LTI OSD build Page: [1]
Login
Message << Older Topic   Newer Topic >>
Add Registry Keys to LTI OSD build - 2/20/2007 9:49:41 AM   
chriscj21

 

Posts: 65
Score: 2
Joined: 9/7/2006
Status: offline
Afternoon all...

Quick question....

I am wanting to add a couple of .reg files to my SMS OSD LTI build without re-compiling the build.

I tried adding them to the state-restore phase of the image, including the regedit.exe and the regfile, with the command line being:

"regedit /s \\sms01\ZTI\example.reg"

The problem is that the reg files do not seem to have applied when the build is built.


Am I following the right format with this?  If not is there an easier way?



Regards



Chris
Post #: 1
RE: Add Registry Keys to LTI OSD build - 2/22/2007 3:20:40 AM   
BenpHunter

 

Posts: 142
Score: 4
Joined: 1/6/2007
From: Microsoft New Zealand
Status: offline
Here is a code sample for editing the system hive from within WinPE, hopefully this helps.
 
'Load System Hive
sCmd = "cmd /c ""REG LOAD HKLM\TempHive " & Left(oUtility.LocalRootPath, 2) & "\windows\system32\config\system"""
iRetVal = oShell.Run(sCmd, 0, true)
If Err then
   oLogging.CreateEntry "USEREXIT: WARNING - Error loading system hive: " & Err.Description & " (" & Err.Number & ")", LogTypeWarning
Else
   'Change startup to disabled
   oShell.RegWrite "HKEY_LOCAL_MACHINE\TempHive\key\key", &H00000001, "REG_DWORD"
   'Unload System Hive
   sCmd = "cmd /c ""REG UNLOAD HKLM\TempHive"""
   iRetVal = oShell.Run(sCmd, 0, true)
   oLogging.CreateEntry "USEREXIT: Loaded System Hive", LogTypeInfo
End if    
 
Thanks,
Ben Hunter

< Message edited by BenpHunter -- 2/22/2007 3:21:14 AM >

(in reply to chriscj21)
Post #: 2
RE: Add Registry Keys to LTI OSD build - 9/26/2008 7:23:09 AM   
amatejic932

 

Posts: 3
Score: 0
Joined: 9/19/2008
Status: offline
Thanks Ben!
 
The problem is, I don't get it to work. Anyway I created another script that load hives my settings but I don't really understand how this could possibly work by hiving in settings in default user profile.
The winlogon settings are located in HKLM section and I can just say that I've been struggling with this one for more than a week now.
 
Is there anybody who have a solution to import reg settings in state restore phase?
 
BR
Alex

(in reply to BenpHunter)
Post #: 3
RE: Add Registry Keys to LTI OSD build - 9/29/2008 5:22:56 PM   
rbennett806


Posts: 825
Score: 13
Joined: 6/14/2006
Status: offline
So are you trying to make HKLM changes, or changes to the individual user and/or Default profile hive? Does this: http://www.myitforum.com/articles/11/view.asp?id=10825 help? If not, maybe post your .REG file and someone can help...

(in reply to amatejic932)
Post #: 4
RE: Add Registry Keys to LTI OSD build - 9/30/2008 2:22:33 AM   
amatejic932

 

Posts: 3
Score: 0
Joined: 9/19/2008
Status: offline
I need to import the registry settings to the winlogon key located in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
 
The hive is not the right way to solve this simply beacuse this is not the key that needs to be applied to the HKCU section. It seems that the TS process cannot import registry changes at all under the state restore phase (LTI). Any other suggestions?

(in reply to rbennett806)
Post #: 5
RE: Add Registry Keys to LTI OSD build - 10/1/2008 2:18:16 AM   
amatejic932

 

Posts: 3
Score: 0
Joined: 9/19/2008
Status: offline
it seems that it works if you use cmd file where you put the regimport command and run the file from the TS. This sounds crazy but it works. I'm going to test a little bit further and return with complete description.
 

(in reply to amatejic932)
Post #: 6
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS Feature Packs >> Add Registry Keys to LTI OSD build Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.266