Jump to content

kavaa

Members
  • Posts

    99
  • Joined

  • Last visited

Posts posted by kavaa

  1. You should be good to go with putting: 

    For Autoreboot:

    Get-WUInstall MicrosoftUpdate AcceptAll AutoReboot

    Without Autoreboot:

    Get-WUInstall –MicrosoftUpdate –AcceptAll

    Knowing that you have the PSWindowsUpdate Installed of course.

    And also make sure your client have at least Powershell 5.1

  2. Found it:

    In the config.xml

    Change the percentage and path to your needs.

    Also change false to enabled.

    <LowHDDSpace>
                <Hdd Percentage="10" Path="/" Priority="0" Enabled="true"/>
                <Hdd Percentage="10" Path="/home" Priority="1" Enabled="true"/>
      			<Hdd Percentage="10" Path="/mnt/media" Priority="1" Enabled="true"/>
    </LowHDDSpace>

     

  3. Not really in that way.

    More like Domain Pointers / CNAMES

    So no seperate instances of Pulseway MSP.

    But like:

    ictwebsolution.pulseway.com < Main MSP URL

    Customer 1 with Group X under the main account, customer has Access but the customer wants his own name to connect to.

    For example: monitoring.companynameX.com > points to > ictwebsolution.pulseway.com as an alias.

    So the customer does not know anything of ictwebsolution.pulseway.com only his own URL.

    So that its even more Whitelabel than only a Logo and changes in Emails.

  4. We would like to offer our clients a white label monitoring solution.

    Of course the pluseway app is not white label. But we have now a URL company.pulseway.com for example.

    It would be nice if we could add multiple for multiple clients.

    Can this be done? Maybe not trough the web app but by contacting support so they can add the alias?

    Also the url for the endpoint server in the pulseway clients needs to be unique for the client then.

  5. I made a install script for CCleaner to do a Silent install and clean if needed.

    Improvements are welcome!

    When a new version of FireFox comes out, just change the firefox version or url to the new value.

    # Silent Install Firefox 
    # Download URL: https://www.mozilla.org/en-US/firefox/all/
    
    # 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://download.mozilla.org/?product=firefox-51.0.1-SSL&os=win64&lang=en-US"
    $destination = "$workdir\firefox.exe"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $destination)
    }
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\firefox.exe" -ArgumentList "/S"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\firefox*

     

  6. I made a install script for 7-Zip to do a Silent install and clean if needed.

    Improvements are welcome!

    When a new version of 7-Zip comes out, just change the 7z1604-x64.msi to the new value.

    # Silent Install 7-Zip
    # http://www.7-zip.org/download.html 
    
    # 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.7-zip.org/a/7z1604-x64.msi"
    $destination = "$workdir\7-Zip.msi"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $destination)
    }
    
    Invoke-WebRequest $source -OutFile $destination 
    
    # Start the installation
    
    msiexec.exe /i "$workdir\7-Zip.msi" /qn
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 35
    
    # Remove the installer
    
    rm -Force $workdir\7*

     

  7. Version 3

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  8. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  9. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    
    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  10. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  11. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  12. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  13. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # Silent Install Dropbox 
    # Download URL: https://www.dropbox.com/downloading?full=1&os=win
    
    # 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 = "hhttps://www.dropbox.com/download?full=1&plat=win"
    $destination = "$workdir\dropbox.exe"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $destination)
    }
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\dropbox.exe" -ArgumentList "/S"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 60
    
    # Remove the installer
    
    rm -Force $workdir\dropbox*

    Please let the user Log Off and On again after the installation of dropbox, then Dropbox wil auto start.

  14. Version 2

    This version will check if the Invoke-WebRequest Command exists or not. For legacy Systems like Windows 7 you than only have one Script and don't need to change things in Pulseway

    # 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"
    
    # Check if Invoke-Webrequest exists otherwise execute WebClient
    
    if (Get-Command 'Invoke-Webrequest')
    {
         Invoke-WebRequest $source -OutFile $destination
    }
    else
    {
        $WebClient = New-Object System.Net.WebClient
        $webclient.DownloadFile($source, $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*

     

  15. Here is a script to remove Dropbox with PowerShell.

    Be aware that your Dropbox could also be removed.

    #Script to remove Dropbox
    #This May remove your dropbox folder contents form your computer
    
    #By: Enrique Sanchez
    
    #Dropbox Paths
    
    $Dir = "C:\Users\"
    
    $drop = "\Appdata\Roaming\Dropbox"
    
    $dropM = "\Appdata\Roaming\DropboxMaster"
    
    $DropD = "\Dropbox"
    
    $StartM = "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Dropbox"
    
    $Short = "\Desktop\Dropbox.lnk"
    
    #Kill related processes
    
    taskkill /im dropbox.exe /f
    
    taskkill /im explorer.exe /f
    
    Get-ChildItem -name c:\users | foreach ($_) {
    
    Remove-Item -recurse -force $Dir$_$dropD -ErrorAction SilentlyContinue
    
    Remove-Item -recurse -force $dir$_$dropM -ErrorAction SilentlyContinue
    
    Remove-Item -recurse -force $dir$_$drop -ErrorAction SilentlyContinue
    
    Remove-Item -recurse -force $dir$_$StartM -ErrorAction SilentlyContinue
    
    Remove-Item -recurse -force $dir$_$Short -ErrorAction SilentlyContinue
    
    }
    
    C:\Windows\explorer.exe
    
    #End

     

  16. I made a install script for Dropbox 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://www.dropbox.com/downloading?full=1&os=win

    # Silent Install Dropbox 
    # Download URL: https://www.dropbox.com/downloading?full=1&os=win
    
    # Path for the workdir
    $workdir = "c:\ictwebsolution\"
    
    # 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://www.dropbox.com/download?full=1&plat=win"
    $destination = "$workdir\dropbox.exe"
    Invoke-WebRequest $source -OutFile $destination
    
    # Start the installation
    
    Start-Process -FilePath "$workdir\dropbox.exe" -ArgumentList "/S"
    
    # Wait XX Seconds for the installation to finish
    
    Start-Sleep -s 60
    
    # Remove the installer
    
    rm -Force $workdir\dropbox*
    

    For Windows 7 please change 

    $source = "https://www.dropbox.com/download?full=1&plat=win"
    $destination = "$workdir\dropbox.exe"
    Invoke-WebRequest $source -OutFile $destination

    To

    $WebClient = New-Object System.Net.WebClient
    $WebClient.DownloadFile("https://www.dropbox.com/download?full=1&plat=win","$workdir\dropbox.exe")

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

    Please let the user Log Off and On again after the installation of dropbox, then Dropbox wil auto start.

×
×
  • Create New...