This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Invoke SDK to insert/import OrionMap file

HI hope someone can help i am in a little pickle, i am trying to import/insert a Orion map with Powerhsell i have the below:

Add-PSSnapin swissnapin

#connect to poller with username used to log on to SW

$swis = Connect-Swis -Hostname xx -UserName xx -Password xx

$path = "newname"

$imagefile = [system.IO.File]::ReadAllBytes('C:\SolarWinds\somthing.orionmap')

$owner = "xx"

$filetype = "0"

$timestamp = Get-Date

Invoke-SwisVerb $swis Orion.MapStudioFiles insertfile @($path,$imagefile,$owner,$filetype,$timestamp)

i can see something is happening checking the SWQL studio i have an entry for the new map but when i access Net Atles.. nothing emoticons_sad.png

pastedImage_3.png

thanks in advanced

Hope you dont mind me pulling you in tdanner emoticons_happy.png