I wish to run a 'IE Rest Script' to a node present in the same network.
The Script is present in the MachineA
and it should be executed in the MachineB
which is present in the same network.
Script:
add-type -AssemblyName System.Windows.Forms
add-type -AssemblyName microsoft.visualbasic
RunDll32.exe InetCpl.cpl,ResetIEtoDefaults
[Microsoft.VisualBasic.Interaction]::AppActivate("rundll32")
[System.Windows.Forms.SendKeys]::SendWait("{tab}")
[System.Windows.Forms.SendKeys]::SendWait(" ")
[System.Windows.Forms.SendKeys]::SendWait("r")
[System.Windows.Forms.SendKeys]::SendWait("c")
taskkill.exe /f /im iexplore.exe`