Skip to main content

Questions tagged [powershell]

Windows PowerShell is Microsoft's task automation framework, consisting of a command-line shell and associated scripting language built on top of, and integrated with the .NET Framework. PowerShell provides full access to COM and WMI, enabling administrators to perform administrative tasks on both local and remote Windows systems.[except from WikiPedia]

0 votes
0 answers
41 views

How to get a permissions matrix re[port of all SharePoint sites and document libraries in the tenant

I'm trying to get the below powershell script to work but getting this error : The term 'Get-PnPRoleAssignment' is not recognized as a name of a cmdlet It seems this command does not exist and if not ...
naijacoder's user avatar
  • 4,368
0 votes
1 answer
62 views

Get list of all Owners in SharePoint Tenant

My company has roughly 200 SP sites (SharePoint Online only) in its Tenant, and many have users as Owners - who shouldn't be in that group. I need to query the entire Tenant and generate a report of ...
Quilly's user avatar
  • 507
0 votes
1 answer
76 views

import export list from two different SharePoint Online sites using PnP Powershell

I'm looking for a way to import a sharepoint list of a sharepoint site and export it into another destination. I looked at this Powershell PnP commands I don't want the CopyList as i need to have the ...
naijacoder's user avatar
  • 4,368
0 votes
0 answers
31 views

error "the data area passed to a system call is too small - (When using SharePoint Designer to login into SharePoint Online)

I know this issue is not common. But has anyone tried to login in into SharePoint Online using SharePoint Designer. The site is still using the classic layout and pages. When i try 'm getting the ...
naijacoder's user avatar
  • 4,368
0 votes
0 answers
12 views

SharePoint External Links audit

0 Good afternoon! I have a task to create a PowerShell code to check all shared links from our SharePoint site, regardless of when they were created. The current limit is 180 days. Is it possible to ...
Dmytro Novitnii's user avatar
0 votes
1 answer
407 views

How i can get all the retension policies applied to a SharePoint Online site, either inside list, list content type or site content type

I am a SharePoint office 365 admin inside a tenant, and i am working on 2 communication sites. now i want to review all the retention polices applied to the sites either inside :- List or Library ...
microsoftdeveloperdesigner's user avatar
0 votes
0 answers
106 views

How do I export the Crawl log using PowerShell of a SharePoint Subscription on-prem setup?

I'm trying to export the crawler log as shown in the CrawlLogURLExplorer-section in the Search Service Application - Diagnostics - Crawl Log from our productions system for our developers to use for ...
Dennis's user avatar
  • 121
0 votes
0 answers
63 views

How do I use PnP to move large amounts of files without breaking sharing links and permissions?

I'm trying to find an archiving solution for my company that's easier than using the GUI and scrolling through large amounts of files and folders and manually using the Move To button. I have written ...
user124837's user avatar
2 votes
1 answer
375 views

How do I find out what kind of access a user has to a SharePoint Online site using PNP PowerShell?

In Powershell, after running the Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/xyz -UseWebLogin and Get-PnPUser -WithRightsAssigned commands, I can get the list of all users that have ...
Lorren112's user avatar
0 votes
0 answers
42 views

Sharepoint Online Calendar to Database - PowerShell

I need help writing a Powershell script that will insert an existing SharePoint Online calendar into the database. So far I've managed to find a few examples on the forums, but I'm unable to create a ...
user121860's user avatar
0 votes
1 answer
148 views

Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal

We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App ...
user3436773's user avatar
0 votes
0 answers
36 views

How to count how many sites, libraries and documents shared with more as 50 users?

I would like to know how many sites, libraries and documents shared with more as 50 users. I write this PowerShell script, but it is very slow because we have thousands of SharePoint sites and 80 TB ...
KEM's user avatar
  • 15
0 votes
0 answers
79 views

How to get the last viewed/accessed date of a document in powershell?

I would like to generate a csv report with inactive documents. How do I get the last viewed/accessed date of a document in powershell?
KEM's user avatar
  • 15
1 vote
0 answers
104 views

remove Everyone and Everyone Except External Users from all places in an SPO Sites

Requirement: One of our Clients is working on correcting permissions on there tenant and thus needs to remove "Everyone" and "Everyone except external users" from identified places ...
SiD's user avatar
  • 93
0 votes
1 answer
60 views

Read the site collection URLs in CSV file and replace/add the Email ID.in the "Allow access requests" settings

I want to read CSV file which consist of Site collection URLs and replace the "Allow access requests" email ID. In CSV file, I have data like below. SiteURL - ColumnName https://example.com/...
user119595's user avatar

15 30 50 per page
1
2 3 4 5
277