Jump to content


  • 0
Jeff May-Stahl

Script to modify Default User Profile

Question

I have a short script to modify some HKCU reg entries for the Default user. I want to apply this to the reference image so it gets applied to new users. I know this can be done with GPO. I am using MDT and have it pause after the script runs so I can test it. It is says completed successfully but it doesnt do anything. Even when I run it from a cmd prompt manually during the pause. This does not work when running it manually on a machine either.

This is the script

@ECHO OFF
REM *****************************************************
REM  Script configures the Default User Profile
REM *****************************************************
echo.
echo. Load default profile HIVE and apply registry settings.
echo.
REM Load the default profile hive
REG LOAD HKU\TEMP C:\Users\Default\NTUSER.DAT

REM Configure the default user profile

REG IMPORT HKCU.reg

REM Unload the default profile hive
REG UNLOAD HKU\TEMP

 

This is the reg file:

Windows Registry Editor Version 5.00

; Disable let apps use my advertising ID.

[hku\temp\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo]
"Enabled"=dword:0

; Change explorer default view to Thic PC.

[hku\temp\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"LaunchTo"=dword:1

; Disable Feedback.

[hku\temp\SOFTWARE\Microsoft\Siuf\Rules]
"NumberOfSIUFInPeriod"=dword:0

; Disable menu show delay.

[hku\temp\Control Panel\Desktop]
"MenuShowDelay"=dword:0

; Disable Bing Search.

[hku\temp\SOFTWARE\Microsoft\Windows\CurrentVersion\Search]
"BingSearchEnabled"=dword:0

; Turn off show me tips about windows.

[hku\temp\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]
"SoftLandingEnabled"=""

; Turn off start menu app suggestions.

[hku\temp\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager]
"SystemPaneSuggestionsEnabled"=dword:0

; Hiden taskbar search box.

[hku\temp\Software\Microsoft\Windows\CurrentVersion\Search]
"SearchboxTaskbarMode"=dword:1

; Purge cache for IE on every close of IE.  Non persistence

[hku\temp\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache]
"Persistent"=dword:0

Edited by Jeff May-Stahl

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.