rchaganti / PSWindowsAdminCenter

PowerShell commands for managing Windows Admin Center
MIT License
17 stars 4 forks source link

Connection not removed #2

Open skest3qc opened 5 years ago

skest3qc commented 5 years ago

Hi,

i am using the newest preview version of WAC (gateway on W2016), and i use your module to dynamically add and remove servers and clients shared WAC connections.

Sometimes i see that Remove-WACConnection is not removing the connections it runs successfully. When i see this issue i am also not able to delete the connection over the browser (deletion is successfull but after refresh connection is still there)

Do you see this issue also?

Thanks

rchaganti commented 5 years ago

I am a bit behind on this. I will verify this issue with the latest build and get back on the fix.

rchaganti commented 5 years ago

I verified this with 1904.1 version of WAC and I do not see the issue. It may be related to the WAC version at that point in time. I am closing this issue but do let me know if you see it with latest version of WAC. We can always reopen this issue.

platta13 commented 5 years ago

I have this issue on 1904.1 gateway running on server 2019. I have only tested it on a shared connection for a server with a tag.

platta13 commented 5 years ago

error in event log is:

Error occured while setting soft delete to true. Message: Can not add property deleted to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object., Connection: {"id":"msft.sme.connection-type.server!hostname.domain.com!global","type":"msft.sme.connection-type.server","name":"hostname.domain.com","properties":{"caption":"Microsoft Windows Server 2016 Datacenter","version":"10.0.14393","productType":2,"networkName":"hostname.domain.com","lastUpdatedTime":1560876062890,"deleted":"true"},"groupId":"global"}

rchaganti commented 5 years ago

I see this with shared connections. I will work on a fix soon.

dfranciscus commented 4 years ago

Im running into this too. Would love to have this fixed :)

sl1010101 commented 2 years ago

Any resolution/update on this issue?

I'm having the same problem with not being able to remove shared connections. Running WAC 2110.2 on Server 2022.

Cheers

rchaganti commented 2 years ago

WAC APIs have changed and it became difficult to identify the exact API they are using.