Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?

Which is better approach to manage sharepoint online - PowerShell Script with CSOM or Console Application with CSOM?
change in sharepoint scripts not require compilation but anything else?

Yes, PowerShell is great, since you can quick change your code without compilation.
SP admin can write ps scripts without specific tools like Visual Studio.
With powershell you can use cmdlets,
which could remove a lot of code, for example restarting a service.
[custom.development]

Similar Messages

  • Sharepoint online powershell. Change property of webpart

    In addition to my previous question:
    http://social.msdn.microsoft.com/Forums/office/en-US/fadcd297-32af-41bb-8132-60e987eccb3a/sharepoint-online-powershell-and-csom-change-listview-and-put-it-on-a-page?forum=sharepointdevelopment
    In SharePoint online I want to change the property of a webpart. In this case I have a list of which I have changed the view (using powershell) but on the page (default.aspx) the view is not changed. So I guess if I change the view property of the webpart,
    my problem will be solved. I tried to use the "GetLimitedWebPartManager
    " but I do not get that running on Office365 as it is not part of the Microsoft.sharepoint.client.clientcontext, which I use to connect to the Office365 teamsite.
    Are there any suggestions?
    Thanks, Mike

    Hi,
    According to your post, my understanding is that you want to webpart view proproty in SharePoint Online.
    As your environment is SharePoint Online, I suggest you can achieve it using Client Object Model. In Client Object Model, there is such API called LimitedWebPartManager.
    More information about LimitedWebPartManager Class:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.webparts.limitedwebpartmanager(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/ee539301(v=office.14).aspx
    http://www.enjoysharepoint.com/Articles/Details/change-webpart-title-using-sharepoint-client-object-model-258.aspx
    Best regards,
    Zhengyu Guo
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber
    Support, contact [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Which is better mac book pro or Mac book pro with retina display?

    which is better mac book pro or Mac book pro with retina display?

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    If or when upgraded to the max, the Retina is a good value.
    But talk to other users on the notebook forum.

  • Which is better  option SAP XI vs webservices to interact with Biztalk

    HI everyone,
    We have biztalk as integration tool. I would like to know is it feasible to implement Biztalk with SAP XI to communicate with our SAP ECC server. I heard it will be over weight to use both Biztalk and SAP XI coz each will have its own message box and leads to more process time. So we are planning to use Biztalk with SAP webservices. So please let me know which is better as cost wise and work wise biztalk with SAP XI or Biztalk with SAP Web services.
    SAP Guys please take some time to provide some useful information. it will be much appreciated.
    cheers
    ram

    SAP XI and BizTalk both offer a tight integration of Web Services into the engine and development tools. Using the SAP XI SOAP Adapter enables the consumption and publication of Web Services based on the SOAP 1.1 protocol according to the WS-Basic Profile 1.0.
    The BizTalk SOAP Adapter also offers Web Services support based on SOAP 1.1
    support and Basic Profile 1.0 capabilities.
    Anyway XI and Biztalk can interoperate, you should evaluate the scenario you are going to implement.
    Based on transactionality, trhroughtput, communication etc, the following scenarios are in focus:
    Synchronous and non-transactional communication
    Synchronous and transactional communication
    Asynchronous and non-transactional communication
    Asynchronous and transactional communication
    This leads to eight scenarios overall, as both hubs may act as the initiating starting point of the communication. The choice of communication types for a certain integration process depends on business needs, technical needs and performance considerations.
    if it may be useful rewards point are appreciated

  • XDD Vs Offset file usage -Which is better approach

    Hi,
    We are designing a new workspace (on Documaker 11.5) for a client sending a flat file input. To reduce the impact of offset driven changes we are planning to use either of the below:
    1) XDD
    2) OFFSET.DAT file for which we can update AFGJOB.JDT with folowing rules.
    ;LoadEXTOFFS;1;OFFSET.DAT;
    ;CUSAltSearchRec;1;;
    Based on the copybook/layout of the incoming file we should be able to build a XDD or OFFSET.DAT file.
    The reason I am asking this question is we already have some experience with offset file approach, and we wanted to explore if XDD is a better approach from maintanance perspective.
    Regards..

    The XDD extract mapping method is standard support.
    The OFFSET.DAT file you mention was a pseudo-custom implementation originally submitted by CSC/PMSC for their customers. It was added to the product as a curtesy and not really promoted as a mainstream feature (if that is a good term). As such, that feature is not specifically targeted by QA testing or included in internal regression results. I'm not even sure it is documented. I doubt you would be able to get much help (or quickly) via Support if you had questions.
    Therefore, the official recommendation would be to use the XDD, but if you have experience with the OFFSET.DAT method and are comfortable with the functionality, then the feature should still be available.

  • Which is better for User Managed Hot backup - running in cron or oracle scheduler

    We are taking hot backup in our environment by using sql script of just begin backup, host copy and end backup
    Can we use this script to be put in cron for weekly two times or to use oracle scheduler .
    Which is better option and why?

    The answer to your question depens on your condition. Do you have more experienced Unix admin or DBA?
    From my point of view cron is better becuase all you need is SQL*Plus utility and shell script:
    export ORACLE_SID=...
    sqlplus <username>/<password> as sysdba <<EOF
    ALTER TABLESPACE .. BEGIN BACKUP;
    host copy ..
    ALTER TABLESPACE .. END BACKUP;
    EXIT
    EOF

  • Question about renaming sync'd SharePoint Online document library with OneDrive Pro

    If I have a site called http://mycompany.sharepoint.com/sites/Department/Documents created as a document library subsite, the OneDrive Pro share will show it under "OneDrive @ My Company" as "Documents - Documents".
    What would I need to change in order for the OneDrive sync'd view to show as "SubsiteName Documents - Documents"? 
    Can I do this by just changing the title of the subsite's header (i.e. changing 'Documents' to 'Department Documents', or does the whole subsite path name need to be changed (i.e. /sites/Department/DepartmentDocuments/)?

    You can invite people to your SharePoint site using External Accounts (Microsoft Accounts or other tenant Office 365 accounts) which there is no charge for.
    Office 2010 will not currently impact your ability to use O356.
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/manage-external-sharing-for-your-sharepoint-online-environment-HA102849864.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Handle image documents in Sharepoint Online as images with preview of the image

    Hi
    When I'm uploading an image(jpg,png,...) into an document library in Sharepoint Online(Office 365) and then search after this image, the search result shows only the file name and a link like .../Forms/DispForm.aspx?ID=1
    I have no preview of the image(also not in hover-view).
    When I go into the document library, I can see the image preview in the hover-view.
    What can I do to show the image preview also in search result?
    The template on this item is the default-item and not image-template. Postings like http://stevemannspath.blogspot.ch/2013/02/sharepoint-2013-image-preview-in-search.html couln't help, perhaps I'm using SPO?
    Image Library is not a solution, Users have to use word, excel and images in the same directory/library.
    best regards
    Christoph

    Hi Christoph,
    From the article you mentioned, it needs add JPG file type to Search Service Application, which was not supported for SharePoint online.
    I tried to add Picture content type to normal document library and tested the issue, it still displayed as item in Search results.
    However, if I created a Picture Library and add Document content type to it, both image and document can be previewed in search result.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Which is better, many PXI cards or fewer PXI cards with more SCXI cards?

    I have a pretty basic question.  Which is "better", using multiple PXI cards for analog inputs or a single PXI card and multiple SCXI cards?  For example, if I have say 100 channels to sample (all at the same rate), I could use 2 6225s at 80 ch each.  Or I could use 1 6220 and 4 SCXI 1100s (32 ch each).  What are the pros and cons with either approach?  Keep in mind sample rate probably isn't an issue (less than 1 kHz) but it is the same for all channels.
    Thanks.

    The pros/cons will depend on your application now and in the future.  I recommend contacting your local NI sales representative.  Synchronizing across a PXI system is easy to do via the backplane.  There are PXI/SCXI combo chassis available, you could use PXI multifunction DAQ cards and then SCC for signal conditioning for thermocouples for additional functionality later.  There are many possibilities that may be best discussed with your sales representative.
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • Consuming REST Services from Sharepoint Online (office 365) with jquery

    I hosted Rest services in one server but i am consuming the REST Service through jquery which is using from  sharepoint online.
    while consuming i am getting the error like "Blocked cross domain ........ "
    another exception like since we are calling from https(sharepoint online) to http(other server) , so the problem will be like..
    any body having any idea to solve the cross domain issue to access the http from https call.
    advance thanks !

    Hi,
    For the cross domain issue when using REST API, I suggest you take a look at the articles below with more information and code samples provided:
    http://blogs.msdn.com/b/officeapps/archive/2012/11/29/solving-cross-domain-problems-in-apps-for-sharepoint.aspx
    http://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they
    help and unmark them if they provide no help. If you have feedback for TechNet
    Subscriber Support, contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Remove/hide "new item or edit this list" link of sharepoint online (office 365) with csom

    as title, I delevelop an app for sharepoint online, so I must use client api to operate sharepoint object. now, i need to remove/hide the link “new item or edit this list”, not use js do it, what can i do? help!!

    Hi,
    Per my understanding, you might want to remove the link “new item or edit this list” of a list view web part using Client Object Model.
    As there is no such property in
    WebPart object can be used to hide/remove the link, I suggest you apply custom CSS style to the page which contains the list view
    web part to hide it.
    Best regards
    Patrick Liang
    TechNet Community Support

  • SharePoint 2010 Powershell scripting for user profile

    Please help to have a powershell script which will provide the details related to user profile service application like:
    Number of user profiles:
    Number of user properties
    Number of Organization properties
    Number of Organization profiles
    Number of Audiences
    Un compiled Audiences
    Audience Compilation status
    Last compilation time
    Synchronization schedule
    Santosh sethi

    Hi,
    If you're looking for prewritten scripts, you can check these two places:
    http://gallery.technet.microsoft.com/scriptcenter
    http://get-spscripts.com/
    You should read this too:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • Proxy or File which is better approach

    Hi
    I am using PI 7.1. I need to pass some informations (approx. 40K records per day) from SAP CRM database to a third party application. The target communication will be file. What is the best approach for source communication? Is proxy the better option or should I write an extraction programme in SAP CRM, generate one file, and then do the transformations required in PI?
    Regards,
    Nirupam

    HI,
    First of all as this is adapter less communication, I think it is better to use in as many senario as possible. Why only for big messages. There is no limit on number of Proxy senario count ;).
    Secondly, You need ABAPer for custom ABAP program to extarct and create file. So in either case you need both ABAP and PI skill.
    Monitoring will be using same tools no extra tool is needed for proxy.
    And If you use Proxy, in future even if you message size increses you dont have to bother.
    If any change is there in the interface then also you need both ABAPer and PI Skill to make the changes.
    Hence I feel, whenever possible, it is better to use Proxy.
    Shweta.

  • TextConverter.importToFlow() Vs TextFlowUtil.importFromString() which is better approach ?

    Hi,
      I am new to spark library. When i tried to use TextFlowUtil class for handling html text, i found it has some issues with handling some html tags like <b>.
    Can any one suggest while using html text with spark components, is it  good approach to use  TextConverter.importToFlow() instead TextFlowUtil.importFromString()?
    Thanks in advance,,,,

    The XDD extract mapping method is standard support.
    The OFFSET.DAT file you mention was a pseudo-custom implementation originally submitted by CSC/PMSC for their customers. It was added to the product as a curtesy and not really promoted as a mainstream feature (if that is a good term). As such, that feature is not specifically targeted by QA testing or included in internal regression results. I'm not even sure it is documented. I doubt you would be able to get much help (or quickly) via Support if you had questions.
    Therefore, the official recommendation would be to use the XDD, but if you have experience with the OFFSET.DAT method and are comfortable with the functionality, then the feature should still be available.

  • Sharepoint Online - Send email with attachment

    Hi All,
    is there some way how to send email with attachment, which is attached to list item in host web?
    I tried some of solutions but none of them not working.
    Server side:
    For example event receiver after added list item with attachment - Because it is office 365, in SandBox solution I can´t use SmtpClient class.
    Any other ideas?
    Client side:
    For example client web part with REST call. It works fine until I don´t need access to attachment.
    string oDataUrlAttach = "/_api/Web/lists/getbytitle('ListName')/Items(6)/AttachmentFiles('Document.docx')/$value";
                HttpWebRequest itemRequestAttach = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrlAttach);
                itemRequest.Method = "GET";
                itemRequest.Accept = "application/atom+xml";
                itemRequest.ContentType = "application/atom+xml;type=entry";
                itemRequest.Headers.Add("Authorization", "Bearer " + accessToken);
                HttpWebResponse itemResponseAttach = (HttpWebResponse)itemRequestAttach.GetResponse();
    Here I get error: The remote server returned an error: (403) Forbidden.
    But other calls are OK. I can get all items from my list except attachments.
    Any ideas?
    Thank you.

    Why hasn't this been answered?
    Sam Ogle

Maybe you are looking for

  • Time machine mail

    I would like to use time machine or back up ONLY my mail.  Is that possible? Thanks.  Mike.

  • Change Resources in a Process order operation

    Hello Is there any way to change a resource in a process order operation?, I have 5 machines, but sometimes I use the machine1 and machine2 to produce the material A, but if i dont have capacity to produce or if one machine is not working, I could us

  • Return 1 record oracle 10g windows 64

    I install oracle 10g to windows server 2003 64 bit. When i run asp app, connect to oracle 10g. It returned only 1 record? What is the problem? What can I do anything? Please help me!!! How can i download this bug?

  • Connector for custom built application

    Hi all, Can SAP IDM support custom application? The  application uses Oracle tables to store IDs, Roles, Passwords etc. I am new to SAP IDM. But I do have some experiences with Oracle IDM and IBM Tivoli IDM. Thanks in advance, dongsu.

  • Photoshop Install log

    Hi, Is it possible to redirect the Photoshop Elements 8 install log from the Temp folder to a different location (inside Program Files in our case) Cheers Nigel