locked
Trying to get registry value in config hive of registry - want to change server values RRS feed

  • Question

  • Get-ItemProperty -path HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config  # want to change server value - leave all other values intact

    what syntax should I use ?

     CONNECT_OPTIONS                    : localhost 1 0 2
     Port_BPCD                          : 13782
     VXDBMS_NB_CONF                     : D:\Veritas\NetbackupDB\conf
     Server : {cbsnbk001, lncnbk002, lncnbk001, lncnbk003...}     These are the values I want to change

    Friday, May 11, 2018 2:43 PM

Answers

  • That could be a multistring type.

    $reg = Get-ItemProperty HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
    $reg.GetValueKind('Server')


    MultiString

    Set-ItemProperty HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config\ -Name Server -Value value1,value2 -Type MultiString




    • Marked as answer by Christopher Ellis Thursday, July 26, 2018 1:05 PM
    • Edited by JS2010 Thursday, July 26, 2018 1:08 PM
    Friday, May 11, 2018 4:06 PM

All replies

  • Set-ItemProperty -Path HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config\ -Name server -Value 'new Value'

    -KT

    Friday, May 11, 2018 3:06 PM
  • That could be a multistring type.

    $reg = Get-ItemProperty HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config
    $reg.GetValueKind('Server')


    MultiString

    Set-ItemProperty HKLM:\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config\ -Name Server -Value value1,value2 -Type MultiString




    • Marked as answer by Christopher Ellis Thursday, July 26, 2018 1:05 PM
    • Edited by JS2010 Thursday, July 26, 2018 1:08 PM
    Friday, May 11, 2018 4:06 PM