I am wanting to populate a Custom Property based off a registry key.
This is my first attempt at making a custom template using powershell and I believe I have the powershell part done but not confident on how to assign it to the custom property.
$regvalue = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate'
$property= (Get-ItemProperty -Path $regvalue).WUServer
But what is best way to assign it to the custom property. Do I need to call an API? My custom property is called WSUSServer.
I have been reading multiple threads but trying to figure out best practice. Do I just assign this to all nodes or best to do it in bulk.