I am trying to optimize the Windows OS by disabling the Visual effects. Well setting Visual Effects value to ‘adjust to best performance’ to be exact. I am using the following Configuration Script:
$NodeName = ‘localhost’
It is best practice to always directly import resources, even if the resource is a built-in resource.
Import-DSCResource -Name WindowsClient
Import-DscResource -Name Registry
The name of this resource block, can be anything you choose, as long as it is of type [String] as indicated by the schema.
Ensure = “Present”
Key = “HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects”
ValueName = “VisualFXSetting”
ValueData = “2”
ValueType = “Dword”
What i Expects this to do is, it should create a VisualFXSetting property under the Visual Effects Key and set its value to 2. But this is not happening after i run the Start-DscConfiguration Command. Is this the way to do it?