Command line options appear on startup, Win10

Alexandre Tavares 1 Reputation point
2022-03-21T13:32:31.407+00:00

I am trying to add BGinfo to our machines to help users identify some basic information when contacting the IT department, I've added a shortcut to the startup folder and it will start BGinfo properly.i used:

C:\BGInfo\Bginfo.exe /silent /accepteula /nolicprompt /timer:00 BGconfig.bgi

this should start BGinfo for any user on any machine once they sign into the machine. the main issue is that when the user signs in the BGinfo command line options window also appears. is there any way i can stop that from happening? do i need to add a command to the shortcut?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,778 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,174 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Matt Haegele 5 Reputation points
    2023-12-13T15:39:34.9666667+00:00

    I have found a solution but it was a Challenge.

    • You have to run it as an ADMIN (Local or Domain)

    The Script should be "C:\BGInfo\Bginfo.exe" BGconfig.bgi /TIMER:00 /SILENT /NOLICPROMPT. 2 big differences is the switches have to be in all caps. Also, you will have to place it in task scheduler in order to run it as an admin at login. I have created an XML to make it easier on myself.

    1 person found this answer helpful.

  2. Limitless Technology 39,686 Reputation points
    2022-03-25T16:02:45.64+00:00

    Hi @Alexandre Tavares

    Please see the following link for a full guide on how to set up BGInfo:

    https://learn.microsoft.com/en-us/sysinternals/downloads/bginfo

    The main issue is the timer:5, we need to set timer:0 in order to not display customisation screen.

    I do hope this answers your question.

    Thanks.

    --
    --If the reply is helpful, please Upvote and Accept as answer--


  3. Ivan Motryuk 0 Reputation points
    2023-04-05T07:02:10.6233333+00:00

    It might be too late for answer but try: "C:\BGInfo\Bginfo.exe" BGconfig.bgi /silent /timer:00 /nolicprompt
    Your issue is usually caused by mistyping configs for bginfo.

    0 comments No comments

  4. MSP | Petrosky.IT 0 Reputation points
    2024-01-16T02:57:52.69+00:00

    I am a little late to the game here. I am trying to get this deployed out to our customers PCs/Servers. I am pulling my hair out trying to get it to deploy via our RMM.

    If someone wants to take a stab at this, id be glad to pay for some consulting here if we can get it going.

    Some details:
    All customers PCs are 64 bit.
    We use both SuperOps.AI and Level RMM. Same results on both.

    I am trying to setup a scheduled task to update the bginfo.bgi every minute. Long term would like for this to be setup to pull the bginfo.bgi every minute from our CDN, that way we can post status updates and estimated call wait times, etc. This can wait, I just need to get it to actually get something up on a desktop right now, niceties like this can come later on.

    Here is the script as it sits right now. Nothing is happening, despite the 1 minute run tasks.

    # Define URLs and download locations
    $exeUrl = "https://public.petrosky.it/Bginfo64.exe"
    $bgiUrl = "https://public.petrosky.it/PTSKBginfo/BGconfig.bgi"
    $exeOutput = "C:\PetroskyIT\Bginfo64.exe"
    $bgiOutput = "C:\PetroskyIT\BGconfig.bgi"
    
    # Create the PetroskyIT directory if it doesn't exist
    If (-Not (Test-Path -Path "C:\PetroskyIT")) {
        Write-Host "Creating directory C:\PetroskyIT"
        New-Item -ItemType Directory -Path "C:\PetroskyIT"
        Write-Host "Directory created"
    }
    
    # Download Bginfo64.exe
    Write-Host "Downloading Bginfo64.exe"
    Invoke-WebRequest -Uri $exeUrl -OutFile $exeOutput
    Write-Host "Download of Bginfo64.exe completed"
    
    # Download BGconfig.bgi
    Write-Host "Downloading BGconfig.bgi"
    Invoke-WebRequest -Uri $bgiUrl -OutFile $bgiOutput
    Write-Host "Download of BGconfig.bgi completed"
    
    # Create a Scheduled Task to run Bginfo64.exe every minute
    $taskName = "RunBginfoEveryMinute"
    $action = New-ScheduledTaskAction -Execute "Powershell.exe" -Argument "-Command & { Start-Process -FilePath `"$exeOutput`" -ArgumentList `"`"$bgiOutput`" /TIMER:00 /SILENT /NOLICPROMPT`" -Verb RunAs }"
    $repetitionDuration = New-TimeSpan -Days 3650
    $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes 1) -RepetitionDuration $repetitionDuration
    $principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -LogonType ServiceAccount -RunLevel Highest
    
    # Check if the task already exists
    If (-Not (Get-ScheduledTask -TaskName $taskName -ErrorAction SilentlyContinue)) {
        Write-Host "Creating scheduled task to run Bginfo64.exe every minute"
        Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Principal $principal
        Write-Host "Scheduled task created"
    } Else {
        Write-Host "Task already exists. Skipping creation."
    }
    
    
    0 comments No comments

Your answer

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