Changing Theme through Intune

Hi Forum

I need to change the Theme on 500+ desktops with Win XP, Win7 and Win8.

So far I have packaged up the contents and converted it all to an .exe

The .exe when run, copys the theme to the correct location an applies it to the desktop.

However, when uploaded to Intune, it only manages to copy the theme file to the correct location but never applies it.

What could I do to make this work?

Thanks in advance

NN

May 20th, 2013 6:28pm

Hi NN,

The issue stems from the package running in system context.  You are basically changing the theme for your system account.  I would suggest having the EXE added to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

That should launch each time a user logs in.

Let me know if that works for you.

T

Free Windows Admin Tool Kit Click here and download it now
May 20th, 2013 7:34pm

Thank you for the quick response, I will let you know how I get on.

NN

May 21st, 2013 1:25pm

Hi Jon

So this was a great idea, thank you.

BUT...

Intune seems to strip this also, runs fine through the cmd prompt locally, but again Intune seems to strip it out.

Here is the .bat file I am using, I have removed everything but the copy and the reg apply.

____________

@ECHO

xcopy "theme.themepack" "C:\Windows\Resources\Themes"

%systemroot%\system32\reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Theme" /t REG_SZ /d "C:\Windows\Resources\Themes\Theme.themepack" /f

____________

Any advice?

Thanks in advance

NN

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2013 3:03pm

The reason I am doing this way is that these desktops are not on a domain, but they are on Intune.
May 21st, 2013 3:06pm

Hi,

Try not using a system variable in your reg.exe path.  c:\windows\system32\reg.exe should be fine.

Everything else worked as expected when I changed that.

Just to note, if you change the theme like this it will pop open the theme menu on the desktop each time the user boots up.

Thanks.

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2013 11:06pm

Hi Jon

I had that feeling, which is why I started with an apply once .exe.

Not really sure where to go from here. I need to get this pushed out, but I dont want it to constantly apply.

Is there a switch or a run once cmd that can be used, or even better, an alternative that you know of that would work through Intune?

Thanks as always

NN

May 22nd, 2013 12:34am

Hi,

Run Once would work, but it's only going to run one time, so the first user to login will get their theme changed, but no other users would.

If that is acceptable, try:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce

Thanks.

Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2013 1:17am

Hi Jon.L

Thanks for the advice so far. I still cannot get this to apply to the registry. I wonder if you could share your process?

With regards to the options available, they are better than no options at all.

Thanks
NN

May 22nd, 2013 12:10pm

Hi

Can anyone help?

Thanks
NN

Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2013 5:34pm

Hi,

I uploaded a CMD.exe from my Windows 7 client, create a .CMD file, run the REG.exe that you specified earlier.

In the command line options in Windows Intune I use /c FILENAME.CMD /s

It will launch any CMD file you want.

Thanks.

May 23rd, 2013 7:15pm

Sorry Jon, still no luck.

This is what I make from what you said.

Create Folder A

Copy cmd.exe to folderA

Create a ThemeApply.cmd with REG ADD and the XCopy cmd lines and place in Folder A

Place the Theme into Folder A

Upload to Intune with cmd.exe as primary including subfolder items above^

Default settings all the way apart from cmd line which is inserted as: /c ThemeApply.CMD /s

Upload.

Deploy to my Test Users to the App Portal

Login to App Portal and click on Install, bar shows installed successful.

Theme is copied in (as always) but the registry change is not.

Anything I have done wrong there?

Thanks for your time and effort
NN

...

PS. the .cmd works locally
quick update, tested this locally as follows: cmd.exe /c Apply_Theme.cmd /s ...and it doesnt apply the reg add.

Now if I run the .cmd alone, it works.

Additional: I opened the cmd.exe and c&p'd the .cmd text into it, it says successful but does not apply to the registry



Free Windows Admin Tool Kit Click here and download it now
May 24th, 2013 5:19pm

Did you remove the variables from the Reg.exe command line?  Try using c:\windows\system32\reg.exe instead of the system variable.

That fixed it for me during my testing.

Thanks.

May 24th, 2013 5:48pm

I thought that. But still no.

Can you run a remote call by any chance, see if my process is wrong?

NN

Free Windows Admin Tool Kit Click here and download it now
May 24th, 2013 6:03pm

I sorted this, I had to upload Reg.exe to the package.

thanks for the help

NN

May 24th, 2013 6:22pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics