Jump to content

kavaa

Members
  • Posts

    99
  • Joined

  • Last visited

Posts posted by kavaa

  1. I did some checks with command line options to initiate a Scan, but it would not let me do it.

    Link to the switches: http://www.gegeek.com/documents/B16E4181A9CDD6828ECADB10CD9204EF472E2E04.html

    mbam.exe ⁄parameter
    (where parameter is one of the following)
     
    ⁄debug: allows you to collect information to send as a bug report.
    ⁄developer: this command line parameter is explained in the false positives section.
    ⁄minimized: allows you to start the program minimized.
    ⁄quickscan: allows you to run a quick scan.
    ⁄quickscanterminate: allows you to run a quick scan. Program terminates if no items found.
    ⁄fullscan: allows you to run a full scan.
    ⁄fullscanterminate: allows you to run a full scan. Program terminates if no items found.
    ⁄runupdate: allows you to update the program without displaying result dialogs.
    ⁄register: allows you to register the program without displaying main dialog.
    ⁄fullauto: allows you to run a full scan silently.
     
     
    Examples
    ⁄updateshowdialog: allows you to update the program displaying all dialogs.
    ⁄schedule : allows you to schedule an update and scan for a specific hour. Scan will happen 5 minutes after update.
     
    Example: mbam.exe ⁄schedule 0 (will schedule for 12:00 AM local time)
    Example: mbam.exe ⁄schedule 5 (will schedule for 5:00 AM local time)
    Example: mbam.exe ⁄schedule 23 (will schedule for 11:00 PM local time)

    If someone has got this to work with the free or activated version let me know.

    I think it would only work with the enterprise version, and they removed the options form the Free / Activated Version

  2. I made a install script for MalwareBytes to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    Change the version if needed in the Source URL: https://data-cdn.mbamupdates.com/web/mb3-setup-consumer-3.0.6.1469.exe

    # Silent Install MalwareBytes 
    # Download URL: https://www.malwarebytes.com/mwb-download/thankyou/
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "https://data-cdn.mbamupdates.com/web/mb3-setup-consumer-3.0.6.1469.exe"
    $destination = "$workdir\mbam.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\mbam.exe" -ArgumentList "/NOCANCEL /NORESTART /VERYSILENT /SUPPRESSMSGBOXES"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\mbam*

    For Windows 7 please change 

    $source = "https://data-cdn.mbamupdates.com/web/mb3-setup-consumer-3.0.6.1469.exe"
    $destination = "$workdir\mbam.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("https://data-cdn.mbamupdates.com/web/mb3-setup-consumer-3.0.6.1469.exe","$workdir\mbam.exe")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

     

  3. On 2-2-2017 at 6:23 PM, Mark said:

    Thank you for your feedback. We will consider having a terminal emulator in the mobile app.

    Mark

    Also Add it in the WebApp as well.

    with the option to keep sessions open. And do a notification via email of pish if a session is open for more than x min without interaction.

    prompt for iphone has this, works really well and notifys you when the app is still running in the background with connections open!

  4. 23 minutes ago, Paul said:

    Did you get any output from the script?

    @kavaaI'd also return an exit code of 1 or higher when there's a problem so Pulseway will mark the script execution as failed.

    -Paul

    Any suggestions on how to integrate that?

    Because its a silent installer and checking for errors with that... kind of tricky?

    2 hours ago, ComputerConsulting said:

    I had the same thing happen with the winrar script.  Nothing.

    Well almost nothing.  I deleted the c:\installer directory.

    I watched the directory get created again but never saw a file in it.

    Added instruction for Windows 7 since it does not have the Invoke-WebRequest command in PowerShell

  5. 2 minutes ago, ComputerConsulting said:

     

    
    $destination = "$workdir\winrar.exe"

     

    I know next to nothing about PowerShell scripting, but why did you end the line with winrar.exe ?  That's not a directory, that's a file.

    $source = "http://rarlab.com/rar/winrar-x64-540.exe" -> Download Location
    $destination = "$workdir\winrar.exe" -> Location where the file needs to be saved
    Invoke-WebRequest $source -OutFile $destination -> Command that executes the download

    So the download should be saved in the $workdir and the workdir = C:\installer 

    That's where the Destination is for.

    1 minute ago, ComputerConsulting said:

    You have a 35 second sleep in the script.  

    The script runs for 35 seconds.  

    True, that is so that the script waits 35sec. before removing the Installer.

  6. 3 minutes ago, ComputerConsulting said:

    I watched the script finish in less than a minute.  

    If you have a Fast Connection that's normal then ;) 

    But if its not installed then something is Wrong.

    I need to test it on Windows 7 only tested it on Windows 10

  7. 40 minutes ago, Paul said:

    Thank you for your scripts. BTW: You can use -Wait on the Start-Process to wait for the process to exit. An alternative would be Wait-Process which also supports -Timeout. Great job.

    -Paul

    I did try it with that, but sometimes it failed. So that's why I went back to a old fashion Wait...

  8. 7 minutes ago, ComputerConsulting said:

    I tried this script.

    It did not install.

    I opened the directory c:\installer and watched it while I ran the script a second time.

    I never saw a file appear in this directory.

    I tested this on Windows 7 

    Since I only have Windows 8 and up Machines at the moment I cannot test it.

    I'm going to install a Windows 7 VM now to test it on there as well.

    p.s. the files gets downloaded via PowerShell and it could be slow.

  9. I made a install script for Google Chrome to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    When a new version of Google Chrome comes out follow this url: https://enterprise.google.com/chrome/chrome-browser/ 
    Next find the download button -> Right click on the download button and choose Copy Download Location paste it in the script and it will download the latest version.

    # Silent Install Chrome
    # https://enterprise.google.com/chrome/chrome-browser/
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/dl/chrome/install/googlechromestandaloneenterprise64.msi"
    $destination = "$workdir\chrome.msi"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    msiexec.exe /i "$workdir\chrome.msi" /q /norestart 
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\chrome*

     

    For Windows 7 please change 

    $source = "https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/dl/chrome/install/googlechromestandaloneenterprise64.msi"
    $destination = "$workdir\chrome.msi"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/dl/chrome/install/googlechromestandaloneenterprise64.msi","$workdir\chrome.msi")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

  10. I made a install script for Adobe Reader DC to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    Change the version if needed in the Source URL: http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1502320053/AcroRdrDC1502320053_en_US.exe

    # Silent install Adobe Reader DC
    # https://get.adobe.com/nl/reader/enterprise/
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1502320053/AcroRdrDC1502320053_en_US.exe"
    $destination = "$workdir\adobeDC.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\adobeDC.exe" -ArgumentList "/sPB /rs"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\adobe*

    For Windows 7 please change 

    $source = "http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1502320053/AcroRdrDC1502320053_en_US.exe"
    $destination = "$workdir\adobeDC.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("http://ardownload.adobe.com/pub/adobe/reader/win/AcrobatDC/1502320053/AcroRdrDC1502320053_en_US.exe","$workdir\adobeDC.exe")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

  11. I made a install script for Skype to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    # Silent Install Skype
    # https://www.skype.com/en/download-skype/skype-for-windows/
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "http://www.skype.com/go/getskype-full"
    $destination = "$workdir\skype.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\skype.exe" -ArgumentList "/VERYSILENT /SP- /NOCANCEL /NORESTART /SUPPRESSMSGBOXES /NOLAUNCH"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 60
    
    # Remove the installer
    
    rm -Force $workdir\skype*

    For Windows 7 please change 

    $source = "http://www.skype.com/go/getskype-full"
    $destination = "$workdir\skype.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("http://www.skype.com/go/getskype-full","$workdir\skype.exe")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

  12. I made a install script for Calibre to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    # Silent Install Calibre
    # https://calibre-ebook.com/download
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "https://calibre-ebook.com/dist/win32"
    $destination = "$workdir\calibre.msi"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    msiexec.exe /i "$workdir\calibre.msi" /q
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\c*

     

    For Windows 7 please change 

    $source = "https://calibre-ebook.com/dist/win32"
    $destination = "$workdir\calibre.msi"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("https://calibre-ebook.com/dist/win32","$workdir\calibre.msi")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

     

  13. I made a install script for Winrar to do a Silent install.

    UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists

    Improvements are welcome!

    When a new version of Winrar comes out, just change the winrar-x64-540.exe to the new value.

    # Silent Install Winrar
    # http://www.winrar.com
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "http://rarlab.com/rar/winrar-x64-540.exe"
    $destination = "$workdir\winrar.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\winrar.exe" -ArgumentList "/S"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\w*

    For Windows 7 please change 

    $source = "http://rarlab.com/rar/winrar-x64-540.exe"
    $destination = "$workdir\winrar.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("http://rarlab.com/rar/winrar-x64-540.exe","$workdir\winrar.exe")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

  14. Version 2

    # Silent Install CCleaner
    # http://www.piriform.com/ccleaner/download
    
    # Path for the workdir
    $workdir = "c:\installer\"
    
    # Check if work directory exists if not create it
    
    If (Test-Path -Path $workdir -PathType Container)
    { Write-Host "$workdir already exists" -ForegroundColor Red}
    ELSE
    { New-Item -Path $workdir  -ItemType directory }
    
    # Download the installer
    
    $source = "http://download.piriform.com/ccsetup526.exe"
    $destination = "$workdir\ccsetup.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\ccsetup.exe" -ArgumentList "/S"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\c*

    For Windows 7 please change 

    $source = "http://download.piriform.com/ccsetup526.exe"
    $destination = "$workdir\ccsetup.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("http://download.piriform.com/ccsetup526.exe","C:\installer\ccsetup.exe")

    Since Powershell in Windows 7 does not support the Invoke-WebRequest

×
×
  • Create New...