Jump to content

Search the Community

Showing results for tags 'windows'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Pulseway
    • News & Announcements
    • Installation & Configuration
    • General
    • Automation
    • Applications
    • Current Features & Server Modules
    • API
    • Feature Requests
    • Bugs
  • Pulseway On-Premise Server
    • Installation & Configuration
  • Pulseway PSA
    • General

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hi there, We are using both PSA and RMM from Pulseway. In the last few weeks we are experiencing some weird behavior between PSA and RMM. We don't use the and never set up the integration, but after we delete the settings both in PSA and RMM, it still comes back. It is irritating us enormously and the support isn't helpful after creating several tickets. I hope someone can help us with this issue. King regards, Tim Roewen
  2. Hi Getting used to, and liking, version 6. It's good to be able to apply policys to systems within Groups. However, as a lot of my clients are small, I have lots of small Groups. Is there a way to apply a policy, or individual setting to machines in more than one group e.g. applying to a scope for instance. At the moment it's time consuming to make a change in each group. Sorry - think this may have gone to wrong section...I'm not using Enterprise Server.
  3. Hello We have a dedicated controller at Pulseway. We have a couple of Windows Servers but one has showed itself as offline since yesterday. The Windows Server itself is up and running fine and the Pulseway service is running. I have tried this: Restart Pulseway Service (No problems) Unregister and Reregister System (Working Fine) Rebooted the server Communicationtest "telnet xxxx.pulseway.com 443" answering like it should Uninstalled Pulseway and removed the registry key "ComputerIdentifier" then reinstalled Uninstalled Pulseway again and removed the whole Hive "MMSOFT Design" from registry and reinstalled Pulseway. Seems like no matter what I do the server is Offline in Pulseway controller at web and IOS. Do you have any suggestions to point me in the right direction? Kindly Mikael
  4. Hello, We are long-term Pulseway customers but lately the Pulseway client has developed a bug and continuously uses up to 20%+ CPU utilisation. We logged this with Pulseway on the 4th of July this year but they have been completely ignoring the ticket. I regularly reply to the email thread for an update (at least once a week) but I am ignored. The only time I had a meaningful response was when I threatened to cancel our subscription. This was short lived and now I am back to being ignored with no status updates on my ticket. We like the product but we have a handful of servers with this bug and I am simply installing other monitoring products on them. Today I have sent my usual email to Pulseway support asking for a status update on my ticket but I'm certain I'll get nothing back... The next step will then be to install a better monitoring product like Infradog and to write the same post on Spiceworks so people know that Pulseway doesn't offer good technical support.
  5. Hello and TYIA~ I am trying to put together a work flow that will hold a ticket for 7-days once we believe it is complete. Once assigned to a particular status, I would like the ticket to stay open for 7-days, then if there are no further updates, close itself. Does anyone have anything like this they wouldn't mind sharing?
  6. Hello and Thank you in advance. What is the best way to setup monitoring on an agent and then push that agent out to all desktops? Would doing an EXPORT/IMPORT on Group Policies accomplish this? Thank you, dp
  7. I've noticed lately that when I have a remote session live on a machine, my local keyboard input is not being accepted in items such as Notepad, Chrome, Outlook, etc. This seems fairly system wide and I'm not always able to replicate the problem. This is likely something to do with the keyboard forwarding method, but I can't isolate this myself. Also, this does occur on several different machines - not one workstation in particular. As soon as I close the remote session, the keyboard functions normally in my local Windows 10 environments. Good luck with this one - it seems very transient.
  8. Hey Guys, It would be great if we had some integration with https://chocolatey.org for windows package management, its basically like apt-get or yum for windows which seems a lot better IMHO then ninite type solutions. Having its own tab under group policy for example to install selected apps across multiple machines and keep them updated within patch windows for example. This would be a huge benefit for Pulseway if done well. https://chocolatey.org/about https://chocolatey.org/pricing at only $3/year per machine its pretty competitive pricing. Cheers, Quenten
  9. Hey Fellow PW users, I've created a script which allows the system to change its name to %computername%-Current logged on username, which makes life a little easier when trying to remote to their computers on the remote control tool/Webapp. To get started, create your script in the script editor, in my example, Name: Update Computer Name with Logged on Username Windows/Powershell Code: $pwqusers = quser | Select-Object -skip 1 $pwquserfmt = $pwqusers.substring(1,22).Trim() -join "," Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor\" -Name ComputerName -Value "$env:computername-$pwquserfmt" Click Save. Next we create at new task, Name: Update Computer Name with Logged on Username Current Scope -> Windows Workstations Enable Scheduling -> (I've set it to run once a day) Every weekday (Monday to Friday), starting on 12 August 2018 at 09:00 (Australia/Brisbane) Scripts tab, Select/add your new script you just created and once that's done click save. You can now run the task on demand as well which will update all of the PC's in your windows workstations scope to Computer Name-Logged on usernames This works for RDSH hosts as well however it could get a bit of out hand if you have 5-10+ users logged in so I probably wouldn't recommend it to be used on servers. I Hope this helps you somehow, these scripts/suggestions come with no warranty and I bear no responsibility if this breaks anything, use at your own risk etc..etc.. Cheers, Quenten
  10. My predecessor had created a script that would install a desktop link to our help desk. We no longer use this solution and I want to have the shortcut removed from every device. I can't seem to find a script to do this. I hope someone could help. This is the script that he had used: @echo off md C:\icon copy "\\edmws001\image\Nortrux_Helpdesk_icon.ico" "c:\icon" icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Administrators:F icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Users:F icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant INTERACTIVE:F attrib -R "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" copy "\\edmws001\image\Nortrux IT Help Desk.lnk" "C:\Users\Public\Desktop" attrib +R "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Users:R icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant Administrators:R icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant INTERACTIVE:R icacls "C:\Users\Public\Desktop\Nortrux IT Help Desk.lnk" /inheritance:r /grant SYSTEM:F
  11. Hi. I am making an Automation Script that updates a custom plugin-file, that might is always be in use, to a newer version. If the plugin doesn't already exist everything works fine. But if it already exist it cannot be overwritten, because the Pulseway Service (and managers, if any are running) is using the file. My solution is to stop the service, overwrite the file and start the service. It works very well when executing manually in ISE, but not when executed as an Automation Script from Pulseway. It looks like the entire script is terminated when the service stops, and the execution doesn't return anything in execution history - not even an error. Could anyone help me with the best practice for updating a plugin dll-file from an Automation Script. Best Regards, Martin Stevnhoved
  12. Will be able to see in the next release an option to update time on a bulk action for multiple tickets?
  13. I am trying to create a PowerShell script that will run DBCC checks on a SQL server and then report status back to Pulseway. I have a working script that I can run from the command line but the script will not run correctly when sent as a Pulseway script. Here are the details. The script fails because it is unable to authenticate to the SQL server. The SQL Server is running on the same machine as I am running the script on. Thus wil are not dealing with cross machine accounts. I have put debug code into the script and the account reported back by PowerShell is MACHINENAME$. The machine is in a domain and thus the script appears to be reporting back the machine account in the domain. This implies to me that when Pulseway runs a script it is using the NT AUTHORITY\SYSTEM account and that the MACHINENAME$ account would then be used for any network access. Is this correct? I have given SQL Server rights to NT AUTHORITY\SYSTEM as well as DOMAIN\MACHINENAME$ and NT AUTHORITY\LOCAL SERVICE. Non of these rights appear to allow me to connect to SQL. Has anyone ever written Powershell code for Pulseway and been able to connect to SQL Server? Any ideas, thoughts or details on the user contexts used by Pulseway would be helpful.
  14. Our business operates with hundreds of products in our inventory and going through all of them and manually entering them into PSA was not exactly an option, and without an import function, I had to develop an import tool that uses the PSA API. I developed it originally with hard coded parameters, in a single class, but went back today and improved it for distribution to everyone here. To view the source code, check out the repository at https://bitbucket.org/garrettbromley/pulseway-product-import/ To download the executable files, download PulsewayProductImport-v2.zip at https://bitbucket.org/garrettbromley/pulseway-product-import/downloads/ Instructions: Download the Excel template and add your inventory into that sheet. I personally had a Microsoft Surface that I walked around with and inventoried everything. To change the categories/sub categories, open the "Back End" tab on the sheet and edit those tables to your liking The only column that isn't required is the UPC Code. Run the Import Tool Input your PSA credentials Type in the full directory to the excel sheet (make sure its closed before running it) Confirm the number of detected items Watch the tool work Make a stock adjustment with the levels of stock for each item (this unfortunately cannot be automated) It will notify you how many items have successfully been imported and which ones failed (if any) and why. Please let me know if you have any questions! I will post changelogs if any updates are made.
  15. Does anyone have or know how to create a script to disable Password Protected Sharing in Windows 10. This has become a real issue for me as every time Microsoft has an update the default is "Turn on password protected sharing" which forces me to do a lot of tweaks. Thanks in advance, Pete
  16. A bit of introduction: I'm a happy user of Pulseway Manager. I use Pulseway Manager Enterprise (but for this topic it doesn't really matter). I manage quite large deployment with 250 Pulseway monitored machines. Someone else installed (via GPO) and did some basic setup. After running basic setup for a while, someone else changed some settings and tweaked it a bit. Finally ... again someone said lets change things around... This got me to this point... I have to change: CPU For all servers CPU > 90% for 30minutes > CRITICAL RAM RAM on 1 HOST – 5% for 30 min > CRITICAL Disable Low RAM on VM's Disable Low RAM in Azure Enable storage for any drives the servers have 20GB free > ELEVATED 10GB free > CRITICAL While I could just assign some poor guy to go thru 60+ servers and change things, make sure those are correct I decided it's time to introduce PowerShell for those Active Directory admins out there... while I know there is Pulseway GPO but it's kind of limited, and doesn't give much flexibility (for example drive monitoring). It also overwrites settings set locally without Pulseway actually showing them on Client. After playing a bit... I managed to write: Clear-Host Import-Module PSPulsewayManager -Force ### Tests - Account Page ### Get-PulsewayMaintenanceMode Set-PulsewayMaintenanceMode -Toggle $false -Verbose Get-PulsewayGroupName Set-PulsewayGroupName -GroupName 'EVOTEC' -Verbose Get-PulsewayComputerName Set-PulsewayComputerName -NewComputerName 'EVO1' -Verbose ### Set settings remotly... $Computer = 'AD1' Get-PulsewayMaintenanceMode -Computer $Computer Set-PulsewayMaintenanceMode -Computer $Computer -Toggle $false -Verbose Get-PulsewayGroupName -Computer $Computer Set-PulsewayGroupName -Computer $Computer -GroupName 'EVOTEC' -Verbose Get-PulsewayComputerName -Computer $Computer Set-PulsewayComputerName -Computer $Computer -NewComputerName 'AD1' -Verbose And another tab... Clear-Host Import-Module PSPulsewayManager -Force Import-Module PSWriteColor ### Tests - Notifications Performance Page ### Write-Color ' Get ', 'CPU usage below', ' settings' -Color Yellow, Green, Yellow Get-PulsewayCPUBelow Write-Color ' Get ', 'CPU usage above', ' settings' -Color Yellow, Green, Yellow Get-PulsewayCPUAbove Write-Color ' Get ', 'Memory', ' settings' -Color Yellow, Green, Yellow Get-PulsewayMemoryLow Write-Color ' Get ', 'Port Closed', ' settings' -Color Yellow, Green, Yellow Get-PulsewayMonitoredPortClosed Set-PulsewayCPUAbove -CPUUsagePercentage 25 -CPUUsageTimeInterval 20 -PrioritySendNotificationOnCPUUsage Elevated -SendNotificationOnCPUUsage Enabled -Verbose Set-PulsewayCPUBelow -BelowCPUUsagePercentage 2 -BelowCPUUsageTimeInterval 20 -PrioritySendNotificationOnBelowCPUUsage Elevated -SendNotificationOnBelowCPUUsage Disabled -Verbose Set-PulsewayMemoryLow -LowMemoryPercentage 10 -LowMemoryTimeInterval 15 -PrioritySendNotificationOnLowMemory Critical -SendNotificationOnLowMemory Enabled -Verbose Set-PulsewayMonitoredPortClosed -PortInterval 2 -PrioritySendNotificationOnPortNotAccessible Critical -SendNotificationOnPortNotAccessible Enabled -Verbose And another tab Clear-Host Import-Module PSPulsewayManager -Force Import-Module PSWriteColor $Computer = 'AD1' Write-Color 'Get ', 'Low Disk Space' -Color White, Yellow $Drives = Get-PulsewayLocalDiskSpace -Computer $Computer $Drives Write-Color 'List ', ' drives separatly' -Color White, Yellow -LinesAfter 1 $Drives.MonitoredDrives ## Find all drives for computer/server $FindDrives = Get-Drive -Computer $Computer $FindDrives $ListDrives = @() # Set the settings for all drives for particular computer/server (Elevated) $DrivesElevated = Set-DriveSettings -Drive $FindDrives -Percentage 10 -Priority Elevated -SizeMB 20000 -UsePercentage No # Repeat process for same drives but make it critical $DrivesCritical = Set-DriveSettings -Drive $FindDrives -Percentage 10 -Priority Critical -SizeMB 10000 -UsePercentage No $ListDrives += $DrivesElevated $ListDrives += $DrivesCritical Set-PulsewayLocalDiskSpace -Computer $Computer -Drives $ListDrives -SendNotificationOnLowHDDSpace Enabled -Verbose Since it covers my needs for now I was wondering if there is any interest in this? I don't want to spend time on it if there's no one else needing this I've published it on github https://github.com/EvotecIT/PSPulsewayManager But its also published in PowerShellGallery which allows you to install it .... Install-Module PSPulsewayManager Import-Module PSPulsewayManager Use the commands.. Keep in mind I've not spent a ton of time on it. There are bugs, some things are not checked.. but it does work ;-)
  17. We currently use TeamViewer as our remote support software and like to have Pulseway as a backup to that, but one thing that we like to do is record our sessions for both accountability and to have the ability to reference something we have done in the past to resolve an issue or to double check one's work. If Pulseway is to compete with this, I would like to see the ability to record these sessions.
  18. Not sure how many people use 3CX for their phone systems, but our company utilizes the system and have recently adopted Pulseway as well. As a result, I have developed a plugin for 3CX Windows Client that opens a ticket as you pick up the phone from an incoming call. I have included the source code for reference if anyone else has a need for it. Instructions: Create a new project. Select C# Language and create a new “Windows Class Library” project. Ensure that the project targets .NET Framework 4.5.1 Add a reference to the library “MyPhoneCRMIntegration.dll” installed with 3CXPhone for Windows (usually C:\ProgramData\3CXPhone for Windows\PhoneApp). Rename Class1.cs to PulsewayTicketPlugin.cs and replace the code with the following: using System; using System.IO; namespace _PulsewayTicketPlugin { [MyPhonePlugins.CRMPluginLoader] public class PulsewayTicketPlugin { // Initialization of Variables private static PulsewayTicketPlugin instance = null; // Holds the instance private MyPhonePlugins.IMyPhoneCallHandler callHandler = null; // Holds the handler private static MyPhonePlugins.CallState lastStatus = MyPhonePlugins.CallState.Undefined; // Holds the last relevant phone status // Called upon loading 3CX Client [MyPhonePlugins.CRMPluginInitializer] public static void Loader(MyPhonePlugins.IMyPhoneCallHandler callHandler) { // Create a new instance of the plugin instance = new PulsewayTicketPlugin(callHandler); } // Constructor for plugin, to add event handler private PulsewayTicketPlugin(MyPhonePlugins.IMyPhoneCallHandler callHandler) { this.callHandler = callHandler; // As the status of the call changes, process the changes callHandler.OnCallStatusChanged += new MyPhonePlugins.CallInfoHandler(callHandler_OnCallStatusChanged); } // Processes the status of the call private void callHandler_OnCallStatusChanged(object sender, MyPhonePlugins.CallStatus callInfo) { // Process the current state // - If it is ringing, a call is incoming, so we want to monitor it // - If it has ended, no longer need to monitor it (happens when we end it or someone else picks it up) // - Don't process other cases, not necessary switch (callInfo.State) { case MyPhonePlugins.CallState.Ended: { lastStatus = MyPhonePlugins.CallState.Undefined; break; }; case MyPhonePlugins.CallState.Ringing: { lastStatus = MyPhonePlugins.CallState.Ringing; break; }; default: { break; }; } // If the phone was ringing and we picked it up, open a new ticket if (lastStatus == MyPhonePlugins.CallState.Ringing && callInfo.State == MyPhonePlugins.CallState.Connected) { // Windows will automatically use the default application used to open URL's System.Diagnostics.Process.Start("https://psa.pulseway.com/MSP/TicketEdit.aspx"); } } } } Build the DLL and place it into the 3CX Phone Directory (C:\ProgramData\3CXPhone for Windows\PhoneApp). Edit the 3CX Phone Configuration file (C:\ProgramData\3CXPhone for Windows\PhoneApp\3CXWin8Phone.user.config) and add the following: <add key="CRMPlugin" value="CallNotifier,3CXPhoneTapiPlugin,PulsewayTicketPlugin"/> Reload your 3CX Windows Client and it should work with the next incoming call!
  19. I have several non-critical virtual servers that do not start automatically with our Hyper-V cluster that I want to start manually once I know all critical servers are back on line after a cluster reboot, but these do not show up in the list of VMs for each host on either the Android or PC app. I only see the 'running' VMs. Am I missing something in config of Pulseway Manager (v5.4.7) other than just enabling 'Monitor and Manage Hyper-V'? According to this page https://www.pulseway.com/hyperv I should see all VMs configured on a host, and be able to do lots of other things.
  20. Hi Just running a ping -t command via terminal on a remote device using Pulseway. Normally to halt it I would do Cntl+C to stop it, locally. Can't see how to do this using the Pulseway app. Sorry - have just found the close session command which terminates the Terminal session. Problem solved!
  21. Hello, since some days my hard disk drives don't spin down anymore while not in use. I tracked the problem down with process monitor and found out that the PCMonitor Service is accessing the drives every minute through the WMI Provider Host Service (wmiprvse.exe). I disabled in Pulseway the storage notification of local disk space on all drives but it did not help. As soon as I disable the Puleway service, the disks spin down after the configured laps of time as they should do. I'am using Pulseway since some years, but the problem occured recently and was not there before. Thanks for your help. Michael
  22. JDE

    GPU Monitoring

    This is a very nice App for my phone. Thank you for creating it. Is there a way to monitor GPUs temperature similar to the CPU?
  23. I am new at Pulseway and while I love the functionality that I have on my mobile phone the remote and webapp is limited of what I considered basics. So I will talk about what I miss from a Remote Desktop just coming from Solarwinds and Atera 1. File Transfer - sometimes we need to transfer files from our computers to the client computers, this has to be a plus feature. Specially that I am installing your product on my customers is more than annoying having to login to my OneDrive to download the files I need when I can just transfer them from my computer directly to the customer station. 2. Chatting - Customers are used to chat with me over the remote session and while I know Pulseway have the Chat icon, this icon is hidden plus this chat opens a ticket which I don't need, sometimes all I need is to let them know that I am connected and I am working on their system. Chat is a tool that the basic free remote support program have, I don't understand why this is not implemented yet. 3. Copy and Paste - I just found this tiday and prompted me to open this topic, I cannot copy and paste from the remote workstation to mine or viseversa. This is very useful on copying configurations or settings. 3. Correction, it seems I can Copy and Paste from my computer to the remote but not from the remote to my computer.
  24. Small Correction: The scheduled task can be run on demand, but by default it restarts the pulseway service once a day at 11am, which in theory, should force it to check for updates. So one of the problems I ran into with pulseway is, sometimes I would want to restart the service. Doesn't really matter why, could be to get it to check for new updates to the pulseway agent and get them on the latest version. The problem was that if I just setup a script to restart the service, say like this ReStart-Service "Pulseway" what would happen is that it would send the command in whatever user environment pulseway runs in, it would execute it, the service would stop, and thennnn.......... nothing! Because we stopped the service, it kills whatever user environment pulseway was using including the script and it never finishes the command. It's really weird. So I setup this wonderful little script that creates a scheduled task, that can be run on demand using another script. It keeps you from running a restart service task on all your end points and suddenly losing connection with them all.... not fun. So here is the first script you put in to pulseway. Read the comments and change the working directory, user account and password to match what you use. It also requires a universal user account on all your workstations that you want to use it on. # this script will create a scheduled task that runs a powershell script that restarts the pulseway service. # This line deletes the task if it already exists. That way if you make changes to the task it will create a fresh copy of it. schtasks /delete /F /tn "Restart Pulseway" # working directory path $workd = "c:\temp" # Check to see if working directory exists and create if it does not. If (!(Test-Path -Path $workd -PathType Container)) { New-Item -Path $workd -ItemType directory } # Create a variable with the entire contents of the XML file used to create the scheduled task $text = '<?xml version="1.0" encoding="UTF-16"?> <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2017-04-24T12:50:26.5825569</Date> <Author>ECHO-FAMILYPC\Echo</Author> <Description>this will restart the pulseway service, forcing it to check for and implement any updates.</Description> <URI>\Restart Pulseway</URI> </RegistrationInfo> <Triggers> <CalendarTrigger> <StartBoundary>2017-04-24T11:00:00</StartBoundary> <Enabled>true</Enabled> <ScheduleByDay> <DaysInterval>1</DaysInterval> </ScheduleByDay> </CalendarTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>S-1-5-21-3275926025-1642913270-681481828-1006</UserId> <LogonType>Password</LogonType> <RunLevel>HighestAvailable</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>true</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <WakeToRun>true</WakeToRun> <ExecutionTimeLimit>PT72H</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>Powershell.exe</Command> <Arguments>-ExecutionPolicy Bypass '+$workd+'\rstrtPulse.ps1</Arguments> </Exec> </Actions> </Task> ' # Create a variable containing the entire contents of the powershell script that will restart the pulseway service. $text2 = 'ReStart-Service "Pulseway"' # Pump the contents of the two variables into the actuall files to be used $text | Set-Content $workd\rstrtPulse.xml $text2 | Set-Content $workd\rstrtPulse.ps1 # Command that actually creates the scheduled task. You will need to change UserName and Password to the universal admin creds that you may use. schtasks.exe /create /xml "$workd\rstrtPulse.xml" /tn "Restart Pulseway" /ru UserName /rp Password #Wait a couple seconds Start-Sleep -s 2 # Delete the files when done. Dont need anyone knowing my secrets! del $workd\rstrtPulse.xml del $workd\rstrtPulse.ps1 Here is the second script that you will use to execute the scheduled task schtasks /run /tn 'Restart Pulseway' Have fun, stay safe, always test your scripts!
  25. This script will download the small online installer, generate the silent install cfg file and run the installer. The timer near the end is set for 3 minutes as it has to download the full installer first and Java takes a while to install anyway. If you want to get the latest version just go to https://java.com/en/download/win10.jsp and copy the link from the button that says "Agree and start free download". Then past this link into the $source variable. I find that this installer works on both windows 7 and windows 10. # Download and silent install Java Runtime Environement # working directory path $workd = "c:\temp" # Check if work directory exists if not create it If (!(Test-Path -Path $workd -PathType Container)) { New-Item -Path $workd -ItemType directory } #create config file for silent install $text = ' INSTALL_SILENT=Enable AUTO_UPDATE=Enable SPONSORS=Disable REMOVEOUTOFDATEJRES=1 ' $text | Set-Content "$workd\jreinstall.cfg" #download executable, this is the small online installer $source = "http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230511_2f38c3b165be4555a1fa6e98c45e0808" $destination = "$workd\jreInstall.exe" $client = New-Object System.Net.WebClient $client.DownloadFile($source, $destination) #install silently Start-Process -FilePath "$workd\jreInstall.exe" -ArgumentList INSTALLCFG="$workd\jreinstall.cfg" # Wait 120 Seconds for the installation to finish Start-Sleep -s 180 # Remove the installer rm -Force $workd\jre*
×
×
  • Create New...