Asset massive updates

Hi all,

i need to change the field "Session Port" for around 200 assets. I have been trying doing it by CSV import, but seems like it is not meant for updates.
Is there a way to modify the field in mass? Otherwise is the only solution modifying it manually assets per asset?

Thank you,

Simone

Parents
  • Hi Simone,

    You can use the safeguard-PS module to make bulk updates to Assets.

    For more information on Safeguard-PS, please refer to this link: https://github.com/OneIdentity/safeguard-ps

    Example:

    Connect-Safeguard -Appliance ip_address -Gui
    
    #Array of assets to update using the asset name or Id
    $AssetsToUpdate = "111","222"
    
    ForEach ($i in $AssetsToUpdate)
    {
    
    $asset = Get-SafeguardAsset -AssetToGet $i
    
    #You can set the new RDP session port here for example
    $asset.SessionAccessProperties.RemoteDesktopSessionPort = 3389
    $id = $asset.Id
    invoke-safeguardmethod core put "Assets/$id" -Body $asset
    }


    Thanks!

Reply
  • Hi Simone,

    You can use the safeguard-PS module to make bulk updates to Assets.

    For more information on Safeguard-PS, please refer to this link: https://github.com/OneIdentity/safeguard-ps

    Example:

    Connect-Safeguard -Appliance ip_address -Gui
    
    #Array of assets to update using the asset name or Id
    $AssetsToUpdate = "111","222"
    
    ForEach ($i in $AssetsToUpdate)
    {
    
    $asset = Get-SafeguardAsset -AssetToGet $i
    
    #You can set the new RDP session port here for example
    $asset.SessionAccessProperties.RemoteDesktopSessionPort = 3389
    $id = $asset.Id
    invoke-safeguardmethod core put "Assets/$id" -Body $asset
    }


    Thanks!

Children