tcox8 / Export-ActiveDirectoryVisioMap

Exports AD OUs and GPOs to a Visio Map
11 stars 3 forks source link

I have problem with Visio Professional 2021 #2

Open KTasliel opened 1 year ago

KTasliel commented 1 year ago

Error messages are like below;

New-VisioShape : Cannot bind parameter 'Points'. Cannot convert the "1" value of type "System.Double" to type "VisioAutomation.Geometry.Point". At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:77 char:53

The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:79 char:1

The property 'Name' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:80 char:1

Get-GPO : The specified directory service attribute or value does not exist. (Exception from HRESULT: 0x8007200A) At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:93 char:16

New-VisioShape : Cannot bind parameter 'Points'. Cannot convert the "1" value of type "System.Double" to type "VisioAutomation.Geometry.Point". At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:98 char:64

The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:100 char:9

The property 'Name' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:101 char:9

Connect-VisioShape : Cannot bind argument to parameter 'From' because it is null. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:112 char:41

The property 'text' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:114 char:9

The property 'name' cannot be found on this object. Verify that the property exists and can be set. At K:\Scripts\ad\Export-ActiveDirectoryVisioMap.ps1:115 char:9

KTasliel commented 1 year ago

Error is starting at Line 77 PS C:\Users\fb008980> $n0 = New-VisioShape -Master $MasterDomain -Points 1.0,1.0 New-VisioShape : Cannot bind parameter 'Points'. Cannot convert the "1" value of type "System.Double" to type "VisioAutomation.G eometry.Point". At line:1 char:52

PS C:\Users\fb008980> #Set shape properties PS C:\Users\fb008980> $n0.Text = $DNSDomain The property 'Text' cannot be found on this object. Verify that the property exists and can be set. At line:1 char:1

PS C:\Users\fb008980> $n0.Name = "n" + $DNSDomain The property 'Name' cannot be found on this object. Verify that the property exists and can be set. At line:1 char:1

RD102134 commented 3 months ago

i also got the same. were you able to find resolution?

kyschuler commented 2 months ago

@KTasliel @RD102134 This issue is related to an update of the Visio Module, I will be publishing an update branch shortly

kyschuler commented 2 months ago

Please Check https://github.com/KSchu26/Export-ActiveDirectoryVisioMap

@KTasliel @RD102134

Edit: New Repo Link after ownership change