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 ...

learn more… | top users | synonyms (1)

0
votes
4answers
46 views

Cannot updated item Author and Editor with powershell

I've copied some files from one library to another with Powersehll. Now I'm trying to update Author and Editor. Unfortunately, the author remains the user with wich I copied the item and the editor ...
1
vote
1answer
29 views

Redirect search from My site to Intranet

We are using SP 2013 on-prem. We have an Intranet and a MySite. When searching from MySite, I want the search to redirect to the search center at Intranet so the search results can be displayed at a ...
0
votes
0answers
35 views

Add custom tiles to waffle menu in O365 using Powershell Script

I have a requirement to add custom tiles in the waffle menu of O365. I am looking for a Powershell script for this implementation. Please guide.
0
votes
1answer
87 views

unable to update user profile properties with custom value

I am using a custom powershell script to update SharePoint Online user profile property (mobile number) with a custom value reading from a text file. but it is always throwing the error as ...
0
votes
3answers
72 views

How to get Item ID after Powershell Add-SPOFile

I am using Powershell to (bulk) Add-SPOFile to a Sharepoint Online Doclib. I need to Set-SPOListItem properties for the new items in the process, but don't know how to get the Item ID for the newly ...
1
vote
2answers
112 views

best appraoch to modify a site collection url inside sharepoint 2013

I have a site collection (of type enterprise KB) under the following URL http//servername/customer/questions where the customer is a wildcard managed path. now I want to change the site collection URL ...
0
votes
1answer
41 views

How do you check if a web application extension already exist

I can create a new web application extension using New-SPWebApplicationExtension but if it already exist I get an error with the message "The IIS Web Site you have selected is in use by SharePoint. ...
1
vote
2answers
50 views

Run SPD workflow on list items when items are updated using Powershell

I have a SharePoint List. I update each item in the list every morning using the following PowerShell script (because I need a calculated column to update daily): Microsoft.SharePoint.PowerShell $...
0
votes
1answer
65 views

Powershell for SharePoint Online active users

I would like to know how to generate a list of all active users in a SharePoint Online site, and its sub sites in a csv file, including the following information: Date of creation of the csv file ...
1
vote
1answer
38 views

How to check is the URL given is of site collection or subsite using powershell

how want to user ISSITECOLLECTION as flag. Means if url is site collection do this and if not do that using powershell.
0
votes
1answer
35 views

Copy-SPSite no longer work after patch

We have patched two SP2013 farms. One is standard another is enterprise. Both farm's copy-spsite no longer work after patch. The patches are not cumulative update download from SharePoint update ...
0
votes
0answers
15 views

Looking for a script to show where a solution is active in SharePoint 2010

I'm able to see that the solution is globally deployed (in CA) and I am also able to get the SolutionID with no problems. I'm looking for a way to show everywhere the solution is actually active and ...
0
votes
0answers
21 views

PowerShell Report on files uploaded during a certain time period

I'd like to generate a report using PowerShell that will tell me which files have been uploaded into a document library within a certain time period. Ex: The last month. I found this script which ...
4
votes
0answers
57 views

How to Install Sharepoint Online Management Shell on Powershell 5?

I need to migrate 300K records from my filesystem to Sharepoint Online (SPO). I am on Win7 SP1 and have MS System Center 2012 Configuration Mgr. installed so can't install WMF/Powershell 3 or 4, but ...
0
votes
0answers
8 views

Cross Site Collection Boundary for SPFieldLookup

I am looking for a solution similar to this post, Cross-site and SPFieldLookup, but I need to cross a site collection boundary. Is this possible with modifications to the powershell on the posted ...
0
votes
0answers
32 views

Get-SPLogEvent returns nothing

I use Get-SPLogEvent PowerShell command in order to retrieve ULS logs by following below link. https://technet.microsoft.com/en-ie/library/ff607589.aspx However, it returns nothing; neither error ...
0
votes
1answer
57 views

The following exception occurred while trying to enumerate the collection: Access is denied

I am trying modify content located in an unattached content DB. But I am having trouble accessing the lists. Here is my powershell script code: $db=Get-SPContentDatabase -ConnectAsUnattachedDatabase ...
2
votes
1answer
91 views

Apply Alternate CSS to all site collections via Powershell in SharePoint 2013

I have a SharePoint 2013 environment where I want to apply a single Alternate CSS file across all site collections and subsites. I am using the following method. When I run this I receive a single ...
0
votes
1answer
28 views

How can I use Online Management Shell commands from inside an Azure WebJob?

I have a project which requires a reporting tool be included in it. I need to be able to run the Management Shell command Get-SPOSite several times a day at regular intervals. As I am dealing with an ...
0
votes
1answer
104 views

Move-spuser doesn't replace user

In sharepoint 2013 i need to replace a user by an other. For this i use: Move-SPUser -Identity "DOMAIN\JaneDoe" -NewAlias "Domain\JaneSmith" -IgnoreSID I give permission on a site to JaneDoe ...
0
votes
1answer
50 views

Applying theme to site collection and all subsite underneath Issue using Powershell in SharePoint 2013

Getting error while applying theme to site collection and all subsite underneath Issue using Powershell in SharePoint 2013 Below is the code $themeName = "PaletteTheme" $SPSite = Get-SPSite "http://...
4
votes
2answers
70 views

Disabling tabular view

I have a bunch of views to create for a couple libraries that are all basically the same except for some filter values. I can create them in PowerShell using ViewCreationInformation. After a bit of ...
0
votes
1answer
61 views

Move User Profile via PowerShell for account that has never logged into SharePoint

Move-SPUser works lovely if you have an SPUser object to pass into it. It will update the account name in the User Profile Service to the new account name and modify all the site permissions. ...
1
vote
2answers
57 views

Open EditForm instead of DisplayForm on Title click in SharePoint list 2013

I have a SharePoint list and in that there is a Title field. By default when we click on title it opens DisplayForm.aspx. Insted of this I want to open EditForm.aspx using Powershell Script or any ...
0
votes
3answers
26 views

Site provisioning wizard?

I am using SP 2013 on prem, and need to create custom wizard for creating site collections. I can use old school method of using an application page with c# etc, but I am instead looking for "the ...
0
votes
0answers
33 views

Is the SharePoint Online list of Site Collections actually a List and how can I access it?

When a user with the correct priviliges opens the SharePoint section of the O365 Admin Portal the first thing they encounter is a long list of site collections with storage quotas and site ...
0
votes
0answers
16 views

Creating multiple sharepoint sites & need to Add logo/cutom theme for those sites which newly created

This is my script. $csvfile='C:\CSVFilepath\bulkSitecreation.csv' Import-csv $csvfile | Where {New-SPSite -Url $_.Url -OwnerAlias $_.OwnerAlias -SecondaryOwnerAlias $_.SecondaryOwnerAlias -Language $...
0
votes
2answers
36 views

How can you minimize export time on a large site collection?

I'm attempting to perform triage on a 1.5TB subsite in SP2013. I've reduced content as much as the business unit will allow, and my next step will be to move the site into its own site collection &...
0
votes
1answer
32 views

Values of new columns in view not showing

I have the following situation: An existing list has been extended with several columns, all of the type Readonly Field from other List. The Problem is, that the new columns do not show the values. If ...
0
votes
0answers
18 views

Add existing content type to “new” button

I have the following code that adds a content type to a document library (sharepoint 2013) and it works fine. However I now need to make sure this new content type is added to the list of content ...
0
votes
1answer
93 views

Cannot find an overload for KeywordQuery in Powershell

I am trying to run the following line: $query = New-Object Microsoft.SharePoint.Client.Search.Query.KeywordQuery($ctx) and receive this error: New-Object : Cannot find an overload for "...
0
votes
1answer
38 views

Need script to list Groups by Team Site

I am trying to find PowerShell scripts that do the following: List all TeamSites. List all TeamSites, Groups that belong to that TeamSite with their permissions. List all TeamSites, Groups that ...
1
vote
1answer
56 views

Can I get Last write time of a file in SharePoint via Powershell?

Is it possible to get when was the last WRITE time of a file in a document library by using Powershell? $url = "http://myserver/sites/mysite/shared%20documents/myfile.xlsx" $webclient = New-Object ...
0
votes
1answer
26 views

My script seems to be stuck in a loop

I have the following script that will loop through each web/list/content type looking for a specific content type. If it finds it, and that content type is not in use, then it will delete it and ...
0
votes
1answer
27 views

How many documents have been co-authored?

I need to prove that collaboration is happening. One suggestion is to use measure the number of documents which have been co-authored in the past month. Does anyone know how to do this ? I've been ...
1
vote
1answer
29 views

Query for spaces in values

I'm trying to filter a large list to pull out any values that have trailing or leading spaces using a powershell script. I can do it using a where-object command ($items| ? {$_["field"].StartsWith(' ')...
1
vote
1answer
41 views

I am unable to edit a header on the Global/Top navigation bar

I am trying to edit a top navigation bar Heading's description so at the top ribbon I would have a its description at mouse hover. I am going to have to do it with powershell, as a script, because it ...
0
votes
0answers
89 views

PowerShell calling Sharepoint 2013 REST API to update list item

After attempting several different examples I am unable to update list items using the Sharepoint REST API. I receive back a 400 error from the request. The creplace is due to Sharepoint sending ...
1
vote
0answers
33 views

Can the SPFileCollection.Add method check if I file has changed?

I'm using the sharepoint powershell cmdlets to upload files to a document library like so: # Set the variables $WebURL = “http://portal.contoso.com/sites/stuff” $DocLibName = “Docs” $FilePath = “C:...
0
votes
1answer
45 views

Upload a document to a library with PowerShell

I have a standalone 2013 SharePoint installed on a Win2012R2 which I am playing with. When I click "Home" in the navigation this is my URL http://winsrv01/_layouts/15/start.aspx#/ I created a new ...
1
vote
1answer
47 views

How to delete taxonomy field?

I usually use SharePoint Manager 2013 in order to delete taxonomy fields, so I can delete the hidden note field along with it, i.e. a field called Organization and Organization_0. In my production ...
3
votes
2answers
158 views

SharePoint 2013 - Multiple domains in People picker

We have a farm that's setup on Domain A and it has trust to Domain B. By default we can find the users for Domain A in the People Picker, but we would like to add the users for Domain B as well in the ...
0
votes
1answer
43 views

PowerShell Script to assign Default Content (folders/files) to SP 2013 Document Set Content Type

I am using SharePoint 2013 on premises to build an application which utilizes a Document Set Content Type. I have used the GUI to: Create Site Columns for the website; Create a Document Set ...
0
votes
0answers
28 views

PowerShell Script - list of MySite (OneDrive) quota usage

I am looking for a PowerShell Script that can export a list of our SharePoint users with the information of used quota (Total Quota, Used, Free, ...in Megabytes). I have only found the scripts where ...
0
votes
0answers
200 views

Invoke-WebRequest : The remote server returned an error: (401) Unauthorized

I am getting below error while running below command for SharePoint url from powershell. Invoke-WebRequest -UseDefaultCredentials -Uri http://spurl Invoke-WebRequest : The remote server returned ...
0
votes
1answer
82 views

Using Get-SPSite -Filter

I seem to be having some trouble using the Filter parameter on the Get-SPSite cmdlet. Using this question for reference, I'd hoped to filter out the Site that I was getting, to later on exclude it ...
0
votes
0answers
93 views

How Can I copy Publishing Pages & Site Pages with WebParts to another site collection in SharePoint Online?

I am looking for a solution which can help me to copy Pages (Publishing, Site etc..) from one site collection to another site collection in SharePoint Online. To meet this requirement I have tried ...
2
votes
1answer
70 views

Resolve SPFieldUserValue by Email

We need to insert a bulk data from MS Excel into SharePoint lists. We committed this using Powershell. Almost everything straightforward, until we found a stoper with People columns. From Excel ...
0
votes
1answer
30 views

Import .cmp file to webapplication

I have exported my site with Central Admin to .cmp Now I use Import-spweb to import it to another webapplication like this : `Import-SPWeb http://srvdev:7070/Linstance/ -Path C:\Bak\Linstance.cmp -`...
1
vote
1answer
39 views

Get the site owners information from a site collection

Can someone share the query to get Site owner and site collection manager information from all sites and sub-sites in a SharePoint 2013 site collection?