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
1answer
14 views

Powershell to move files from one library to another - SP2010

In SP2010, I'm trying to move all the files from one library to another using Powershell. I'm using the below script to first copy the files from source to destination and then delete the source file....
0
votes
1answer
10 views

Powershell - get a list of all SharePoint Group for all web application - output to csv

So, I'm trying to write a script to iterate through all web apps, extract the groups & members from each site collection/child site and output to CSV. I used Konstantin Vlasenko's function to ...
0
votes
0answers
7 views

Cannot start WorkflowServices.WorkflowServicesManager in CSOM

I have been trying to manage workflows using Powershell, namely to be able to perform bulk termination of workflows. However, I am unable to initialise the WorkflowServicesManager in CSOM. I had the ...
0
votes
0answers
9 views

Visio disconnects itself

Please help me to resolve this issue. In official sources, I did not find the answer to my question. The Visio service did not work. I found how to fix it. But after some time it stopped working. I ...
0
votes
1answer
28 views
+50

Convert SharePoint file object into hex string

I am trying to convert sharepoint attachment into hexadecimal string and push it to SQL via powershell. How can we convert sharepoint file/document into hex in CSOM / Powershell.
0
votes
1answer
20 views

Default Site Collection Administrators

I have a DEV Office 365 that was not setup by me. I am trying to create new site collections via PowerShell. Somehow, I see a bunch of AD groups and users automatically added as Site Collection ...
0
votes
1answer
14 views

Get farm status using CSOM PowerShell on premises

For complicated certificate/remoting reasons, we cannot use the PSSnapin Microsoft.SharePoint.PowerShell. I found a tutorial using CSOM objects, see example code: Import-Module "C:\Program Files\...
0
votes
0answers
13 views

Update SharePoint List based on another SharePoint List records with powershell

I am currently trying to update information in Reports List where items are exist in Records List. The current Reports are updating based on Records list filter however it ignore date filter if($date -...
0
votes
0answers
11 views

comment puisse je hiérarchiser les membres de mon intranet avec SharePoint OnLine? [closed]

j'ai besoin de décomposer les membres du ma société pour répondre au organigramme de la société (directeur général,chef technique ,superviseur,etc) ,comment je peux le faire !!
0
votes
1answer
27 views

How to filter sharepoint list with CAML query with more than one filters

The following filter CAML query is working as expect. I would like to add filter for record that only created today. Are you able to point out what i have missed or done incorrectly. Thank you. I ...
0
votes
1answer
21 views

Assign multiple words as input from a CSV file without Quotes

I am running the below script to add users to SharePoint group in SPO sites: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $users= "" $users = import-csv D:\User.csv ...
0
votes
1answer
15 views

Is it possible to automate adding SharePoint sites to policies in Security & Compliance Center using PowerShell?

Good afternoon, I hope to get some advice on how to tackle the following task: I’ve automated the provisioning of SharePoint websites and the user can request a website using a PowerApps form. On ...
0
votes
1answer
25 views

Update wsp on a specific web application(with multiples)

I have a SharePoint farm with multiple(let us say I have 5 web applications). Every solution has currently the wsp solution installed(we can call it solution1.wsp) The thing I want to do is I want ...
1
vote
1answer
19 views

Copy list column value to another in SharePoint Online

Within a SharePoint Online list I am attempting to update a column based on another column, all within the same list. List - TestUpdate Source Column - Created Destination Column - Scan Date I ...
1
vote
2answers
27 views

How can i create a design to comunication site with custom layout to home page?

I know that i can create scripts and designs for types of sites (comunication or team site). I can config default themes, create lists etc. However i did not find a way to config the home page layout ...
1
vote
1answer
38 views

Which permissions do Azure AD Apps need to get SPO admin rights?

I want to automate SharePoint admin tasks with Azure Automation. I don't want to use user/password but Service Principle. (We have MFA enforced.) I set up a new "Azure Automation" account, including ...
1
vote
2answers
43 views

Delete sharepoint files older than 60 day using Rest api from powershell

I am working on a powershell script to delete files in a specific folder in SharePoint 2013. We do not have SharePoint online so the operation must be done with Rest API and from powershell. Can ...
2
votes
1answer
18 views

Office 365 permission list of a single user in different collections

I want to see all various site permissions which user has in all site collections - globally within my organization. Office 365. My idea is a Powershell script which would make a report about all/...
3
votes
2answers
126 views

Download specific files from a folder in Sharepoint by using Powershell

I am currently trying to automatize downloading certain files in a Sharepoint-online folder by scripting in PowerShell. At this point the script (look below) only downloads one specific file, while I ...
1
vote
2answers
33 views

Export to CSV | DefaultLinkType value of all the sites in Tenant

Is there any SharePoint Online PowerShell script available to export the value of "DefaultLinkType" of all the sites in Tenant to a CSV? I am not able to find one.
1
vote
2answers
28 views

Copy Custom list content from one site to another site in same site collection

I have two different sites in same site collection but two sites language is different I created two custom lists in both sites with same number of site columns and datatypes but display name of site ...
2
votes
2answers
40 views

Fetching json content of a File in SharePoint Library

I have started with the following code to retrieve the List Items for JSON files found in my document library: Try { #Connect to PNP Online Connect-PnPOnline -Url $siteUrl -UseWebLogin $...
0
votes
3answers
75 views

Download file from SharePoint Online with PowerShell

I am trying to download a file with PowerShell from a SharePoint online site. I have tried the script provided here: SharePoint Online: Download a File from Library using PowerShell. But without any ...
0
votes
1answer
20 views

Is there a way to automate the SharePoint updates installation in SharePoint 2016 servers

We have a SharePoint 2016 On- Premises environment in which we have 2 Web Front end servers, 2 Application servers and 2 DB servers. Every month we are downloading & installing the Latest ...
0
votes
1answer
25 views

How to keep contents in a root site by doing the site swap?

I did the Invoke-SPOSiteSwap for SharePoint on PowerShell. While I was able to successfully do it, the contents of the root site went in to the archiveURl specified. Is there a way to prevent that and ...
0
votes
1answer
43 views

SharePoint Online - Set all default “document library” to read-only for members and visitors

Is it possible to loop through every site via powershell and set the default document library to all owned sites (including Team sites) to be read-only for everyone but the owners? I've seen and tried ...
0
votes
1answer
25 views

Where can I find where an app is being used?

Searched and searched and can't find the answer. There is an app that's causing an error in my site collection. But I don't remember where this app is being used. I want to find the app to delete it ...
0
votes
0answers
9 views

SP2010 Archive Infopath forms. Powershell or Windows Time job?

In our SP2010 farm, we have a Infopath Form library with ~6000 items. We are planning to Archive Infopath forms which are older than 2019. By archiving,I mean we are planning to move Infopath forms ...
1
vote
1answer
35 views

O365 - Changing external sharing policy on folder and not site level

I need to change the sharing policy on the folder level on the SharePoint sites, and not only the site level, is this possible in any way, with Powershell. I have been looking through the ...
0
votes
1answer
28 views

Fix broken SharePoint online lookup site column

I'm trying to fix the broken SharePoint online lookup column (site) which is causes problems after migration. Any answers? Thank you!
1
vote
1answer
28 views

Compare 2 CSV files using MS Powershell [closed]

I have 2 CSV files generated as outputs from 2 different Powershell scripts. CSV 1 - has 2 columns Record ID and Account Name. CSV 2 - has 2 columns Account Name and Path I now have to compare the ...
1
vote
1answer
37 views

What does ExternalServicesEnabled tenant property do?

ExternalServicesEnabled tenant setting is set to $true defailt. It means that "External Services" are enabled. What would happen exactly if set ExternalServicesEnabled to $false to disable "Extrnal ...
1
vote
1answer
33 views

What does CommentsOnFilesDisabled tenant property do?

There is a tenant property CommentsOnFilesDisabled that has no documentation describing what it does exactly. Does anyone know any additional information? After changing this property at a tenant, I ...
1
vote
2answers
34 views

What does FilePickerExternalImageSearchEnabled tenant property do?

Does anyone know what FilePickerExternalImageSearchEnabled tenant property is? Connect-SPOService -Url https://contoso-admin.sharepoint.com/ $tenant = Get-SPOTenant $tenant....
0
votes
1answer
28 views

How we can find Users who have accessed SharePoint 2010 subsite

How we can find users who have accessed SharePoint 2010 subsite by using web analytics service. Top Visitor reports contain lot of repetition of user accounts like domain\user1 and User1
0
votes
3answers
57 views

SharePoint Online Migration (Migrating Failed files)

We have requirements to migrate our sharepoint 2013 content to SharePoint online. content size is around 700 GBs, and because of that we are getting many failures related to the throttling issue. my ...
0
votes
0answers
20 views

Top Visitor Report for Sharepoint2010 Subsites [duplicate]

how we can get top visitors report for SharePoint 2010 subsites. For Site collection Top Visitor report I used method mentioned in below link https://social.technet.microsoft.com/Forums/en-US/...
1
vote
1answer
59 views

How to add list column to list content type via SharePoint online PowerShell?

I'm trying to add some custom property to list content type at SharePoint Online site by following script: $context=New-Object Microsoft.SharePoint.Client.ClientContext($URL) $context.Credentials = ...
0
votes
0answers
36 views

You cannot call a method on a null-valued expression

We have a Powers-hell script running on our SP 2007 environment and what it does is collecting SharePoint list attachment and move it folder path. However since last month I am receiving attached ...
0
votes
0answers
36 views

Sharepoint 2016 list update with CSV

I am stuck with an import to a SharePoint List from CSV. The goal is to update only certain columns according to the value of another column. IE: If Colum A has value X then update Colum B and get ...
0
votes
2answers
36 views

Powershell script for SharePoint 2010 Site collection Top Visitor report

Right now from Site Collection Analytics - Top Visitor report we are getting only 2000 users, there should be more than 2000 user. how we can get all the users who have accessed for last one year. ...
0
votes
1answer
73 views

How to automate SharePoint document library with local folder using PowerShell or with anyother?

I want to create a solution where documents from document library will sync automatically to local folder. Sync is not only for download at the same time whatever changes made to synced document ...
0
votes
1answer
178 views

Set-OrganizationConfing not recognised, even though I can Get-OrganizationConfig

I'm trying to set the 'Focused Inbox' to disabled for the whole organisation. I've found lots of scripts and tutorials online, most of which point toward using the Exchange Online Session in ...
0
votes
2answers
63 views

Getting “Access Denied” on “Invoke-PnpQuery”

I am trying to move a site in SharePoint Online but get an error while doing so. Code : *$NewSiteURL = "/sites/Helix/HelixArchive/TobeArchived"* *Connect-PnPOnline -Url $SiteURL -Credentials $...
1
vote
2answers
68 views

Powershell script for SharePoint 2010 Site usage Web Analytics Service

By using sharepoint power shell, how we can know all the users accessing sub-sites by using web analytics service
0
votes
0answers
17 views

SharePoint Permissions via Powershell for Active Directory Groups

I have the following folder structure within a SharePoint Document-Center Library: - Site A - Site A\Management - Site B - Site B\Management - Site C - Site C\Management With the following ...
0
votes
1answer
70 views

Add links to a Quick Links web part using PowerShell and JSON

I am trying to add links to a Quick Links web part on a modern SharePoint site, to do this I am using PowerShell and JSON. I have obtained the web part as a JSON file and have accessed it using the ...
1
vote
2answers
72 views

How to change a Private Site logo with PowerShell

I am trying to change the logo of a private site through PowerShell, but whenever I try the system changes it back to a new logo. I add the new logo to the 'Site Assets' library and then use the Set-...
1
vote
2answers
30 views

PowerShell to add items to a form library

I am able to easily add items to a list using powershell. I have found that this does not work so easily when dealing with a FORM LIBRARY. I am using something like this below which works like a ...
0
votes
2answers
603 views

The sign-in name or password does not match one in the Microsoft account system

When connecting to online site we have Microsoft authentication call to our phones and we will enter our pin for authenticating.Then only we can access the site. But in csom code when conencting to ...

1
2 3 4 5
74