Windows 10: Invoke-Restmethod CMD showing up and disappearing

Discus and support Invoke-Restmethod CMD showing up and disappearing in Windows 10 Gaming to solve the problem; Not sure if this is the right place to submit this.A client has a Win11 Pro device that is coming up with this CMD prompt window intermittently:We're... Discussion in 'Windows 10 Gaming' started by Christopher Bell, May 3, 2023.

  1. Invoke-Restmethod CMD showing up and disappearing


    Not sure if this is the right place to submit this.A client has a Win11 Pro device that is coming up with this CMD prompt window intermittently:We're concerned if it's a security risk first and foremost. Windows Defender isn't alerting us to anything suspicious, though. I'm running a full scan just in case.I'm not familiar with what this Invoke-RestMethod command is meant to do, if anyone can explain in laymans terms it'd be appreciated. The client reports that the prompt usually pops up and disappears quite quickly, they were lucky to get a screenshot of it at all. The list of websites seems

    :)
     
    Christopher Bell, May 3, 2023
    #1

  2. Powershell script error:- Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.

    i Guys,

    I am using one script . it was working fine before 6 days but now giving error. I am using the Labtech software to monitor machines. when monito fails then this script runs on machine and send the result to opsGenis email. then ops
    genie sends the alert on phone via SMS or voice call.

    this is the error when script run on server . FYI, server is exchange server.

    Code:
     
    Code:
    Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.At C:\Windows\system32\config\systemprofile\AppData\Local\9e1cd5b9f46d4e17b9179fbe197f1909.ps1:36 char:11+ $result = Invoke-RestMethod -Method "Post" -Uri $uri -Headers $headers -Body $bo ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt pWebRequest) [Invoke-RestMethod], WebException+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe ll.Commands.InvokeRestMethodCommand
    
    This is the script :-
    
    param (  [string]$eu = "False",  [string]$apiKey = "apiKey",  [string]$status = "status",  [string]$clientname = "client",  [string]$computername = "computer",  [string]$locationname = "location",  [string]$fieldname = "field",  [string]$result = "result",  [string]$when = "when",  [string]$contactName = "contact",  [string]$monitorName = "monitor")
    
      if($eu -eq "True") {  $uri = "https://api.eu.opsgenie.com/v1/json/integrations/webhooks/connectwiseautomate?apiKey=" + $apiKey;}else {  $uri = "https://api.opsgenie.com/v1/json/integrations/webhooks/connectwiseautomate?apiKey=" + $apiKey;}
    
    $body = ConvertTo-Json @{  status = $status  clientName = $clientname  computerName = $computername  locationName = $locationname  fieldName = $fieldname  result = $result  when = $when  contactName = $contactName  monitorName = $monitorName}$headers = [Hashtable] @{    Type = 'application/json'};$result = Invoke-RestMethod -Method "Post" -Uri $uri -Headers $headers -Body $body -ContentType 'application/json'Write-Output $result
    Thanks

    Code:
     
     
    barindersingh, May 3, 2023
    #2
  3. Mithin_EJ Win User
    Have Invoke play music that is currently playing on my PC

    Hi JessebOne,

    Thank you for posting your concern on Microsoft Community Forums.

    Try to uninstalling and reinstalling the Cortana Device Setup app and check if you're able to complete the setup. Invoke Works with select music services, paid subscriptions may be required. I suggest you to try reset Invoke, follow
    the below steps, and check if that helps.

    1. Attach Power Cable
    2. Press and Hold the Mic Mute Button until Cortana Says, “Ready for setup.”
    Note: the Invoke will not function until properly set up and linked to a Microsoft account.

    I suggest you to follow this article on
    Set up my Harman Kardon Invoke with Cortana
    , and I also suggest you to refer this article on

    Fix problems with the Start menu or Cortana
    .

    I also suggest you to refer this article on
    Introducing Harman Kardon INVOKE
    with Cortana by Microsoft
    , where you can see the partners who support controlling invoke.

    We await your response.

    Regards,
     
    Mithin_EJ, May 3, 2023
    #3
  4. Orlok666 Win User

    Invoke-Restmethod CMD showing up and disappearing

    Powershell Invoke-RestMethod get a Windows Security popup to have access to a private key

    Hi,

    I am trying to make use of the Invoke-RestMethod cmdlet to authenticate to a remote REST webservice using a client certificate on my Windows 2012 server and to doesn't work as expected. It always complaining that it cannot find the thumbprint of the certificate
    I want to use. The certificate is in the "Computer" store and the user I am using has access to the private key.

    When I ran the script manually, I always get a "Windows Security" popup asking me to authorize the program to access my private key. When I click "Allow", it works fine. I am assuming that this is where it get block when the script is run.

    Is someone ever had to fix that as well ? How can I grant the script to access my Private Key ?

    Thanks
     
    Orlok666, May 3, 2023
    #4
Thema:

Invoke-Restmethod CMD showing up and disappearing

Loading...
  1. Invoke-Restmethod CMD showing up and disappearing - Similar Threads - Invoke Restmethod CMD

  2. Invoke-Restmethod CMD showing up and disappearing

    in Windows 10 Software and Apps
    Invoke-Restmethod CMD showing up and disappearing: Not sure if this is the right place to submit this.A client has a Win11 Pro device that is coming up with this CMD prompt window intermittently:We're concerned if it's a security risk first and foremost. Windows Defender isn't alerting us to anything suspicious, though. I'm...
  3. cmd popup and disappear problem

    in Windows 10 Software and Apps
    cmd popup and disappear problem: I think I have a virus let me explain:cmd prompt randomly pops up and closes I've tried almost everything to stop it, I've watch youtube tutorial's I've tried using a anti virus I've tried commds in cmd prompt but nothing works.some times it doesn't just disappear it stays...
  4. system32 cmd suddenly pop up and disappear

    in Windows 10 Gaming
    system32 cmd suddenly pop up and disappear: how can i fix that after pc on. for a while is show upsame this videohttps://youtu.be/AUNCvP9yeFw https://answers.microsoft.com/en-us/windows/forum/all/system32-cmd-suddenly-pop-up-and-disappear/09a47b03-a113-4c4f-baab-72da215f562d
  5. system32 cmd suddenly pop up and disappear

    in Windows 10 Software and Apps
    system32 cmd suddenly pop up and disappear: how can i fix that after pc on. for a while is show upsame this videohttps://youtu.be/AUNCvP9yeFw https://answers.microsoft.com/en-us/windows/forum/all/system32-cmd-suddenly-pop-up-and-disappear/09a47b03-a113-4c4f-baab-72da215f562d
  6. Window pops up and disappears Not CMD

    in Windows 10 Gaming
    Window pops up and disappears Not CMD: There is a window that keeps poping up and disappearing instantly in Windows 11 but it does not look like a CMD window, more like some program but I can't tell what it is because it happens way too fast. I tried screen recording to try and pick it up but it does not show at...
  7. Window pops up and disappears Not CMD

    in Windows 10 Software and Apps
    Window pops up and disappears Not CMD: There is a window that keeps poping up and disappearing instantly in Windows 11 but it does not look like a CMD window, more like some program but I can't tell what it is because it happens way too fast. I tried screen recording to try and pick it up but it does not show at...
  8. cmd popping up for a second and then disappearing

    in Windows 10 BSOD Crashes and Debugging
    cmd popping up for a second and then disappearing: hi all, i try to go into the cmd on my computer but all that happens is that the window opens for a split second and then closes immediately. i managed to get a screen shot of the error. i ran all kinds of antivirus but nothing popped up. tyia[ATTACH]...
  9. Cmd show in the start up then automatically shutdown

    in Windows 10 BSOD Crashes and Debugging
    Cmd show in the start up then automatically shutdown: My laptop is 5 years old Acer. Today my laptop automatically shutdown. When i restarted it goes to the desktop in this window pop out c:\WINDOWS\system32\cmd.exe. and it keep shuting down after 10-15 secs. Running in safe mode is working but once i change it to my account i...
  10. CMD crash, when invoking my script.

    in Windows 10 BSOD Crashes and Debugging
    CMD crash, when invoking my script.: CMD (Windows 10; I cannot delivery more details, because Windows is not my main system) crash on this script: http://slawek.lach.art.pl/wyj%C5%9Bcie2.bat (download from this link, please) I must wrote, I'm using a special hacks to make this script works both on bash...