Skip to content

Commit

Permalink
Merge pull request #884 from MalteKiefer/feature/script-get-securepoi…
Browse files Browse the repository at this point in the history
…nt-deviceid

added script to get securepoint deviceid
  • Loading branch information
wh1te909 committed Dec 20, 2021
2 parents 983a5c2 + fe8b668 commit 8c9a386
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
11 changes: 10 additions & 1 deletion api/tacticalrmm/scripts/community_scripts.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
"filename": "Win_Teamviewer_Get_ID.ps1",
"submittedBy": "https://github.com/silversword411",
"name": "TeamViewer - Get ClientID for client",
"description": "Returns Teamviwer ClientID for client - Use with Custom Fields for later use.",
"description": "Returns Teamviewer ClientID for client - Use with Custom Fields for later use.",
"shell": "powershell",
"category": "TRMM (Win):Collectors"
},
Expand All @@ -260,6 +260,15 @@
"shell": "powershell",
"category": "TRMM (Win):Collectors"
},
{
"guid": "672403e4-f9b5-4442-8d8c-4fb376dd0a62",
"filename": "Win_Securepoint_Get_DeviceId.ps1",
"submittedBy": "https://github.com/maltekiefer",
"name": "Securepoint - Get DeviceId for client",
"description": "Returns Securepoint DeviceId for client - Use with Custom Fields for later use.",
"shell": "powershell",
"category": "TRMM (Win):Collectors"
},
{
"guid": "95a2ee6f-b89b-4551-856e-3081b041caa7",
"filename": "Win_Power_Profile_Reset_High_Performance_to_Defaults.ps1",
Expand Down
20 changes: 20 additions & 0 deletions scripts/Win_Securepoint_Get_DeviceId.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<#
.SYNOPSIS
Give back the Securepoint Device id
.REQUIREMENTS
Securepoint Antivirus Pro must be installed on the client
.INSTRUCTIONS
-
.NOTES
V1.0 Initial Release by https://github.com/maltekiefer
#>

$SecurepointDeviceId = (Get-Item -Path 'HKLM:\SOFTWARE\Ikarus\guardx\cloud').GetValue('DeviceId')

Write-Output $SecurepointDeviceId

Exit $LASTEXITCODE

0 comments on commit 8c9a386

Please sign in to comment.