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]
1,092
questions with no upvoted or accepted answers
1
vote
2answers
326 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
1
vote
2answers
335 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
1answer
213 views
Is it possible to add an App from the SharePoint Online store to a site with PowerShell?
Is it possible to install an app, that is on the SharePoint Online app store, on a SharePoint site using PowerShell?
If so how is this done?
I had a look at the documentation and found that the only ...
1
vote
1answer
49 views
Add value from a variable to a list via PowerShell
I have a variable that contains column-value (terms) from a page/list
$terms = $page.FieldValues["Terms"];
where "$page" is a variable containing the site page.
I get another site page as a list ...
1
vote
2answers
132 views
How to find all Delve Blogs in the tenant
Recently, Microsoft has announced they are retiring Delve blogs
So we wanted to know how to find all the Delve Blogs in the tenant.
let me know if there is a way to get this information.
Thank you
1
vote
1answer
67 views
Search settings changed in PowerShell not applied
We created a search center in our intranet.
We configured the root web of each site collection so that the search uses the search center.
We also configured search navigation.
Then we made a ...
1
vote
0answers
164 views
Why http PUT can upload file successfully to SharePoint?
We are using SP2016 on-premise. In order to handle security test I prepared a PowerShell script to test upload with PUT/POST.
$Digest = $response.getcontextwebinformation.FormDigestValue
$headers = ...
1
vote
0answers
22 views
Connecting User ID to Search Report Results
SharePoint 2013 allows the search reports to be pulled from site collection level by month and day. The report is helpful but I want to know who did the search. The report seems inaccurate because ...
1
vote
1answer
265 views
Archive or move List Items with Version History and Attachments using PowerShell
I have a large list that I need to archive list items off to a different list within the same site. (I'll make the list into a template to make the archive lists.) The list is an InfoPath list that ...
1
vote
0answers
35 views
Powershell - How to group rows when using Import-CSV
I have a CSV file with one column, SharePoint Site URLs:
Site A
Site A
Site B
Site C
Site C
Site C
How can I group the rows so the I only have unique sites:
Site A
Site B
Site C
1
vote
1answer
114 views
How to get a list of Site Level workflows in SharePoint using Powershell?
How do I get all site level workflows in SharePoint on-Prem (v 2013 and above)? I see a lot of posts on enumerating workflows related to lists but not really for site workflows. Preferably something ...
1
vote
2answers
117 views
Modern Themes Not Visible in the Gear Menu (SharePoint Online)
I have just inherited a redesign project from a previous employee. I've never used SharePoint before, but I've done loads of reading and seen many YouTube videos and I've been able to create a custom ...
1
vote
0answers
612 views
SharePoint office 365 regional settings
I am planning to update regional settings in Office 365 for SharePoint site and Microsoft Team site with the following code:
The question is if the Global admin or tenant admin would have ability to ...
1
vote
1answer
262 views
Apply-PnPProvisioningTemplate (403) Forbidden, There is no Web named “/SiteURLName/_vti_bin/sites.asmx”
We use Powershell and PNP to create sites and apply tenants. I've had pauses coded into the script to allow time for commands to complete in the past. Lately we've encountered the (403) Forbidden ...
1
vote
1answer
40 views
How to use powershell to organise files into folders SharePoint Online
I have a document library in SharePoint Online that has a large amount of documents which have a column that sorts them. What i want to be able to do if it is possible is use powershell is move all of ...
1
vote
0answers
26 views
How to add clienttemplate.js to schema.xml for a SharePoint list using powershell
Can anyone suggest me a code to do the following 2 changes in the Schema.Xml of a list:
1) To change the Type from HTML to GRID.
2) To add the following JSLink:
<JSLink>clienttemplate.js<\...
1
vote
1answer
1k views
SharePoint Online - PowerShell - CSOM ExecuteQuery Exception is Root Element is Missing
I am used to working with SharePoint on-premises environments, but I am now trying to come up to speed with SharePoint Online. I can connect to my tenant using Connect-SPOService and use the ...
1
vote
1answer
67 views
Script to copy from fileserver to sharepoint and monitor
I am new at powershell scripting. I am asking for help. I have to create a script to upload folders from a fileserver to sharepoint. The script must monitoring that location( folder). And when a new ...
1
vote
1answer
531 views
Get site owner email details only from Owner group using Powershell
I need powershell snippet to get site the owner name and email details only from default site owner group
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Add-Type -...
1
vote
0answers
13 views
Trying to update a Document Library field in 150 SharePoint sites
We have 150 customer portals in our SP site collection, all sites are a templated copy of each other - i.e. they all have an Internal Documents, Working Documents and Final Documents.
Inside each ...
1
vote
2answers
132 views
Error while hiding field in Edit form SharePoint Online document library
I am getting error message like : Exception calling "ExecuteQuery" with "0" argument(s): "The node to be inserted is from a different document context."
Can anyone suggest what I am missing here......
1
vote
0answers
22 views
Get-SPSite pipelining
I'm trying to run the following on a very large farm that has over ten thousand site collections:
Get-SPSite -Limit All | Write-Host $_.Url
I know that with that many site collections, it would take ...
1
vote
4answers
924 views
Can not install SharePoint Online Management Shell
I am trying to install "SharePoint Online Management Shell" when I do so got below error.
This application requires the following to be installed:
PowerShell 3.0.
When I checked my Power ...
1
vote
0answers
50 views
How to know what object is used for sharing in SharePoint online via powershell
I have retrieved a report to extract all the site groups across site collections in SharePoint Online tenant.
During this process, I have got an item "sharing links with GUID". how to find what item(...
1
vote
0answers
97 views
PowerShell List View Threshold Error when trying to storage quota of a document library
I'm facing an issue when trying to use PowerShell to get information on document library sizes in site collections with SharePoint 2013 on-prem.
My PowerShell code is as follows:
$siteURL = "http://...
1
vote
0answers
23 views
Custom Upload Page still works for Document Library of SharePoint 2016?
I have a requirement where I need to create one custom upload page for one document library, so I built the code in a webpart control.
In that form I have set custom upload control and some meta data ...
1
vote
0answers
38 views
Get user name & mail id from Sharepoint Popularity Trends
Is there any way to find the name and email-ID of unique users for sharepoint library from powershell. I found the count from "Popularity Trend" excel,but i want the users details.
I am sharepoint ...
1
vote
0answers
257 views
How to set NavigationNode AudienceIds
In a recent CSOM update by Microsoft (see here), the AudienceIds property of the NavigationNode has been made public
I've been trying to set an Audience for the node using Powershell but so far no ...
1
vote
1answer
52 views
How to Sync Exclude from Internet Search Engines with Internal Search using Powershell
I am using SharePoint 2013 On Premises. I am trying modify the values Exclude from Internet Search Engines( Present in Edit SEO Properties of a page, RobotsNoIndex field) with respect to Include/...
1
vote
1answer
587 views
SharePoint online ExecuteQuery command giving exception
I am writing a powershell script to copy the sharepoint online list items from one sharepoint online list to another while that list consist of 77 fields. I am getting below error. While the same copy ...
1
vote
0answers
807 views
POWERSHELL Webclient Download/Upload giving “The request was aborted: The request was canceled.”
The powershell code to download and upload file from Sharepoint is throwing error for both download and upload functions.
Error is : Exception calling "UploadFile" with "3" argument(s): "The request ...
1
vote
0answers
39 views
How to update a site collection property bag with xml like data using powershell?
I've tried this:
$spSite = Get-SPSite -Identity http://mysitecollectionUrl;
$spwWeb = $spSite.OpenWeb();
$xmlFileContent = GetContent -Path ./myXmlFile.xml
$spwWeb.AllProperties["myPropertyBagKey"...
1
vote
1answer
622 views
How to disable access request in SharePoint Online using CSOM
I am trying to disable access request using PowerShell CSOM.
But when i try to set RequestAccessEmail to "", it does not work if the first radio button is checked. It will work only if the second ...
1
vote
1answer
30 views
To check who is running scripts in On premise farm
Is there any way to get detailed report of who is running CSOM/JSOM scripts in SharePoint 2013 environment and what those scripts are doing?
1
vote
0answers
89 views
Message error when retrieving a SPOnline Site after creating it using PowerShell
I'm implementing some PowerShell scripts for helping my team create new SharePoint Online sites. One of these scripts follows these requirements:
be able to create a site,
be able to remove the site ...
1
vote
0answers
204 views
How to republish SharePoint 2013 workflows via Powershell farm-wide
I have a SharePoint farm with Dedicated WFM farm which is working fine, Now i am splitting SharePoint farm in to two farms (Farm A and Farm B) but workflow manager farm will be remain same. Everything ...
1
vote
0answers
71 views
Is there any PowerShell or CSOM script in order to publish InfoPath forms to SharePoint Online?
I need to automate my task of publishing InfoPath forms to SharePoint Online using Powershell script or CSOM code.
1
vote
1answer
136 views
Update all BCS Field in SPSite using Powershell
When i delete an item in my external list, it's not deleted automatically from the list where i use the BCS Field. I have to click Refresh. I'm using this BCS in many lists.
I'm looking for a ...
1
vote
0answers
47 views
WebParts Removed From Web.config After WSP Deployment
I have a SharePoint 2013 web site with custom web parts. Lately, I've been running into an issue in which all the safecontrol elements that correspond to my custom webparts disappear from SharePoint'...
1
vote
1answer
3k views
Could not authenticate to SharePoint Online using OAuth 2.0
I am using following commands to connect to my SharePoint Online environment.
Connect-SPOService -Url "https://testdomain.sharepoint.com/sites/test1"
Connect-PnPOnline -Url "https://testdomain....
1
vote
1answer
298 views
Word.Application ComObject on Powershell Cannot Open File from SharePoint Online
I'm writing a PowerShell script to update a Word document's content in the SharePoint Online Document Library.
Below is the script so far. The issue is the $document variable value is null when ...
1
vote
0answers
49 views
Unable to add Custom ribbon on share point default landing page
I am trying to add custom ribbon on the default home page of the sharepoint online site. For some of the site collection the home page 'default.aspx' shows the custom ribbon but for some of other site ...
1
vote
0answers
74 views
Custom BCS indexing connector: custom Managed Property is empty
I've created a custom indexing connector for SharePoint 2016. The connector works but only the auto generated managed properties (grayed out) are filled.
If I create a new managed property and map it ...
1
vote
0answers
106 views
Find deleted objects from Online SharePoint calendar
I am not sure what is wrong with my code to retrieve the list of the events exist in my online sharepoint calendar without the deleted events:
Add-Type -Path "C:\Program Files\Common Files\...
1
vote
1answer
321 views
Export/Import Glabal term store
We are migrating Global term store from SharePoint 2013 to SharePoint Online. Can i get the scripts to export term store from SharePoint 2013 in a text file and then import that in SharePoint Online? ...
1
vote
0answers
36 views
I need to replace a Domain Group (Office 365 group) with another Domain Group (Office 365 group) on SharePoint Online
I have an Office 365 group added, for e.g. "ABC" which could be present at any of the below level. Permissions are broken at any level below
Site
Document Library
Pages
Page 1
Page 2
...
1
vote
2answers
202 views
Add-in/App - avoid consent dialog when adding app to a site
Is there a way to "trust" an SharePoint Add-in/App after it has been uploaded to the app catalog? Or eventually before/when it is added.
The App is an SharePoint Add-in (.app file) and is hosted on ...
1
vote
1answer
399 views
What is the StorageQuotaAllocated means in SPO
I have a little confusion about this Storage Quota Allocated property in SharePoint Online.
If i ran Get-SPOTenant, I get the StorageQuota : 1304576 & StorageQuotaAllocated : 104962048.
...
1
vote
1answer
867 views
Rename a file in a Document Library - SharePoint 2013
I am wanting to rename a file name in a document library called "RenameAFile". Currently have the following file called "UD-PD-Documentattion.xlsx"
and I want add "DN" before the file name "UD-PD-...
1
vote
0answers
143 views
How to resume a paused workflow
I have created a SharePoint 2010 style workflow in SharePoint 2013. It is currently paused till 10 Dec 2018 and says "Paused until 2018/12/10"
Is it possible to resume this workflow before that ...