How about setting them and using copy profile?

From: [email protected] [mailto:[email protected]] On 
Behalf Of Isaac Holmes
Sent: Thursday, October 16, 2014 12:06 PM
To: [email protected]
Subject: Re: [MDT-OSD] RE: Setting Word Options for Default User

Yes, you can mount the default user NTUSER.DAT file and import registry 
settings into it and then unmount the hive when finished during the OSD 
process.  Your commands above will not work to put the settings into the loaded 
hive however, you would need the appropriate settings as a REG file or registry 
path and value settings to use with reg.exe and modify them to import into the 
mounted key.

3-step process using "run command line" steps:
1. Load the default user registry:
           cmd.exe /c reg.exe LOAD HKLM\DEFAULT c:\users\default\ntuser.dat
2. Import the desired settings:
           Be sure to change the paths to match the Key name of the mounted 
registry Hive.
           cmd.exe /c reg.exe import c:\windows\temp\ChemBio2014-preferences.reg
      or
           cmd.exe /c REG ADD 
"HKLM\DEFAULT\Software\Microsoft\Office\14.0\Excel\Add-in Manager" /v 
"C:\Program Files (x86)\Palisade\RISK6\Risk.xla"
2a. Repeat 2 as needed for additional changes.
3. Unload the default user registry:
           cmd.exe /c reg.exe UNLOAD HKLM\DEFAULT

For the template create one the way you want it on your machine, and then 
create a package and copy the files from that package to the appropriate 
location in the default user profile.




On Thu, Oct 16, 2014 at 12:42 PM, Melvin Backus 
<[email protected]<mailto:[email protected]>> wrote:
Is this something that could be handled as an MSP file with ODT?

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] 
On Behalf Of Marcum, John
Sent: Thursday, October 16, 2014 12:30 PM
To: [email protected]<mailto:[email protected]>
Subject: [MDT-OSD] Setting Word Options for Default User

I need to set a couple of options in Word to be the defaults but not enforced. 
Seems like the easiest way to do this would be in the default user profile. Has 
anyone done this before? I have a script that would set the options for each 
user. Would it be possible to mount the default user hive during OSD and run 
this script to setup the options for future users? I've had a case with CSS 
about this for weeks, finally I got so frustrated with them I just told them to 
close the case. I wanted to simply insert a custom normal.dotm using GPP's but 
they had no clue how to do that and were unable to help me troubleshoot it. 
According to CSS the only way to accomplish what I am after is by running the 
following as a login script. However that doesn't meet my requirements of 
allowing users to change these settings.



'WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS EXAMPLE IS
'AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of
'any kind, either express or implied, including but not limited to the implied 
warranties of
'merchantability and/or fitness for a particular purpose.

Dim objWord
Dim objDoc
Dim sFullTemplate

Set objWord = CreateObject("Word.Application")
'objword.visible=true

Set objDoc = objWord.documents.Add

' **** Get the full normal template path and name
sFullTemplate = objDoc.attachedtemplate.Path & "\" & 
objDoc.attachedtemplate.Name<http://objDoc.attachedtemplate.Name>

' ***** Close active doc w/o saving
objDoc.Close savechanges=0

' ***** Open the normal template
Set objDoc = objWord.documents.Open(sFullTemplate)


' ***** Update the normal Style
objDoc.Range.Font.Name<http://objDoc.Range.Font.Name> = "Times New Roman" ' set 
the font name her
objDoc.Range.Font.Size = 11 'set the point size here

' ***** Update the Revisions options - which are written to the registry based 
on the checkbox value
objWord.Options.ShowMarkupOpenSave = True 'Marks the File > Options > Trust 
Center > Trust Center Settings  > Privacy Options > checkbox for Warn before 
printing, saving or sending a file that contains tracked changes or comments

objWord.Options.WarnBeforeSavingPrintingSendingMarkup = True 'Marks the File > 
Options > Trust Center > Trust Center Settings  > Privacy Options > checkbox 
for Make hidden markup visible when opening or saving

' ***** Save and Close the template
objDoc.Save
objDoc.Close

objWord.Quit 0
Set objWord = nothing

________________________________
        John Marcum
            MCITP, MCTS, MCSA
              Desktop Architect
   Bradley Arant Boult Cummings LLP
________________________________

  [H_Logo]


________________________________

Confidentiality Notice: This e-mail is from a law firm and may be protected by 
the attorney-client or work product privileges. If you have received this 
message in error, please notify the sender by replying to this e-mail and then 
delete it from your computer.



--

Isaac Holmes
IT Engineering Specialist

University of Notre Dame
320 IT Center
Notre Dame, IN 46556

(574) 631-3254

________________________________

Confidentiality Notice: This e-mail is from a law firm and may be protected by 
the attorney-client or work product privileges. If you have received this 
message in error, please notify the sender by replying to this e-mail and then 
delete it from your computer.

________________________________

Confidentiality Notice: This e-mail is from a law firm and may be protected by 
the attorney-client or work product privileges. If you have received this 
message in error, please notify the sender by replying to this e-mail and then 
delete it from your computer.

Reply via email to