Create Rename Installed App.ps1
Updated the registry entry to rename Tactical RMM Agent to your desired name
This commit is contained in:
parent
4371f27056
commit
4cd5932543
|
@ -0,0 +1,12 @@
|
|||
$NewAgentName = $args[0]
|
||||
|
||||
$AgentName = (Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0D34D278-5FAF-4159-A4A0-4E2D2C08139D}_is1").DisplayName
|
||||
if ($AgentName -ne "$NewAgentName") {
|
||||
Set-ItemProperty -Name DisplayName -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0D34D278-5FAF-4159-A4A0-4E2D2C08139D}_is1" -Value $NewAgentName
|
||||
$AgentName = (Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0D34D278-5FAF-4159-A4A0-4E2D2C08139D}_is1").DisplayName
|
||||
if ($AgentName -ne $NewAgentName) {
|
||||
exit 1
|
||||
} else {
|
||||
exit 0
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue