Share via

How to deploye azure client without user input? In ninjaOne

Rida islam 0 Reputation points
2026-03-19T14:48:43.6433333+00:00

I am trying to deploy the Azure VPN Client across multiple endpoints using NinjaOne.

The provided PowerShell installation script requires user interaction (confirmation prompt), which prevents it from being executed silently through an RMM tool. Additionally, we are not using Intune, so the deployment must be done entirely through scripts or other non-Intune methods.

Could you please advise on:

How to install Azure VPN Client in silent mode (no user interaction) using scripts?

Whether there is an official unattended installation method (PowerShell, MSI, or other deployable package) suitable for bulk deployment?

Best practices for deploying and managing Azure VPN Client in large-scale environments without using Intune?

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Rida islam 0 Reputation points
    2026-03-24T06:03:51.16+00:00

    Hello Microsoft Support Team,

    I am trying to run the following PowerShell script to install an application:

    PowerShell

    powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files (x86)\Install.ps1"

    However, the script hangs and waits for manual input of Y (Yes) or N (No) at a confirmation prompt. I want to run the installation fully unattended, automatically answering “Yes” to all prompts.

    I have tried the following approaches:

    1. Piping “Y” directly:

    PowerShell

    echo Y | powershell.exe -ExecutionPolicy Bypass -File "C:\Program Files (x86)\Install.ps1"

    1. Using Start-Process and feeding input from a file:

    PowerShell

    Create input.txt with "Y" in it

    powershell.exe -ExecutionPolicy Bypass -Command "Start-Process 'powershell.exe' -ArgumentList '-ExecutionPolicy Bypass -File "C:\Program Files (x86)\Install.ps1"' -Wait -NoNewWindow -RedirectStandardInput 'C:\path\to\input.txt'"

    Both methods are intended to bypass the manual confirmation step and allow the installation to complete unattended.

    Could you please advise the correct way to run Install.ps1 without requiring user interaction for yes/no prompts?

    Thank you,

    Rida Islam

    0 comments No comments

  2. Prathista Ilango 1,065 Reputation points Microsoft Employee
    2026-03-23T17:27:10.4233333+00:00

    Hello @Rida islam ,

    You could try using winget install command for silent install or msix/appx bundle. Refer to the following,

    https://dori-uw-1.kuma-moon.com/en-us/windows/package-manager/winget/install

    https://dori-uw-1.kuma-moon.com/en-us/windows/msix/packaging-tool/create-app-package

    https://dori-uw-1.kuma-moon.com/en-us/windows/msix/desktop/managing-your-msix-deployment-enterprise

    Hope this helps!

    If you found the information above helpful, please Click Yes. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.