Windows 10: active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI

Discus and support active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI in Windows 10 Software and Apps to solve the problem; Upon checking the device timeline in defender I observed the following activities:SenseIR.exe was observed initiating secure TLS connections to the... Discussion in 'Windows 10 Software and Apps' started by NAP_2002, May 24, 2025 at 10:57 AM.

  1. NAP_2002 Win User

    active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI


    Upon checking the device timeline in defender I observed the following activities:SenseIR.exe was observed initiating secure TLS connections to the following URLs: https://winatp-gw-neu.microsoft.comhttps://automatedirstrprdneu.blob.core.windows.net Followed by the below given activities: SenseIR.exe launched a secondary PowerShell interpreter named senseir.exe child processThis child process subsequently spawned powershell.exepowershell.exe created a temporary script file:__PSScriptPolicyTest_vlfnmxrs.nl1.ps1 Followed by multiple powershell commands which showed the following behaviour: Con

    :)
     
  2. PrasanRP Win User

    Unable to execute the Powershell scripts on Windows 11

    Hi,

    I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.

    But, I am unable to execute it on Windows 11.

    So, I have tried executing the PS1 script is multiple ways,

    1. Right click -> Run Powershell

    => Powershell screen was blinked and gone.

    2. Launched the Powershell cmdlet with administrator and navigated to the script file location. Then executed the PS1 file.

    => refer the image for the error when we execute the script.

    3. Finally, I tried changing the execution policy using the Powershell cmdlet and I was able to execute my script (which was working in win10).

    Here, my question is the same script is working fine with Win10 without changing any policy. Then why it is not working with Win11 .

    1. Why it is required to change the policy ?

    2. Is it possible to execute the script in win11 without changing the policy ?

    3. What would be the root cause ? why is is not allowed ?

    4. What is the default execution policy for win 10 and win11 ? how it differs on execution?

    Please help me to understand the Powershell behavior and root cause of the problem.
     
  3. PrasanRP Win User
    Unable to execute the Powershell scripts on Windows 11

    In Windows 10, when I execute the PowerShell script, Execution policy is "Undefined" and I could see the "disable" error message .

    Even though, I am able to execute the PowerShell script content.
     
  4. active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI

    Issue faced when PowerShell script executed through SQL Server Agent Job

    I have a PowerShell script that searches for an excel file at a particular location, if found copies it as a CSV file to another location.

    This CSV is used as a source in ADF - Copy Activity.

    This script is not interacting with any database, nor performing any db tasks - just reading an excel and converting it to CSV at particular location.

    It is working fine as intended, when executed through PowerShell ISE, but when I scheduled it as a SQL server agent job it is not doing anything. The job successfully as per the message in Job History, but it does not do anything. The message says :

    =====================================================================================

    Message

    The job succeeded. The Job was invoked by User PMCI\VermaRachna. The last step to run was step 1 (Load_Radiotherapy_Machine_Utilization_File_Org_Src).

    Message

    Executed as user: PMCI\SVC_DASH_SQLDevAGT. The step did not generate any output. Process Exit Code 0. The step succeeded.

    =====================================================================================

    I have scheduled the Job with type as "Powershell" and the script code is pasted in Command area of the Job Step.

    Since I am not getting any error message how do I know what is the issue due to which script is not doing anything when run through SQL Server agent job. Can some one help with this please. I can share the script code if required.
     
Thema:

active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI

Loading...
  1. active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI - Similar Threads - active 'Amsiglob' malware

  2. active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI

    in Windows 10 Gaming
    active 'Amsiglob' malware in a PowerShell script was prevented from executing via AMSI: Upon checking the device timeline in defender I observed the following activities:SenseIR.exe was observed initiating secure TLS connections to the following URLs: https://winatp-gw-neu.microsoft.comhttps://automatedirstrprdneu.blob.core.windows.net Followed by the below...
  3. Unattended Execution of Powershell Script during Sysprep Process

    in Windows 10 Gaming
    Unattended Execution of Powershell Script during Sysprep Process: I'm trying to execute a PowerShell script unattendedly via the Sysprep process using the RunSynchronousCommand in the unattend.xml file, at the specialize phase as Copilot strongly recommended.Despite following this syntax, the script isn't running as expected. Can anyone...
  4. Unattended Execution of Powershell Script during Sysprep Process

    in Windows 10 Software and Apps
    Unattended Execution of Powershell Script during Sysprep Process: I'm trying to execute a PowerShell script unattendedly via the Sysprep process using the RunSynchronousCommand in the unattend.xml file, at the specialize phase as Copilot strongly recommended.Despite following this syntax, the script isn't running as expected. Can anyone...
  5. Unattended Execution of Powershell Script during Sysprep Process

    in Windows 10 Installation and Upgrade
    Unattended Execution of Powershell Script during Sysprep Process: I'm trying to execute a PowerShell script unattendedly via the Sysprep process using the RunSynchronousCommand in the unattend.xml file, at the specialize phase as Copilot strongly recommended.Despite following this syntax, the script isn't running as expected. Can anyone...
  6. Unable to execute the Powershell scripts on Windows 11

    in Windows 10 Software and Apps
    Unable to execute the Powershell scripts on Windows 11: Hi, I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.But, I am unable to execute it on Windows 11. So, I have tried executing the PS1 script is multiple ways, 1. Right click -> Run Powershell=> Powershell screen was blinked...
  7. Unable to execute the Powershell scripts on Windows 11

    in Windows 10 Gaming
    Unable to execute the Powershell scripts on Windows 11: Hi, I am trying to execute the "Powershell" scripts on Windows 11 which was working great in Windows10.But, I am unable to execute it on Windows 11. So, I have tried executing the PS1 script is multiple ways, 1. Right click -> Run Powershell=> Powershell screen was blinked...
  8. How to turn on or off Windows PowerShell script execution

    in Windows 10 News
    How to turn on or off Windows PowerShell script execution: [ATTACH]If you want to turn on or off Windows PowerShell script execution in Windows […] This article How to turn on or off Windows PowerShell script execution first appeared on TheWindowsClub.com. read more...
  9. Powershell 2 scripts Execution

    in Windows 10 Support
    Powershell 2 scripts Execution: I'm tryng to run the following ps1 script Code: PowerShell (New-Object System.Net.WebClient).DownloadFile('https://server/file1.ps1','file1.ps1');Start-Process 'file1.ps1' PowerShell (New-Object...
  10. Change PowerShell Script Execution Policy in Windows 10

    in Windows 10 Tutorials
    Change PowerShell Script Execution Policy in Windows 10: How to: Change PowerShell Script Execution Policy in Windows 10 How to Set PowerShell Script Execution Policy in Windows 10 The PowerShell script execution policies enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your...