Windows 10: Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...

Discus and support Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent... in Windows 10 Software and Apps to solve the problem; It is a laborious task to remove the legacy extension by logging into each individual VM because I have more than 500 in my subscription.... Discussion in 'Windows 10 Software and Apps' started by Vikram Tikare, Jul 22, 2023.

  1. Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...


    It is a laborious task to remove the legacy extension by logging into each individual VM because I have more than 500 in my subscription.

    :)
     
    Vikram Tikare, Jul 22, 2023
    #1

  2. 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.
     
    Verma Rachna, Jul 22, 2023
    #2
  3. 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.
     
    PrasanRP, Jul 22, 2023
    #3
  4. PrasanRP Win User

    Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...

    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.
     
    PrasanRP, Jul 22, 2023
    #4
Thema:

Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...

Loading...
  1. Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent... - Similar Threads - Executable Powershell script

  2. 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...
  3. 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...
  4. Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...

    in Windows 10 Gaming
    Executable Powershell script that will assist me in removing the Microsoft Monitoring Agent...: It is a laborious task to remove the legacy extension by logging into each individual VM because I have more than 500 in my subscription. https://answers.microsoft.com/en-us/windows/forum/all/executable-powershell-script-that-will-assist-me/80497a3f-caca-4d7a-a49d-ab234a9f8f96
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. Issue faced when PowerShell script executed through SQL Server Agent Job

    in Windows 10 Installation and Upgrade
    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 -...
  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...