How do I change the current Windows theme programmatically?

前端 未结 12 1985
轻奢々
轻奢々 2020-12-04 11:12

I want to allow my users to toggle the current user theme between Aero and Windows Classic(1). Is there a way that I can do this programatically?

I don\'t want to po

12条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 12:11

    I'm not sure if this is a new thing, but you can just double click the .theme file and Windows 10 will apply the theme. Hence, you can do this with PowerShell easily:

    $Windows10Theme = "C:\Windows\Resources\Themes\aero.theme"
    Invoke-Expression $Windows10Theme
    

提交回复
热议问题