By Matt Wilson
I beat my head with this for a few hours tonight, so I wanted to post here in case anyone else needs it.
I am doing some custom html using css to make some kick ass email templates. I wanted to place the ticket url into the html but not show the link and control the hover link formatting. When I used [%Ticket URL%] in an existing <a href...blah blah blah> tag, it doesn't just insert the URL, it inserts its own entire href tag with the URL as the display text thus breaking the link.
When I finally woke up, I realized to do this in your own custom html, you need to build the href link manually using the psa url and adding the [%Ticket ID%] field at the end. My finished code line looks like this:
<a style="color: #8db9e3;" href="https://psa.pulseway.com/MSP/TicketEdit.aspx?ID=[%Ticket ID%]"><span style="color:#adb3b9">Click here to open in Support Portal</span></a>
Hope this helps someone.
By Dennis Cox
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:
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
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/
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.
By Przemyslaw Klys
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:
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
But its also published in PowerShellGallery which allows you to install it ....
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 ;-)