User Profile
ellan1537
Iron Contributor
Joined Feb 19, 2019
User Widgets
Recent Discussions
Issue with Zero Width Space
Hello all, I've a situation where my retention label internal names somehow has 'zero width spaces' at the end of the names. As users already using these labels at this point I can't make any changes to the labels. Through PowerShell I'm trying to get the content explorer numbers and below is the command I'm using. But due to zero width space, I'm unable to get the numbers. Can you please review the below and assist me? Connect-IPPSSession $label = "abcxyz-Files" $contentcount = Export-ContentExplorerData-TagType Retention -TagName $label Write-Output ($contentcount).TotalCount600Views0likes0CommentsUpdate Sensitivity label "navigation link" on all SharePoint sites
Hello all, Currently, in my tenant there are bunch of SharePoint sites with sensitivity labels applied at site collection level. These labels will display next to site title when I open a site and it is clickable. When I click on it, it takes me to a location. Now, as the location changed, is there a way to update the hyperlink?352Views0likes0CommentsExclude items from Preservation Hold Library from appearing in search results
Our tenant is huge and majority of sites (SharePoint/OneDrive) have 'Preservation Hold Library' because of retention policies. Question: Is there a way to hide the preservation hold library files from appearing in search when used search query template? Currently I'm kind of using below search query (for OneDrive) but no use. Any feedback is greatly appreciated! (SPSiteURL:https://xxxxx-my.sharepoint.com/personal/* AND -SPSiteURL:https://xxxxx-my.sharepoint.com/personal/*/P*) FYI, SPSiteURL is a property1.3KViews0likes2CommentsDisable "everyone except external users" from people picker for SharePoint site (not Tenant)
Is there a way to disable/block displaying "everyone except external users" and "everyone" from people picker for SharePoint Online site collection (not tenant-wide) using PowerShell script? Thanks in advance!2.4KViews0likes1CommentRe: How do add external users to a sharepoint site
Saadat289 - SharePoint Administrator need to follow the below steps: 1. Go to SharePoint Admin Center <https://<targetdomain>-admin.sharepoint.com/ 2. From the left-hand navigation, click 'Active Sites' available in 'Sites' 3. Click on your site name and that will open a dialog box (to the right of the screen) and navigate to its settings. Review 'External File Sharing' and see if it is set to allow external sharing and then click 'More Sharing Settings' to check all the allowed domains. 4. If you don't see the external domain, click 'Sharing' available under 'Policies' from the left-hand navigation and look for domains under 'More external sharing settings'. Your admin can add your external domain. 5. Eventually your site should inherit the external domain that were added (step 4) and you should be share your site. 6. External user will receive an email invitation as soon as you share the site and user need to click on the link (accepting) in the email invitation for the first time to access the site. Hope this helps!7.6KViews0likes1CommentRe: Remap existing retention labels on emails
After going over this with my team and Microsoft, seems like there is no option to do this exactly that way. Although, you could use the Purview’s Content Search to get a report on Retention labels applied in Exchange. These are the M365 Retention Labels, not MRM tags.563Views0likes0CommentsRe: Replace existing retention labels on emails
After going over this with my team and Microsoft, seems like there is no option to do this exactly that way. Although, you could use the Purview’s Content Search to get a report on Retention labels applied in Exchange. These are the M365 Retention Labels, not MRM tags.917Views0likes0CommentsRe: Set Sensitivity label for files in SharePoint library programmatically
Unfortunately, didn't find any straight solution for this purpose. Created a new document library, set the default classification/sensitivity label and then copied over the content to it from the source library (used migration tool). By doing so, it tagged the documents with label.1.8KViews0likes0CommentsRe: Enabling Sensitivity Label PDF Support for SharePoint Online
Reinstalled the module. I had to do this on my machine when trying PowerShell 7. I had to run the uninstall (uninstall-module Microsoft.Online.SharePoint.PowerShell) both in PowerShell 7 and 5. Followed below steps and that it resolved the issue. -remove-module -uninstall-module Microsoft.Online.SharePoint.PowerShell -install-module Microsoft.Online.SharePoint.PowerShell Then I was able to find the attribute "-EnableSensitivityLabelforPDF" and the script successfully executed.1.5KViews0likes0CommentsEnabling Sensitivity Label PDF Support for SharePoint Online
Sharepoint Online doesn't show sensitivity labels in the column "sensitivity" in PDFs, however, for office Apps it does. Trying to run the below, but it is throwing error. Set-SPOTenant -EnableSensitivityLabelforPDF $true Error: Set-SPOTenant : A parameter cannot be found that matches parameter name 'EnableSensitivityLabelforPDF'.Solved1.5KViews0likes2CommentsSet Sensitivity label for files in SharePoint library programmatically
All files that are stored in a specific SharePoint Online document library (not the site) should be labeled with a sensitivity label (let's say, Public or Confidential). Can this be achieved using PnP PowerShell or Power Automate flows? Document library has 550,000+ files. Thanks in advance!Solved1.6KViews0likes2CommentsGet-PnPList : The remote server returned an error: (403) Forbidden
If I connect to the OneDrive site using "connect-pnponline" command and try to do the "Get-PnpList" then I get the "Get-PnPList : The remote server returned an error: (403) Forbidden" error. But if I connect to SharePoint sites, then the "Get-PnpList" command works fine. What can I do to get rid of this forbidden error? $SiteURL = "https://xxxxxx-my.sharepoint.com/personal/xxxxxx" $ListName= "Documents" $List = Get-PnPList -Identity $ListNameSolved14KViews0likes2CommentsGet-PnPList : The remote server returned an error: (403) Forbidden
If I connect to the OneDrive site using "connect-pnponline" command and try to do the "Get-PnpList" then I get the "Get-PnPList : The remote server returned an error: (403) Forbidden" error. But if I connect to SharePoint sites, then the "Get-PnpList" command works fine. What can I do to get rid of this forbidden error? $SiteURL = "https://xxxxxx-my.sharepoint.com/personal/xxxxxx" $ListName= "Documents" $List = Get-PnPList -Identity $ListNameSolved1.4KViews0likes2CommentsRe: Replace existing retention labels on emails
I'm looking for the script for Exchange Online version. Can you please review and let me know if the below script is appropriate (just for 1 mailbox)? # Connect to Exchange Online Connect-ExchangeOnline Connect-IPPSSession -UserPrincipalName "yourUPN" # Specify the user mailbox and the old/new retention labels $userMailbox = "email address removed for privacy reasons" $oldRetentionLabel = "OldRetentionLabel" $newRetentionLabel = "NewRetentionLabel" # Get all items in the user's mailbox with the old retention label $items = Search-Mailbox -Identity $userMailbox -SearchQuery "RetentionLabel:$oldRetentionLabel" -EstimateResultOnly $false if ($items.Count -gt 0) { # Apply the new retention label to each item foreach ($item in $items) { Set-RetentionCompliancePolicy -Identity $item.Identity -RetentionCompliancePolicy $newRetentionLabel Write-Host "Updated retention label for $($item.Subject) in mailbox $userMailbox." } } # Disconnect from Exchange Online Disconnect-ExchangeOnline -Confirm:$false1.1KViews0likes3Comments
Recent Blog Articles
No content to show