powershell
903 TopicsIs it possible to disconnect a site from an O365 group?
I'm interested in keeping a site collection that is connected to an Office 365 group, but I want to delete the group and "disconnect" it from the site (basically the opposite of what is possible when you "groupify" a team site). Does anyone know if this is a PowerShell command?40KViews0likes13CommentsDynamic Mandatory Fields
In a SharePoint library, I have folders which are = a. Admin b. Events c. Furniture and Moves d. Janitorial and Maintenance e. Parking and Transportation f. Shipping and Receiving g. Supplies and Equipment h. Waste and Recycling I have Meta data across the library whose data type are all choices and are: a. Document Type = Contract, Financial, planning b. Building = Gym, Garage, Heating c. Asset Category = Office, Playground d. Fiscal Year = FY23, FY24, FY25, FY26, FY27 e. Vendor = Maple Leaf, Canadian Tire, Home Depot f. Status = Active, Pending, Not Active g. Retention Label = 3 years, 5 years h. Service Type = Admin, Events, Furniture and Moves, Janitorial and Maintenance, Parking and Transportation, Shipping and Receiving, Supplies and Equipment, Waste and Recycling Service Type and Retention Label are mandatory fields, with the Rule below for all the files in the various folders: IF Folder Name = Admin, then Service Type = Admin and Retention Label = 5 years; the mandatory fields should be Document Type, Status and Fiscal Year IF Folder Name = Events, then Service Type = Events and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Fiscal Year, Building and Vendor IF Folder Name = Furniture and Moves, then Service Type = Furniture and Moves and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Building IF Folder Name = Janitorial and Maintenance, then Service Type = Janitorial and Maintenance and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Fiscal Year IF Folder Name = Parking and Transportation, then Service Type = Parking and Transportation and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Fiscal Year IF Folder Name = Shipping and Receiving, then Service Type = Shipping and Receiving and Retention Label = 3 years; the mandatory fields should be Document Type, Status IF Folder Name = Supplies and Equipment, then Service Type = Supplies and Equipment and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Fiscal Year IF Folder Name = Waste and Recycling, then Service Type = Waste and Recycling and Retention Label = 3 years; the mandatory fields should be Document Type, Status and Vendor I have used Column Default Value Settings for SharePoint to display Auto-Display the Service Type and Retention Label, but I cannot seem to perform the conditional mandatory fields using Validations setting for the other requirements. Please help104Views0likes1CommentRecycle Bin and Site Content Hidden for Site Members and Site Visitors
I have a requirement that the Recycle bin and Site Contents should not be be hidden from the Site Members and Site Visitors. Please how can I achieve this because the Server Infrastructure activation is not working for me. Any workarounds? Please help116Views0likes2CommentsRecycle Bin and Site Content Hidden for Site Members and Site Visitors
I posted this before but made a mistake with my write up, so I am reposting. I have a requirement that the Recycle bin and Site Contents should be be hidden from the Site Members and Site Visitors. Please how can I achieve this because the Server Infrastructure activation is not working for me. Any workarounds? Please help40Views0likes0CommentsSharepoint versioning bug with tables
Hi, So i have discovered a bug with the versioning in my sharepoint sitepage. When i edit a random piece of text ie. the title, in a text webpart with a table inside. The table shows up as changed in the version history of the sitepage. Below is an example of the issue. Here i've changed the title from "TitleChange" to "Title" and nothing else. The tables however still show as if they were changed. The first 2 tables are created with the built in tool in the text webpart, but the bottom 2 tables were created in word and then copied over to sharepoint. And as you can see the last table does not change as its suppose to, but the 3. table does. I figure its because something happens when you merge cells. So sharepoint does some sort of formatting that changes nothing but shows as changed. It only affects the table either when its made in sharepoint (1. & 2. table) or have merged cells (3. table), but not when its copied from word and has no merged cells. I've tried taking the html out and compared the before and after using powershell, but theres no change there. So can i stop this from happening or is there perhaps some sort of work around, so the tables dont show up as changed when they're infact not?631Views1like2CommentsNews Posts created via PnP PowerShell using a Page Template don't reflect in News Webpart Properly
I've created some News Posts via PnP PowerShell based on a Page Template which has a single image and some sample text. I then update the text via PowerShell and publish the changes. Everything looks great on the News Post, but when I go into the News Web Part it doesn't show the image (just a placeholder image) and shows the original sample text from the Template and not the text I updated. If I then go into the News Post, Edit and click on Update news (with or without making any changes to the page), the News Webpart then picks up the image and text correctly. $newsTemplate = Get-PnPPage "Templates/News-Template.aspx" $pageName = $newsTemplate.Save("MyNewsPost.aspx") $clientPage = Get-PnPPage -Identity $pageName Set-PnPPageTextPart -Page $pageName -InstanceId $clientPage.Controls[1].InstanceId -Text "Text I want to display in the News Post" Set-PnPPage -Identity $clientPage.Name -Title "Title Of News Post" -PromoteAs NewsArticle -CommentsEnabled:$false -Publish Any ideas on whether this is a known bug? Or is there something that I'm not doing? What it looks like in the News Webpart after initial creation via PowerShell. Note the placeholder image and text from the Page Template. What it looks like in the News Webpart when I go into the News Post, click on Edit, then click on Update news. News Webpart now picks up the image and my text correctly.2.7KViews0likes2CommentsSharePoint Library Help Needed
I have a SharePoint Library where I would like to implement these requirements below and would appreciate your advise: Folders were created at the library level, which looks like the image below. I do not want people to be able to create any folders or upload documents or folders at the library level, but rather only when they open the folders. I have disabled folder creation and created a PowerApps form, so that users can only upload document, edit documents, view details of the documents when they open any of the folders., but I cannot seem to find the Power Apps form when I open any of the folders and try to upload a document or view a document or edit the document details. 2. I have a choice column called Fiscal Year which has options as = FY22, FY 23, FY24, FY25, FY26. By March 2026, I would like to create an automate flow which will auto create FY27 and remove FY22 from the choice, so that the choice column is always limited to only 5 years.174Views0likes3CommentsCopy-PnPFile Not Working Value cannot be null.\r\nParameter name: Null value for source item at
I'm tying to use Copy-PnPFile command to copy all files and folders from site collection A document library to another site collection B/folder but it's not working. Following is the command I'm using: Copy-PnPFile -SourceUrl "/sites/AshTest/Docs" -TargetUrl "/sites/ADM-AshTest/TestDocs/Docs" -Force Error, please let me know what can be done to make it work. Copy-PnPFile : {"odata.error":{"code":"-2147467261, System.ArgumentNullException","message":{"lang":"en-US","value":"Value cannot be null.\r\nParameter name: Null value for source item at https://tenant.sharepoint.com/sites/AshTest/Docs"}}} At line:1 char:1 + Copy-PnPFile -SourceUrl "/sites/AshTest/Docs" -TargetUrl "/sites/ADM- ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (:) [Copy-PnPFile], HttpRequestException + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Files.CopyFile3KViews0likes4CommentsHow to hide the Modify this view and Create View as per users available in groups
Hi All, I have classic view of SharePoint in list/libraries. I have group(for Managers). I just want want to show and hide the Create View/Modify View/Modify this view depends on users available in group. If user available in group(for Managers) then they can do anything like Create View/Modify View/Modify this view but if user is not a part of the group(for Managers) then they can not modify any Public views but the can create Personal view. Is there any way how I can achieve this functionality?199Views0likes1Comment