How do I create a registry value in a remote computer in PowerShell ?

To create a registry value remotely: Example: PS D:\> enter-pssession -computername server.mydomain.local [server.mydomain.local]: PS C:\Users\admin\documents> set-itemproperty -path HKLM:\System\CurrentControlSet\Services\NTDS\Parameters -Name “Maximum Audit Queue Size” -value 0x61a8 [server.mydomain.local]: PS C:\Users\admin\Documents> exit-pssession Links: https://www.computerperformance.co.uk/powershell/registry/ https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/10/use-powershell-to-create-new-registry-keys-on-remote-systems/