tag:blogger.com,1999:blog-6553366178749746850.post1911337998784318816..comments2023-05-26T09:53:53.344-04:00Comments on Adventures in Computing: Lync Server 2013 - Bulk Updating Contact GroupsCharleshttp://www.blogger.com/profile/11417253185866706021noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-6553366178749746850.post-66995523591697982422018-08-16T17:52:36.752-04:002018-08-16T17:52:36.752-04:00This comment has been removed by the author.Júniorhttps://www.blogger.com/profile/11844587446810641370noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-61620519816057866652016-12-01T08:50:02.497-05:002016-12-01T08:50:02.497-05:00I have discovered, that if you are running into er...I have discovered, that if you are running into errors (HRESULT), etc... If you manually delete the current contacts/groups from the users list, and attempt to run this script, it works flawlessly. <br /><br />The other alternative, is to disable/re-enable the user from the SfB Management Shell. The only crappy thing about that, is that you will then need to login the user at least once, to update their list. <br /><br />I have tested, and this is working with SfB 2015. Wonderful script, my friend!Anonymoushttps://www.blogger.com/profile/11640036381798263206noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-32432522961968624572016-01-15T05:44:03.317-05:002016-01-15T05:44:03.317-05:00I have just tried this with SfB and still works a ...I have just tried this with SfB and still works a treat!... Just make sure you run it in Windows Powershell and not the SfB Powershell.Anonymoushttps://www.blogger.com/profile/17878116278657940784noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-10486090244146995642015-10-21T15:46:25.792-04:002015-10-21T15:46:25.792-04:00Anton, Sorry but I am not sure that this will wor...Anton, Sorry but I am not sure that this will work at all in Skype for Business. I have not used this code myself since late 2013. However please post back here if you figure it out as this page still sees lots of traffic.Charleshttps://www.blogger.com/profile/11417253185866706021noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-66067078419121963492015-10-21T07:08:50.603-04:002015-10-21T07:08:50.603-04:00Hi Charlie, I'm trying to use your script to i...Hi Charlie, I'm trying to use your script to import the contacts in Skype for Business, but I imported only a group of contacts. They are empty. How do I imortirovat also contact these groups?Anonymoushttps://www.blogger.com/profile/14756680298139659185noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-24048489127259433702015-08-03T16:21:20.784-04:002015-08-03T16:21:20.784-04:00Also.. some minutes later.. often the same user th...Also.. some minutes later.. often the same user that failed will then work.. very strange.. and in addition.. the update option i thought didnt erase custom groups people have made, but it does.markm75https://www.blogger.com/profile/08208015345333751947noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-55429726885724778162015-08-03T15:46:26.321-04:002015-08-03T15:46:26.321-04:00I also occassionally get an error when i try this ...I also occassionally get an error when i try this for a single user.. Update-CSUserData -Filename $updatedfilenamepath -userfilter $user_email Invalidoperation comexception HRESULT 0xc3ee7950markm75https://www.blogger.com/profile/08208015345333751947noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-65545622684227244902015-08-03T15:39:09.837-04:002015-08-03T15:39:09.837-04:00I ran the command to update all users.. but i seem...I ran the command to update all users.. but i seem to be getting an error for some on Update-CSUserData: Out of objects in the pool, the quota was reached.. any ideas why that might be?markm75https://www.blogger.com/profile/08208015345333751947noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-66881689673679973842015-06-05T20:34:02.539-04:002015-06-05T20:34:02.539-04:00Hi Charles!
When script tries to update server wi...Hi Charles!<br /><br />When script tries to update server with new Contact Group settings, following exceptions are thrown:<br />"Due to DCOM-error connection to server %Here_comes_my_server(pool)_fqdn% can't be established. Check if Front-End-Service for this pool is running"<br />Of course, the service is running and pool is functional.<br /><br />How can I bypass this error?<br />Thanks in advance<br />VictorAnonymoushttps://www.blogger.com/profile/17581106294130874710noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-34231915777611203932015-05-28T12:37:02.975-04:002015-05-28T12:37:02.975-04:00Have you found an online version solution?Have you found an online version solution?Anonymoushttps://www.blogger.com/profile/05579820685958295460noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-59706810987380655092015-04-02T19:59:44.592-04:002015-04-02T19:59:44.592-04:00I´m geeting the same error as informed by Sully. B...I´m geeting the same error as informed by Sully. But it happens only to a few users, others are running perfectly.<br /><br />Do you know what´s the problem?<br /><br />Best Regards,Anonymoushttps://www.blogger.com/profile/18120947239213440390noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-11113698530317488702015-03-26T10:19:09.085-04:002015-03-26T10:19:09.085-04:00One thing that a realized, if the user if recent c...One thing that a realized, if the user if recent created and the account was never logged on it, the script does not work.<br />The reason of that is because when you export the csdata the file does not contain the node and the script cannot replace a node that it didn´t find.<br />Unknownhttps://www.blogger.com/profile/17916446877409036809noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-70327757955050803022015-03-25T17:41:24.285-04:002015-03-25T17:41:24.285-04:00Bad link?
Bad link?<br />John Dolehttps://www.blogger.com/profile/01905522876221314918noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-16195863224428208472015-03-25T10:51:58.415-04:002015-03-25T10:51:58.415-04:00I had to adapt the script for my environment, but ...I had to adapt the script for my environment, but it worked perfectly.<br /><br />Tks for share it.Unknownhttps://www.blogger.com/profile/17916446877409036809noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-80098704202258382882015-03-18T05:43:38.583-04:002015-03-18T05:43:38.583-04:00Hi William,
I've tried your modification abov...Hi William,<br /><br />I've tried your modification above. But somehow i got following error: <br />Exception calling "ReplaceChild" with "2" argument(s): "Object reference not set to an instance of an object."<br />Any idea how to resolve this?<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/02496562300764016896noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-27240923642070698272015-02-26T19:29:50.792-05:002015-02-26T19:29:50.792-05:00exactly what i needed, thanks for sharing.exactly what i needed, thanks for sharing.Anonymoushttps://www.blogger.com/profile/01831739708209955112noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-21759851506838807442015-01-07T11:09:33.224-05:002015-01-07T11:09:33.224-05:00There is a note that this must be run on the Lync ...There is a note that this must be run on the Lync server. Has anyone tried with Lync Online as part of Office 365?Mikehttps://www.blogger.com/profile/12243540151467852803noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-19199626793516562172014-07-08T16:00:26.054-04:002014-07-08T16:00:26.054-04:00This code will update the Groups AND the Contacts ...This code will update the Groups AND the Contacts for all users....WITHOUT the use of 7zip. <br />Instead it uses the PCSX powershell module https://pscx.codeplex.com/ (which is a pre-req to use this script)<br /><br />I removed the single user option for this as I wanted to make all contact groups for the company the same but i'm sure you can rewrite to your needs.<br /><br />Download the zip from here and Read the ReadMe file.<br />http://robertsmodernlife.com/blog/technology/lync-2013-bulk-contact-updatingAnonymoushttps://www.blogger.com/profile/10772612497126868860noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-77355734007866198232014-05-30T03:25:26.961-04:002014-05-30T03:25:26.961-04:00Thank you Charles.Thank you Charles.Anonymoushttps://www.blogger.com/profile/12540072054659787326noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-51546794997753708432014-05-06T14:58:47.572-04:002014-05-06T14:58:47.572-04:00I tried this modification to allow it to work for ...I tried this modification to allow it to work for new users (never logged in), but it puts out bad XML. Does this not work if the user has logged in before?Roberthttps://www.blogger.com/profile/00685950297646579501noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-81489749771968223282014-03-04T22:11:37.862-05:002014-03-04T22:11:37.862-05:00The DocItem Elements were stripped out when I post...The DocItem Elements were stripped out when I posted resulting in a blank entry. Basically, you populate with Contacts -- everything between and with each contact on a single line followed by and a CR/LF.Anonymoushttps://www.blogger.com/profile/01877200671445642727noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-29610652138146719312014-03-04T22:09:52.243-05:002014-03-04T22:09:52.243-05:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01877200671445642727noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-54253795301269555732014-03-04T22:09:15.829-05:002014-03-04T22:09:15.829-05:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01877200671445642727noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-23184217512733409672014-03-04T22:07:51.688-05:002014-03-04T22:07:51.688-05:00I adapted the original script to work with Contact...I adapted the original script to work with Contacts instead of groups.<br /><br />$replacement = [xml] @'<br /><br /> <br /> <br /> <br /><br />'@<br /><br />#Target DocItem Node and replace with new Contacts<br />$count = $original.DocItemSet.DocItem.Count + 1<br />For ($i=0; $i -lt $count; $i++) {<br /> If (($original.DocItemSet.DocItem[$i].Data.HomedResource.ContactGroups.ContactGroup.Count -gt 0)) {<br /> <br /> Write-Host " "<br /> Write-Host "Working on XML Node: " $original.DocItemSet.DocItem[$i].Name<br /> Write-Host " "<br /> Write-Host "Contacts Before: "$original.DocItemSet.DocItem[$i].Data.HomedResource.Contacts.Contact.Buddy.Count<br /> Write-Host " "<br /><br /> $inner = $original.DocItemSet.DocItem[$i].Data.HomedResource.Contacts<br /><br /> #Import the replacement values<br /> $new = $original.ImportNode($replacement.Contacts, $true)<br /><br /> #Replace old node with new one (replacement node)<br /> $dump = $original.DocItemSet.DocItem[$i].Data.HomedResource.ReplaceChild($new, $inner)<br /><br /> Write-Host "Contacts After: "$original.DocItemSet.DocItem[1].Data.HomedResource.Contacts.Contact.Buddy.Count<br /><br /> }<br /> Else {<br /> <br /> Write-Host "Error - No Contact Elements exist in this DocItem Node"<br /> <br /> }<br />}Anonymoushttps://www.blogger.com/profile/01877200671445642727noreply@blogger.comtag:blogger.com,1999:blog-6553366178749746850.post-66842778470290154522014-01-14T23:47:59.070-05:002014-01-14T23:47:59.070-05:00Great script Charles. And also thanks to raderarn ...Great script Charles. And also thanks to raderarn for fix to add mannual groups with users. But here is the question how to delete user from list?Anonymoushttps://www.blogger.com/profile/04269390958271128843noreply@blogger.com