registry settings

How can I disable autoplay using PowerShell?

I'm trying to turn off autoplay and set it to 'take no action' for all related settings through PowerShell. I attempted running a command like `New-ItemProperty -Path HKLM:SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer…