Powershell command to install the .exe file from the command line along with the token in Windows

Vedanth Pulipati 241 Reputation points
2022-05-20T10:11:56.983+00:00

I am trying to install an antivirus setup which will prompt for the token to procced with the installation i am trying to do it from the PowerShell but it's prompt the window and asking me to enter the token id

Command used:

start SentinelInstaller_Windows.exe /SITE_TOKEN=XXXXX

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,113 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,113 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

2 additional answers

Sort by: Most helpful
  1. Carlos Solís Salazar 16,436 Reputation points
    2022-05-20T11:48:11.54+00:00

    Hi @Vedanth Pulipati

    Thank you for asking this question on the **Microsoft Q&A Platform. **

    If you must install it via PowerShell change the option, use the "-" instead of "/", something like this

    start SentinelInstaller_Windows.exe -SITE_TOKEN=XXXXX  
    

    Hope this helps,
    Carlos Solís Salazar

    ----------

    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.
    NOTE: To answer you as quickly as possible, please mention me in your reply.


    1 person found this answer helpful.

  2. MotoX80 31,571 Reputation points
    2022-05-20T13:01:14.033+00:00

    Does XXXXX contain any special characters such as dollar signs? Try enclosing the argument in single quotes.

    Start-Process SentinelInstaller_Windows.exe -ArgumentList '/SITE_TOKEN=XXXXX'
    

    For more help...

    Get-Help Start-Process 
    
    1 person found this answer helpful.