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)

3
votes
3answers
53 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
34 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 ...
0
votes
0answers
10 views

map the term set to site column of SharePoint Online OR Office 365 with powershell script

I have to create site column with metadata type and have to assigne it with the TermSet with powershell or CSOM with SharePoint Online OR Office 365. Is it feasible and how? Thanks, Ram.
0
votes
0answers
12 views

SharePoint Online Map term set to Managed Metadata column in Power shell Script using CSOM

In SharePoint Online using power shell script, I have created Managed Metadata column.. Now in my TAXONOMY TERM STORE i have term store in group , now i am trying to mapped that term set to managed ...
2
votes
3answers
693 views

Add multiple users, groups and groups permission from *csv file to SharePoint 2013 using powershell

I am looking for script to add multiple users and multiple groups to SharePoint 2013. I have CSV file with cointains two columns with header "user" login and "group" name with are separated by (;) as ...
6
votes
1answer
524 views

Update Custom Forms with Powershell

I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell. I'm not quite sure what the correct approach is. The form itself can be found as ...
0
votes
1answer
1k views

Creating a calculated column with replace in Powershell

I am trying to create a calculated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
1
vote
1answer
785 views

how to change the created date of a folder in sharepoint

I have a document library, I have used a powershell command to change the created date of the files uploaded in that library. However, I also want to change the created date of a Folder which is ...
0
votes
1answer
21 views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
0
votes
1answer
18 views

Difference between Get-SPSite and Get-SPsiteAdministration

What is the difference between Get-SPSite and Get-SPSiteAdministration cmdlets? I know Get-SPSite has more properties, but I want to know the core difference. Appreciate if u could explain in detail. ...
0
votes
0answers
17 views

Activate Globally Deployed Master Page

I tried to deploy a solution to Sharepoint 2013, consisting with only master page. However, while I can activate it with GUI just fine, I cannot find a way to activate it using powershell. ...
0
votes
1answer
28 views

Import-SPWeb Into Host Named Site Collection

I have made a backup of a SharePoint Site using Export-SPWeb. I have also added a new Host Named Site Collection and I would like to Import the Site into this newly created Host Named Site Collection. ...
0
votes
0answers
22 views

PowerShell script for Site map

In this thread they have a script that does what I need. However when I put in my intranet site location for SharePoint I get an error saying it cannot find the object. Is the reason why the script ...
2
votes
1answer
1k views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
0
votes
3answers
931 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. One ...
0
votes
0answers
18 views

How to delete a non-responsive query component from search topology using PowerShell?

How to delete a stuck and not responding query component from a search topology in SharePoint 2010? This query component worked fine before but it is not responding because the web front end server ...
0
votes
1answer
24 views

Move subsite programmatically

I have to move a subsite in a site collection to a new site in the root level. I want to achieve this through powershell. The "Content and Structure" page located at /_layouts/15/sitemanager.aspx ...
3
votes
1answer
617 views

PassPhrase is not valid in SharePoint 2013. Powershell not connecting to SharePoint farm to reset passphrase

I have removed Project server instance from my SharePoint 2013 farm. After that when I tried to run the configuration wizard, I found that the old passphrase is not valid. When I open powershell, the ...
0
votes
0answers
11 views

Installing Install-SharePointPnPPowerShell.ps1 - PnP-Powershell responsive package

I'm trying to install the Install-SharePointPnPPowerShell.ps1 but i'm stuck with the options listed. I want to use the PNP-Poweshell responsive package. I typed in " SharePoint Online" and enter but ...
0
votes
0answers
13 views

Get .app path after publishing SharePoint hosted app

How can I get the path of the new .app that's created on publish? I want to use it in a post-build event (powershell). Obviously the path pops up after publishing so I know where it is, just can't ...
1
vote
1answer
785 views

Get-SPGroup and Set-SPGroup commands

Like Get-SPUser and Set-SPUser, are there any commands like Get-SPGroup and Set-SPGroup ? I want to use Powershell commands like Set-SPGroup -Identity $ADGroupName -Web $SiteCollection
0
votes
1answer
16 views

Import-SPWeb command not working

Trying to import one subsite from one site to other exported the site successfully using Export-SPWeb –Identity http://sitename -Path E:\backups\site.cmp but when trying to import using the below ...
0
votes
0answers
13 views

Register-SPWorkflowService : The remote server returned an error: (404) Not Found

My environment consists of two servers, which are as follows: SharePoint 2013, installed on Windows 2008 R2 Workflow Manager 1.0 (version 2.0.20922.0), installed on Windows 2012 R2. This box does ...
0
votes
0answers
21 views

Load SQL and SharePoint in PowerShell script

I need to create one PowerShell in which i am using SQL and SharePoint both. In my development environment it works fine because there is single server for Content DB server and WFE server. But in ...
0
votes
0answers
17 views

Powershell script to automate, attaching workflow with association form data

I have a custom workflow with custom association form and my requirement is to attach the existing custom workflow to any of the newly created site and provide the values to the association ...
0
votes
1answer
13 views

PowerShell SharePoint Online CSOM Delete Versions

How do I delete all versions from a file except for the last 10?
3
votes
0answers
29 views

Thesaurus in SharePoint

In a SharePoint 2013 on-prem environment, I am trying to set up thesaurus. I am doing this for a Norwegian site. I can successfully import the .csv thesaurus file, but I am not satisfied with the ...
0
votes
1answer
31 views

Migrating Team Site from OnPrem to SPO

I've been trying to get whole site migrated from OnPrem environment to SPO, using following instructions: https://technet.microsoft.com/en-us/library/mt210445.aspx#PrepContentPackage OR ...
7
votes
1answer
11k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
0
votes
1answer
24 views

But how can I check and wait with PowerShell if provisioning of the SiteCollection is complete

I have used CSOM and PowerShell to create a SiteCollection in o365. $tenant.CreateSite($properties) $ctx.ExecuteQuery() But how can I check and wait if provisioning of the SiteCollection is ...
0
votes
1answer
34 views

How do you delete a persistent column/field for a library with SharePoint Online?

One of my users added a column/field named Active. She was not aware that it would be flagged a persistent column/field in SharePoint. Now when she adds huge swaths of documents to this library she ...
3
votes
3answers
4k views

Sharepoint Master Page Powershell

We have over 80 Site Collections in our Web Application is there a way through power shell that i can set the same master page for all the site collections.
0
votes
2answers
7k views

Code for Updating the Master Page Powershell 2013

Can someone please walkthrough this code for me. I just want to make sure that I understand it correctly. I've gotten it to run, but nothing seems to be happenings. Basically, I just need to know ...
3
votes
3answers
3k views

Cannot delete site collection in Central Administration

I had created a site collection. But there is a problem of web-frontend server (I did not know when I created the site), so the page is always in processing. After waiting 40 mins, I closed the page. ...
1
vote
2answers
4k views

Powershell - Delete / remove all site collection under a spesific managed path

I've created a managed path for my team sites - called "workspaces". All team sites Have been created under the same managed path. ex: http://awesome.com/workspaces/teamsite1 ...
3
votes
2answers
110 views

Move or copy a O365 SharePoint subsite

How do you move or copy a O365 SharePoint subsite and all of its children subsites in one site collection to another site collection? I have looked at using PowerShell but it does not seem possible ...
0
votes
3answers
33 views

How do I update CreatedBy field of List Items based on criteria?

I need to update the CreatedBy field of a number of list items based on the criteria of Title and another user defined field. If I could run some powershell similar to the following it would be great. ...
5
votes
1answer
663 views

SharePoint Online CSOM create managed properties

I'm trying to find a way to deploy search managed properties via script to my Office 365 SharePoint tenant. Previously, for on-prem SharePoint I've achieved this using PowerShell - fairly straight ...
0
votes
0answers
23 views

Associated owner group is always null

I am using PowerShell to create site collections, and add users by code. I add users as visitors, contributors and as owners. In my powershell code I can get both the Visitors and Contributors group, ...
0
votes
0answers
13 views

Alerts Changed via Powershell do not show updates in SubEdit.aspx

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert ...
0
votes
1answer
2k views

Export Crawl Log with PowerShell

I try to export the crawl log with PowerShell to analyze the errors and most importantly the warnings: Add-PSSnapin microsoft.sharepoint.powershell -ea 0 $ssa = ...
0
votes
1answer
3k views

Reactivating feature with powershell - disable enable feature if it's active

$snapin = Get-PSSnapin | Where-Object { $_.Name -eq "Microsoft.SharePoint.Powershell" } #This script enables a feature on every site collection on a given web app if ($snapin -eq $null) { ...
5
votes
4answers
967 views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
0
votes
3answers
58 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 ...
0
votes
0answers
25 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call ...
3
votes
3answers
2k views

Restore-SPSite fails without any useful error

I'm trying to restore from a backup via PowerShell with the following commands: add-pssnapin Microsoft.SharePoint.PowerShell restore-spsite -Force -Confirm:$false -Identity ...
1
vote
1answer
27 views

Move-SPUser - only changing upa but not mysite url with new id

SharePoint 2010: Move-SPUser works however in SP 2010 it does not change the mysite url to reflect user's new id. for example, mysite.fu.bar/sites/oldid so it should be mysite.fu.bar/sites/newid. The ...
0
votes
1answer
29 views

How to add a content type field to a SPList using PowerShell

This the scenario: I have created a new LookupField (Content Type) called MyLookupField which derives from SPFieldLookup as shown below: public class MyLookupField : SPFieldLookup { ... } Here's ...
1
vote
1answer
303 views

change editor and author of a document via powershell CSOM

I am wanting to change the editor and author of a document in a document library in O365 using CSOM powershell. I have managed to change the dates like this : $Upload = ...
0
votes
1answer
46 views

Feature code not upgrading

I am using a feature (with feature receiver) to create some lists by code on "my site". The feature is site scoped and is activated by a farm scoped feature (using feature stapling) when a new my site ...