I need to open regedit on remote computer, I script it in powershell but the Alt keys %(FC) was not sended to regedit
[void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
$Process = start-process regedit -PassThru
Start-Sleep -m 500
[Microsoft.VisualBasic.Interaction]::AppActivate($Process.id)
Start-Sleep -m 500
#[void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
[System.Windows.Forms.SendKeys]::SendWait("%(FC)")
[System.Windows.Forms.SendKeys]::SendWait("$serverName")
[System.Windows.Forms.SendKeys]::SendWait("~~")
if i try it on notpad, it's works but not on regedit !