Jump to content
Pulseway 9.14 🔥

PowerShell

Share your PowerShell scripts

  1. Started by dbeckwitt,

    Is there a way to force use of Powershell 7.2 when running powershell scripts in Pulseway?

    • 0 replies
    • 1.4k views
  2. Started by David-,

    Would like to execute powershell and batch scripts as admin. Is this possible? For example, I would like to run sfc. Is my only option scheduling tasks?

    • 4 replies
    • 6.8k views
  3. Hi, My requirement is to monitor hardware components in a server using the REST API and Powershell. Currently I'm working at Fujitsu servers and I'm able to get the necessary monitoring information to Powershell objects from Fujitsu iRMC (Baseboard Management Controller) using the REST API. However, proceeding from here is the issue. I want to know how to feed the queried information to Pulseway and generate notifications based on the thresholds that will be defined. Based on the research I've done it seems like I need to create a plugin and add it to the Pulseway Manager. (Not 100% sure about this) Could you please help on how to get this done? …

    • 0 replies
    • 2.9k views
  4. Hi, I work for a small IT business that is attempting to set up Network Glue (Basically a network information collector) which uses SNMP to collect information. I'm looking for a script that can install the SNMP service, and then adjust the settings to change startup to automatic, set the service to allow sending all possible information, (example shown in screenshot), set the community name to public, allow that community READ ONLY rights, and only accept SNMP packets from the Hostname "Twiz-PC". I've seen some stuff online but we are not fluent enough in Powershell to risk editing registry stuff ourselves, and having this automation will greatly help us in deploying to …

    • 1 reply
    • 3.7k views
  5. I have created this small script to enable monitoring of the active network adapter on a given machine. Hope this can be of some help for others in the forum. $activeadapter = Get-NetAdapter | Where-Object {$_.status -EQ "UP" -and $_.HardwareInterface -and $_.Name -notlike "*npcap*"} | select DeviceID $DeviceID = $activeadapter.DeviceID Set-ItemProperty "HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\NetworkInterfaces\" -Name count -Value 1 Set-ItemProperty "HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\NetworkInterfaces\" -Name service0 -Value "$DeviceID"

  6. 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 t…

    • 9 replies
    • 11.8k views
  7. Started by AMC,

    Hi Folks, I'm new to Pulsewau scripting, please bear with me. I've tried to run the following PowerShell command, but it doesnt seem to run. Rename-Computer -NewName "Computer123" -DomainCredential MyDomain\Administrator -Restart Any advice on what I should do, to rename a computer?

  8. Started by beli3ver,

    Hello, Good morning, I have a Powershell script which should install a certain software at our customer. During the installation a key is needed. I would like to enter this key every time I run the script, is this possible? Background is that we have different keys for each customer, so I do not have to create 10 versions of the script with different keys.

    • 1 reply
    • 2.5k views
  9. It's fairly simple to create a Windows user account with Powershell. Are there any reasons why this cannot be done with Pulseway via Powershell scripting?

  10. I feel like I am missing something simple here. I cannot get any PS scripts or commands to execute on client machines from the Pulseway Dashboard. I began by making some simple cache clearing scripts I need to run daily/weekly, and quickly realized those as well as many scripts from my predecessor in the Dashboard were simply not working (folders marked for deletion were still present). In testing, I am now trying to run something as simple as "Restart-Computer" and when ran from the Dashboard (Systems > SystemName > Scripts) it shows as if it ran successfully, but the machine does not reboot. Of course running this command in a non elevated PS prompt directly on th…

  11. Started by Chris Hoerske,

    My current RMM (the one I'm trying to migrate from) allows me to install both .exe and .MSI's without a UAC prompt. It seems to run in the background. Even with UAC turned on, however, with Pulseway I'm unable to run scripts (with either system or local admin account) without turning off UAC completely. What am I missing?

  12. I'm trying to start an application that will start via PS script. I create pulseway script using Windows Powershell to run this command but I can't get the application to start. $env:Path += "C:\Program Files (x86)\NetDocuments\ndOffice\ndOffice.exe" & "C:\Program Files (x86)\NetDocuments\ndOffice\ndOffice.exe" However if I go to the remote computer, open Windows Powershell and run these commands the application opens as desired. All my other scripts I have work on this computer, so I'm executing it correctly. Please advise. Greg

  13. Is there a way to prompt when a script is ran for input? Like say I make a script that changes the name of the computer, is it possible to make pulseway prompt for what you want the new system name to be? If I could figure this out it would be huge.

    • 2 replies
    • 2.4k views
  14. Started by eDecisions,

    I want to start a project, ADD-Printer via power shell, anyone want to help? Or you doing it alrady?

  15. Need help in how to Force close Outlook and reopen and syn

  16. Update 3rd Party applications eg, adobe, quickbooks, zoom, etc

  17. Started by Josh-405,

    After noticing the addition of Custom Fields to the Scripts section, I was testing it out and wanted to store a value in a Custom Field for each system. I have setup a powershell script that should save a variable value to the Custom Field and ran it against my computer. The script ran successfully, but I am not able to find the Custom Field to see if value was saved properly. Where can the Custom Field be found?

  18. Started by eDecisions,

    Great for onboarding new station, you can grab any other short cuts such as to shared rive, or network folders, the users C drive or the my documents folder as well, I just did the office apps. #By eDcisions $Officepath = (New-Object -ComObject WScript.Shell).RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Winword.exe\Path") $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Excel.lnk") $Shortcut.TargetPath = "$Officepath\Excel.exe" $Shortcut.Save() $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\Outlook…

    • 3 replies
    • 3.8k views
  19. This post assumes you are already managing bitlocker in some capacity (feel free to read through my guide on how I am managing bitlocker with Pulseway custom fields here.). The use cases for this script are a bit niche. This script will remove the tpm as a valid key protector for the c:\ drive of a workstation. Two common use cases for when you may wish to do this: 1. In the event a laptop is stolen. - We have it setup where we can add stolen devices to a scope.. Devices that come online in this scope will kick off a workflow which includes the blow script. While in theory you shouldn't need to do this if the attacker doesn't know the password to the devic…

    • 0 replies
    • 5.8k views
  20. Started by Mark G38,

    It was requested I post this so hopefully someone else in the community can benefit. Until we are able to deploy Bitdefender from within Pulseway, this is the next best thing. I wrote this again, for my clientele who generally are PS 3.0 + so some small adjustments may be needed if you are attempting to run this on PS 2.0. This will download and silently install Bitdefender. All you need to edit is the $BitdefenderURL and possibly the $BaseURL depending. When you log into GravityZone and make a package and go to get install links, the base URL in your portal will always be the same followed by the remaining part of the URL which can change based on the package. …

    • 0 replies
    • 9.3k views
  21. Not really sure if anything like this has been posted before. I've seen a couple posts about removing services or stopping the monitoring of Automatic services. What I couldn't seem to find in Pulseway was an easy way to take say an inventory of services on machine, and easily convert specific ones to being monitored. Ideally having the agent inventory all services on the machines and then giving us a way to select which ones we want to monitor through the web portal would be ideal. Currently we have to log into the actual computer and do it from within the Pulseway Manager desktop app. Not ideal when you need to monitor specific services across a larger group. …

  22. Started by eDecisions,

    Upgrade widnows 7 - 8 to windows 10 or run on windows 10 to reload in place windows 10 over itself and keep files and settings. all silent, click and go, system will reboot in about 1 hour without warning so best to run at night, found this on another site, have used several times, its about the same as running it manualy as far as success rate, it won't fix a machine that just won't update, but for the ones that will its a single click and your done # Upgrade to Windows 10 # # Created by CN @ CCT 19th Feb 2020 # # # ##Create Directory New-Item -Path "c:\temp\" -Name "Win10Upgrade" -ItemType "directory" ##Get Variables $url…

    • 1 reply
    • 3.2k views
  23. Started by AJK,

    I'm trying to run just a simple wusa /uninstall /kb:5000802 script in a task but the task just hangs forever and never makes progress on the machines. I don't have too much experience running any type of scripting through an RMM so any help would be greatly appreciated.

  24. Started by DarienAL,

    I've been experimenting with a scheduled task to restart some machines based on scope and I've had mixed success. Some machines in the scope restart as scheduled some don't. My powershell skills are limited so right now the pulseway script that I created to do restarts just has the powershell command Restart-Computer. Should there be more?

    • 2 replies
    • 3.6k views
  25. I want to start a program after rebooting and used this script, but it's not working. When I run it local in powershell it works. Someone who can help me? pushd "\\fax-dataserver\IT\WVL\04. Software\IT_Monitor\IT_Monitor_live\" & '.\IT Monitor.exe' popd

    • 3 replies
    • 2.6k views