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]

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

I want to access the first page of an excel workbook

Import-Csv C:\Users\_____\Desktop\Powershell_Renaming\list.csv | % { Rename-Item -Path $_.Name -NewName "$($_.Newname)" } This is currently what I use for file changing but I was wondering ...
user avatar
0 votes
1 answer
26 views

Get the Folder GUID using Power Shell

I am trying to get the folder GUID using its URL, i tried this power shell:- #Variables $SiteURL = "https://*****.sharepoint.com" $ServerRelativeUrl= "/Shared Documents/FolderA" ...
user avatar
  • 2,224
0 votes
0 answers
12 views

Adobe PDF ifilter 11 and SharePoint Server 2016

We're trying to follow the MS doc to enable Adobe's PDF iFilter 11 on our SharePoint Server 2016 farm. https://docs.microsoft.com/en-us/sharepoint/troubleshoot/lists-and-libraries/ifilter-alternative-...
user avatar
  • 23
0 votes
1 answer
34 views

The collection has not been initialized - SharePoint Online - Powershell

I'm wondering if someone can help. So I am trying to get a list of users from a SharePoint Online site using Powershell but get the following message. The collection has not been initialized. It has ...
user avatar
0 votes
1 answer
48 views

How do I get files' and folders' size and last modified time in PnP PowerShell?

I found a code snippet that loops through the files and folders in SharePoint, using PnP PowerShell, and retrieves the count. When I modify the code to also retrieve the last modified date and size ...
user avatar
  • 1
0 votes
1 answer
20 views

Hard deleted items in SharePoint 2010

recently I make a powershell script which compare date of create item in sharepoint and delete if it is equal or less. But, my bad and I didnt check some data and they are gone. Recycle bin in ...
user avatar
0 votes
1 answer
17 views

How to filter in PowerShell

I can get all of the webs listed out but when I try to add Where-Object, nothing is returned. How do I get this where object working? This is SharePoint 2013. $WepApp = "http://mywebapp.com/"...
user avatar
  • 133
0 votes
0 answers
15 views

How do you Update SharePoint 2016 On Premise SubSite Choice Fields using Powershell?

I have a Site Collection with many subsites that all have the same Custom List (CustomList1) and Choice Column (ChoiceColumn1 - List Columns not Site Columns). I successfully added a field value to ...
user avatar
  • 435
0 votes
1 answer
20 views

How do I get Powershell SharePoint Cmdlets installed to my SharePoint 2013 server?

I want to run some powershell commands on a SharePoint 2013 server. Unfortunately, I can't even seem to step up to the plate at all. Are the cmdlets not installed? I am running this powershell window ...
user avatar
  • 133
1 vote
2 answers
26 views

PowerShell to determine where a specific column has been used

I am trying to come up with a script to find out in which document libraries under the site collection, a specific column (Company name) has been used. I am using SharePoint online. Is this something ...
user avatar
  • 507
1 vote
1 answer
26 views

Deleting the newest folders from the SharePoint Library

Morning Everyone, I'm new in scripting so I'm looking for the small help. I have one case where I need to delete newest folders with the subfolders and the subfolders... and so on in the Library. I ...
user avatar
  • 11
0 votes
1 answer
51 views

Unable to download files via powershell from Sharepoint Online?

I used to be able to download files from Sharepoint Online by logging in with Connect-PnPOnline and then running the following command; but today it put a real kink in my productivity and it didn't ...
user avatar
  • 101
0 votes
1 answer
19 views

Get data from SharePoint List and SQL Table - compare them - PowerShell

I want to make a script which will get data from SharePoint list (from a specific column) and also get data from SQL table (from a specific column) and compare them. If the comparison value is true ...
user avatar
0 votes
1 answer
34 views

PowerShell to get any Custom lists and Libraries in a site

Looking to obtain a list of any generic lists or libraries that have been created by users in a Site (exclude any OOTB, hidden or system lists.) have tried filtering on various list properties via ...
user avatar
  • 1
0 votes
1 answer
40 views

How do you find where an SharePoint auto notification came from?

My issue is trying to locate where an auto notification is coming from that was sent out but ran out of ideas on other ways to try. So I have a couple users that received an auto notification from ...
user avatar
  • 43
0 votes
1 answer
20 views

SharePoint and Power Automate trigger overide - When an item is created

A PowerAutomate workflow as been created that triggers when a SharePoint item (list) is created which works ('When an item is created'). The problem is that an item has already been created in the ...
user avatar
1 vote
1 answer
45 views

Downloading library files options as external user

I'm a member of a SharePoint site as an external user and have access to a document library with lots of files/folders. I want all of this content downloaded for offline usage and sharing. I'm unable ...
user avatar
0 votes
0 answers
35 views

Cannot convert argument "parameters", with value: "Microsoft.SharePoint.Client.ListItemCreationInformation", for "AddItem"

I want to run this powershell to add new item to a list:- $SiteUrl = "https://***.sharepoint.com/sites/t" $ListName= "Child2" Connect-PnPOnline -Url $SiteUrl -UseWebLogin $Ctx = ...
user avatar
  • 2,224
0 votes
0 answers
4 views

Changing Permissions on Group Enabled Site Collection

We have a SharePoint site with already has an O365 group attached to it. With sites that are not groupified, we can easily set permissions by running pnpcommandlets But for this instance, I'm ...
user avatar
0 votes
0 answers
17 views

Migrate SharePoint Online Site Design/content from tenant to another

We have a SharePoint online modern site that we need to migrate from one tenant to a different new tenant. The site includes (webparts, custom pages, lists, libraries, and permissions). The most ...
user avatar
  • 307
0 votes
0 answers
14 views

get a list of specific columns used in a site collection

I have a 2016 onPrem farm and i want to write a script that can find all the content types and help me figure out where those content types (and their columns) are used. i have found this script that ...
user avatar
  • 553
0 votes
0 answers
11 views

How to create a non-list folder under the SPWeb

Is there a way to create in Powershell a non-list folder under the SPWeb similar to the "_catalogs", "_cts" folders? $web.Folders.Add returns Access Denied.
user avatar
0 votes
0 answers
20 views

ConvertTo-PnPPage from CSV file

I have more than 3000 pages need to be migrated from SP2013 to SPO, so I found a script, but not working. #Parameters $SiteURL = "" #Connect to PnP Online Connect-PnPOnline -Url $SiteURL -...
user avatar
  • 1
0 votes
0 answers
19 views

How to find all the empty sites?

I am using SharePoint 2013 on-premises. There are so many empty sites. Is there a PowerShell way to identify these sites? I need a list of these sites so they can be deleted. I searched all over ...
user avatar
0 votes
0 answers
15 views

Disable the setting in Teams "Allow member to upload custom apps using Graph API or PowerShell

Is there a way to change the setting "Allow member to upload custom apps" when using the graph API? Most of the settings can be changed, but this one is not visible in the response.
user avatar
  • 1
0 votes
1 answer
13 views

Reverse SharePoint Command

Get-SPWOPIBinding -Action "MobileView" -Application "WordPDF" | Remove-SPWOPIBinding -Confirm:$false Get-SPWOPIBinding -Application "WordPDF" | Remove-SPWOPIBinding -...
user avatar
0 votes
1 answer
37 views

How to retrieve all managed properties using csom or powershell in SharePoint online?

I want get a list of all custom managed properties from the SharePoint online site. Is there any way to get it using managed csom(c#) or powershell? Thanks in advance..
user avatar
0 votes
1 answer
37 views

Delete SharePoint Modern Page comments using PowerShell

I have a Site Pages library in Communication Site. I have to delete comments posted by 2 users on all the pages using PowerShell. There are many solutions available which use REST but I prefer to use ...
user avatar
  • 307
0 votes
1 answer
28 views

How to delete the last 20 rows of a Sharepoint list with Powershell?

Is it possible to delete the last 20 rows of a sharepoint list with a powershell script? I use the module pnppowershell. Gr. P
user avatar
0 votes
2 answers
53 views

Get service account details and their usages in SharePoint Environment

We have lots of service accounts in our SharePoint environment, now we are planning to delete the unwanted service accounts from our environment to keep the environment clean. So, I was checking ...
user avatar
1 vote
2 answers
452 views

Connect-PnPOnline: Unsupported user type 'unknown'

I have installed SharePointPnPPowershell on my dev machine which is running SP 2016. I tried to connected to my local sharepoint site using: Connect-PnPOnline -Url $url -Credentials $cred But I am ...
user avatar
1 vote
1 answer
113 views

How to disable app bar on SharePoint online modern site

I would like to disable app bar on SharePoint online modern site with PowerShell command, not able to perform the same due to an error. Neither CSS scripting is also working for me. Any assistance or ...
user avatar
0 votes
1 answer
14 views

Can I extract properties to array or object from Measure-PnpWeb?

I am fairly new to PnP PowerShell. I am trying to extract the TotalFileSize property from what the Measure-PnPWeb returns so I can see the total file size from my site. I've tried extracting to client-...
user avatar
0 votes
0 answers
13 views

Get-spweb Wildcard command not displaying results

In SP2013 on-premise , I'm trying to find all subsites(all levels) within a subsite so I use the below PowerShell "Get-SPWeb" with wildcard command: Get-SPWeb https://sitesurl/subsite* This ...
user avatar
  • 1,440
0 votes
1 answer
23 views

Is it possible to run CSOM code to cancel workflows? (SP 2013 )

I have the following code from previous job and it worked perfectly b/c I was the SP admin and had SP Server access. Now I dont have SP server access. $web = Get-SPWeb "https://inside.nov.com&...
user avatar
0 votes
0 answers
23 views

Azure Key Vault secret value coming up as null when using powershell type FilePath

I have stored Certificate password in a key vault as secret along with client id and certificate 64 base encode. However I am now having trouble using those value in my ps1 script. I am using this in ...
user avatar
0 votes
1 answer
80 views

Connect-PnPOnline Fails in Azure functions when connecting to SharePoint Online

In our Azure functions, we have powershell scripts that connect to SharePoint online and give monthly reports. Recently, we discovered that connect-pnponline is fail to connect to SharePoint after ...
user avatar
  • 101
0 votes
1 answer
36 views

Setup an alert for multiple users in a sharepoint (2016) list via powershell?

I was wondering if there is a way to setup multiple users with an alert on sharepoint (2016 on-prem)? I have researched to see how this is done via PowerShell but unfortunately I can only find ways to ...
user avatar
  • 43
0 votes
0 answers
25 views

Update of field's "ShowInEditForm" in a content type is not being reflected

I'm trying to show a special field from a content type in the Edit Form of the Library Invalids. The field is called Invalid. As far as, I can see in the PowerShell, the value of ShowInEditForm is set ...
user avatar
  • 179
0 votes
0 answers
18 views

How to get custom web templates?

I have users who creates site templates and uses that template to create new sites. There are about 400 of these sites. I tried getting the site templates for these sites but it only returns the base ...
user avatar
  • 15
0 votes
0 answers
26 views

With Management Shell, with Add-SPOSiteDesign cmdlet, I can't change the name of a library or give it a description

What I want to do is have a site template that: Changes the default document library's description; Creates a folder; Changes the title. But I can't manage to do 1 and 3. SiteDesign: Id ...
user avatar
0 votes
1 answer
17 views

Powershell Cannot find Get-SPWeb

I am using SP2013 onpremises. I'm using an account which is a Farm administrator and a Shell Administrator and a local admin on the SP Server. I am running a Set-SPUser command and receiving the '...
user avatar
  • 61
0 votes
0 answers
5 views

Sourcing Documents from subsites to Veiw

I am looking to do an audit of all the documents on my SharePoint and its subsites. Rather then going through every subsite I am looking to just be able to View all documents from all sites and their ...
user avatar
1 vote
2 answers
79 views

How can I get all site collections and sub-sites inside a PowerShell script?

I am building a PowerShell script to loop through all site collections and their sub-sites to get all users who are defined inside the related site owner group. Currently, I have this script where I ...
user avatar
  • 2,224
0 votes
2 answers
25 views

SiteUserInfoList - How to filter by email address?

Here is my code. The count works. However the email filter doesn't return anything (no errors either). $list = $myCTX.Web.SiteUserInfoList #.Lists["User Information List"] $myCTX....
user avatar
0 votes
1 answer
41 views

Setting policy for including CDN file types to public CDN does nothing

I have been trying to set the public policy from the default public CDN "*/CLIENTSIDEASSETS" to include JSON file type. I can run the command from both PowerShell and the MS365 CLI but it ...
user avatar
0 votes
2 answers
40 views

SharePoint 2010 and SharePoint 2013 wsp solutions are not getting deployed in SharePoint 2013 environment using PowerShell

I am upgrading feature and updating solution only for the wsp solution package I have. The deployment of 2013 solution is properly getting deployed using Visual Studio but not getting deployed using ...
user avatar
0 votes
1 answer
46 views

script sharePoint online libraries files via PS (site admin permissions only)

I need to script all documents in a site library. I am site admin on each of the sites in the site collection but I am not site collection admin/SharePoint tenant admin. I tried with the Sharepoint ...
user avatar
  • 3
0 votes
1 answer
55 views

npm install command error

Sample:(PS: You can find what I tested in the GitHub link below) https://github.com/pnp/sp-dev-fx-webparts/blob/master/samples/react-mgtEvents/src/webparts/mgtEvents/MgtEventsWebPart.ts Problem: Hello,...
user avatar
0 votes
1 answer
43 views

Sharepoint 2019 (onpremise) app-only connection thru powershell

i was able to create an app-only sharepoint (version 2019 on premise) by following this guide https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs . I don't find ...
user avatar

1
2 3 4 5
81