tag:blogger.com,1999:blog-4126985520350746834.post6033116594980047978..comments2024-03-28T07:00:21.554+00:00Comments on Chris O'Brien: Using CSOM in PowerShell scripts with Office 365Chris O'Brienhttp://www.blogger.com/profile/10022906552670607366noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-4126985520350746834.post-194375728354077222016-10-22T18:59:35.186+01:002016-10-22T18:59:35.186+01:00Awesome guides! Really helping me level up my SPO ...Awesome guides! Really helping me level up my SPO game :)Fernando Celayahttps://www.blogger.com/profile/04560173350453452750noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-67198803980054492912015-06-24T13:26:44.308+01:002015-06-24T13:26:44.308+01:00Very interesting post, thanks for sharing!
What so...Very interesting post, thanks for sharing!<br />What software do you recommend for writing complex powershell CSOM? Is there any software which will include IntelliSense for the included DLL?Tonyphttps://www.blogger.com/profile/15334401958391014109noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-54719614098463150222015-02-06T17:37:23.376+00:002015-02-06T17:37:23.376+00:00This is great stuff! Thank you for posting. Howeve...This is great stuff! Thank you for posting. However, I'm having trouble iterating over my sites site collection. I need to set up our custom master page for all personal subsites but when i run the command it doesn't return anything. I'm Global Admin on Office 365 environment for our company. Any ideas will be greatly appreciated. Thank you in advance!Anonymoushttps://www.blogger.com/profile/13893635742959699812noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-31629551731808945272015-01-12T14:57:00.493+00:002015-01-12T14:57:00.493+00:00@freddiemaize,
Hmm, I just checked and the link w...@freddiemaize,<br /><br />Hmm, I just checked and the link works fine for me? Can you re-check please?<br /><br />Thanks!<br /><br />COB.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-53300566547989878712015-01-08T08:48:10.199+00:002015-01-08T08:48:10.199+00:00Thanks a lot for this great article.
https://gis...Thanks a lot for this great article.<br /><br /> https://gist.github.com/chrisobriensp/7779915 - This link is broken. Can you please fix the link. Thankyou!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-75873381758169860632014-12-17T15:45:41.565+00:002014-12-17T15:45:41.565+00:00@Mohit,
Yes, you can do this by using PS/CSOM to ...@Mohit,<br /><br />Yes, you can do this by using PS/CSOM to import search schema XML which creates/updates the Managed Properties, Crawled Properties, mappings etc. <br /><br />I have a code sample for this here: <a href="https://gist.github.com/chrisobriensp/7779915" rel="nofollow">https://gist.github.com/chrisobriensp/7779915</a> <br /><br />Cheers,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-21409723533920465872014-12-16T11:43:03.312+00:002014-12-16T11:43:03.312+00:00Hi Chris,
Can we create/modify Managed Properties...Hi Chris,<br /><br />Can we create/modify Managed Properties and crawled properties using this approach on SharePoint Online?MOHIT JOSHIhttps://www.blogger.com/profile/05627229962698568160noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-85465184462308521512014-04-17T14:13:58.740+01:002014-04-17T14:13:58.740+01:00@Rohit,
I had to collect the password from the co...@Rohit,<br /><br />I had to collect the password from the console to prevent that error.<br /><br />$securePassword = read-host -prompt "Password for $username" -AsSecureString<br /><br />Great post, Chris!<br />TobyTobyhttps://www.blogger.com/profile/17757771143175549248noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-725537111478046822014-04-08T07:26:27.406+01:002014-04-08T07:26:27.406+01:00I am trying to import search settings at tenant le...I am trying to import search settings at tenant level but facing issue as shown below<br /><br />Exception calling "ExecuteQuery" with "0" argument(s): "Access denied. You do not have permission to perform this action or access this resource."<br />At \PowerShell Scripts\Import.ps1:38 char:1<br />+ $clientContext.ExecuteQuery()<br />+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br /> + CategoryInfo : NotSpecified: (:) [], MethodInvocationException<br /> + FullyQualifiedErrorId : ServerUnauthorizedAccessException<br /><br />Can we import customized search settings at tenant level through PowerShell?<br /><br />Also i was able to import manually through UI at tenant levelAnonymoushttps://www.blogger.com/profile/12364671768960663793noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-3427624341823083722014-01-28T14:24:40.710+00:002014-01-28T14:24:40.710+00:00@Mark,
Well, that's definitely the name of th...@Mark,<br /><br />Well, that's definitely the name of the property on the SPList class - if it doesn't work in SPO, it could be that the property is blocked there (first example I've heard of this though).<br /><br />Other thoughts:-<br /><br />- Could it be that you have the casing (or spelling) wrong?<br />- Or could it be that you are using the JavaScript CSOM, and need something like set_MajorVersionLimit?<br /><br />Cheers,<br /><br />Chris. Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-8357077695450221162014-01-27T23:06:48.695+00:002014-01-27T23:06:48.695+00:00A massive thanks for this post. It been a massive ...A massive thanks for this post. It been a massive help to me. <br />I am trying to set the amount of major versions at the same time but it says the majorversionlimit doesn't exit for Sharepoint online. You don't happen to know what the property name on 365 is do you?<br /><br />Thanks<br />MarkMarkhttps://www.blogger.com/profile/15551117420782733301noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-56470023979186755212014-01-20T06:18:46.651+00:002014-01-20T06:18:46.651+00:00@GuyD,
Yes indeed, and thanks for pointing this o...@GuyD,<br /><br />Yes indeed, and thanks for pointing this out - I'd forgotten about this option. The Client SDK is effectively a nice "packaged" set of these DLLs with an installer. You can either get it with Visual Studio or as a standalone/redistributable installer.<br /><br />Thanks,<br /><br />Chris.Chris O'Brienhttps://www.blogger.com/profile/10022906552670607366noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-53546130077432644842014-01-19T18:08:23.074+00:002014-01-19T18:08:23.074+00:00Thanks for the great article. One question: "...Thanks for the great article. One question: "You need to obtain the SharePoint DLLs which comprise the .NET CSOM" is this the same as the Client SDK for SharePoint 2013, that is part of the installation of Visual Studio 2013 Pro?GuyDhttps://www.blogger.com/profile/13997578683840502750noreply@blogger.comtag:blogger.com,1999:blog-4126985520350746834.post-20458870130431790272014-01-10T02:29:15.256+00:002014-01-10T02:29:15.256+00:00Great stuff! Thanks so much for sharing Chris. It&...Great stuff! Thanks so much for sharing Chris. It's getting to the point that I start coming to your blog first when I have a question, rather than googling it... not sure there can be higher praise for a tech blog :-)Brucehttps://www.blogger.com/profile/05975208826204543596noreply@blogger.com