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)

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 ...
3
votes
0answers
30 views

What permissions do I need to update SiteCacheSettingsWriter with Powershell?

I'm trying to enable and configure output cache on a site collection with Powershell. But I get an Access denied when running the script. Exception calling "Update" with "0" argument(s): "Access ...
3
votes
0answers
178 views

SharePoint Online how to add Links to Global Navigation Bar using PowerShell V5

I am trying to modify a PowerShell script to add Links to the SharePoint Online Global Navigation bar of my sites. I currently have a script which will add a "Header" to the Global Navigation Bar, but ...
3
votes
0answers
45 views

Sharepoint 2013: Get Items by Term-Tree

i have a list with a Termfield. I want all Items that have the Term "Stationärer Bereich:Vertrieb" or "Stationärer Bereich:Vertriebsinnendienst" (Including the subtree Terms). This is my Termset: ...
3
votes
0answers
130 views

How to find total number of pages in a site and count of words in SharePoint site?

I am requested to generate a report that illustrates the number of pages and their corresponding URLs, plus the count of words on a page, and the number of files in that site (word, PDF, images..etc.)....
3
votes
0answers
68 views

How can a document with version “1.0” have a status of “Draft”?

I have a set of documents which appear to have no problems in the browser, but when I inspect the properties of the document in PowerShell, it reveals that it is actually a Draft document: PS C:\...
3
votes
0answers
39 views

Method GetAppInfoByName does not exist?

I am trying out the tenant APIs towards an on-premise SharePoint 2013 Server install. This server is up to the October 2015 CU. I following the guidance on Vesa's post: I registered the server-stub ...
3
votes
0answers
35 views

Access Crawled Property values using PowerShell

Is it possible to retrieve a list of values for a given crawled property? If so, how would this be achieved using PowerShell? For example, I have a crawled property called 'Forename' and I would ...
3
votes
0answers
415 views

Install app for SharePoint using PowerShell - permissions on user profiles

I'm trying to install our app using the PowerShell and after running the application I get an error while accessing the user profile data. We are using the following permissions in our app: ...
3
votes
0answers
1k views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + $...
2
votes
0answers
34 views

CSOM PowerShell - $folder -PropertyName “HasUniqueRoleAssignments”

I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for folders....
2
votes
0answers
28 views

Removing Items from Recycle Bin that uses specific Content types

I want to delete custom content type from Pages library but it did not allow me to delete and says "content type is still in use". Then i get to know that i need to delete it from following locations ...
2
votes
0answers
65 views

Iterate through subfolder in list via CAML & Powershell

I have a need to remove unique permissions on documents in a list, however the list is over 5000 items so the following won't work, and its SharePoint Online so I can't change the threshold. $ctx=New-...
2
votes
0answers
24 views

How I Export some managed meta data column of sharepoint Document Library using PowerShell

I am getting the value for my text field as i need but for my taxonamy column it also give guid id and my taxonomy column are multivalued so i want to export like as store in sharepoint document ...
2
votes
0answers
129 views

How to install app from app catalog using PowerShell?

Does anybody know a way of installing app from app catalog using PowerShell? There is an article on MSDN about adding apps: Add apps for SharePoint to a SharePoint 2013 site. It describes the way of ...
2
votes
0answers
38 views

CheckIn large amount Items in overloaded Library

I have a O365 client that has 85,000 items in a folder structure in a library in their SharePoint online. Also they have hundreds of items that were never checked in and invisible for other users. I ...
2
votes
0answers
118 views

Adding a custom lookup field to new list doesnt add it to all associated content types

Ive searched for answers to this, and cant seem to pinpoint my problem here elsewhere. Basically what Im doing is that I have a PowerShell script which that, 1) creates a Content Type (ContentTypeX)...
2
votes
0answers
29 views

How to move search result source with powershell?

I have two development environments. I created search result source. I want to move result source from first environment to second environment. How can I do with PowerShell script ?
2
votes
0answers
109 views

Problem when running PowerShell

I've a PowerShell script file to create results source. It works well on staging, but has some problems on UAT. First of all is the trouble with Get-SPSite. I've managed to resolve it. However, when I ...
2
votes
0answers
146 views

Deploy a file to the “Forms” folder of a Document Library using Powershell

I am dynamically building up a file that I then want to upload to SharePoint 2013 using PowerShell. I want to upload this file into the "Forms" folder of a Document Library - So not into the Document ...
2
votes
0answers
234 views

SharePoint microfeed cant be migrated?

I just used a 3rd party software to migrate Project sites data from 1 SharePoint site to another. Worked like a charm except for the microfeed. The tool doesn't support migration of microfeed. Anybody ...
2
votes
0answers
416 views

Usage and Health Data Collection using SQL Authentication

I'm having an issue with trying to set my Usage and Health Data Collection to use SQL Authentication. I have tried setting my database credentials to SQL Authentication using both Powershell and ...
2
votes
0answers
20 views

How to rename a list-associated SPD2013 WF?

I have 20 sites that all have the same SPD2013 WF - it is a WF that executes on a specific list when an item is added or changed. We goofed on the naming of the WF and would like to rename the WF. Is ...
2
votes
0answers
807 views

How to delete a Task that is associated to an item and workflow that have been deleted

I have a task that is associated with an item (in another list) that has a running workflow. However, the item was deleted over a year ago and therefore it is no longer recoverable from the recycle ...
2
votes
0answers
344 views

PowerShell script to update ContentType of existing records in Document Library

we are using Document Library in SharePoint 2010 environment. there are about 200 document present in the document library which have been identified (based on location - England and employee type - ...
2
votes
0answers
340 views

Copying Modified Date in Window Explorer from Powershell

I have the PowerShell script which download Documents from SharePoint Document Library.i want to copy the modified date of documents including folders to the window explorer. Where I am going wrong ...
2
votes
0answers
147 views

Download Root level folders starting with A to J

I have the following script to download documents from document library. Is there any way I can download folders starting with A to J from root level which should include all of their sub folders from ...
2
votes
0answers
168 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
2
votes
0answers
79 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
2
votes
0answers
51 views

How to speed up saving a list as template

I want to save a library as a template. For this I use the following PowerShell code $id = [Guid]::NewGuid() $templateName = [String]::Format("{0}-{1}",$list.Title,$id.ToString()); $...
2
votes
0answers
136 views

Not able to connect to service with windows account in mix mode authentication

I am trying to connect web service in mix mode/claim based environment with powershell, Below is the sample code for your reference, $WebSrverUrl = "sharepoint:2013/_vti_bin/authentication.asmx" ...
2
votes
0answers
99 views

Is it possible to read the contents of deleted folders in the RecyclingBin?

I've been playing around with scripts that read deleted files from the recycling bin such as the one below but I can't figure out how to read the files within a deleted folder without restoring it ...
2
votes
0answers
146 views

How to assign the metadata for folders and sub folders

I am migrating the SharedFolders and files from Windows to SharePoint Library. So here i am able to add metadata for only files, but not for folders. Here the below is the code i tried for adding ...
2
votes
0answers
550 views

Configure welcome pages on sites and subsites with powershell

I have to configure the welcome page for all my sites, and sub-sites. Is it possible to add content in the welcome page ? I mean : a little text, a calendar, and sections on the page's right side (...
2
votes
0answers
919 views

New-SPSite gives ERROR: Failed to OpenThreadToken, LastError=1008 in Timer job

I have a timer job that is running some powershell. The script creates a content database and then attempts to create a site collection. If run from powershell prompt the script works fine. If I ...
2
votes
0answers
1k views

Workflow failed to run after pause - SP2010

I am trying to fix a paused workflow issue following this KB Article from Microsoft. http://support.microsoft.com/kb/2674684 However, when I try to run the powershell command I get this error as ...
2
votes
0answers
715 views

Getting Null returned from taxonomy field in PowerShell?

I am trying to update a metadata field when adding an item to document library. All the other columns are updating. The error is on this line and basically $taxfield is returning null. $taxField = [...
1
vote
0answers
21 views

Powershell script returning Libraries that do not exist in the error log

I had created a powerShell script to get a list of all the documents added to document libraries across the entire Web Application. But it somehow returned some libraries that did not exist in the ...
1
vote
0answers
30 views

Powershell Access user liste for SharePoint online

I would like to have a SharePoint online report for all users groups site, sub sites,library,items. For example: a user : Tood , i would like to know all the groups that he belongs to,all permission ...
1
vote
0answers
32 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:...
1
vote
0answers
68 views

Add WebPart to Page with PowerShell

So I have the following code that I took from "http://adicodes.com/adding-web-part-to-page-with-powershell/". It works fine, until the $context.ExecuteQuery() in the AddWebPartToPage function, where ...
1
vote
0answers
110 views

Reading Each XML Node in Powershell to create list in SharePoint

I have an XML file which I got from running webservices of below format. It contains each List name in the site collection under node. Now using this file I have to create lists in another site ...
1
vote
0answers
42 views

SharePoint Online PowerShell Custom Group in Site Settings

I know how to use PowerShell to create a new SharePoint Site Settings link, but I cannot seem to find how to create a custom group within site settings. Here is the code for creating the Custom ...
1
vote
0answers
49 views

Error in Powershell with .recycle() method

With the following code, I am getting this error in powershell: I could not find out whats wrong here? I am using recycle() method because in next step, i need to restore items from recycle bin. ...
1
vote
0answers
33 views

Powershell Migration script 2013 on prem to Office 365

I am building an on prem sp2013 intranet with the option of putting it in the cloud in the future. What I am thinking is writing some powershell script to add the pagelayouts change the welcome page ...
1
vote
0answers
36 views

How to update a Lookup field in one list with info from another list using Powershell or Workflow

I have a site that an SSIS package dumps thousands of items on to. The manager of the department wants a second list created. He wants to use a lookup column on list two to grab a single field called "...
1
vote
0answers
12 views

How to download multiple documents at once using powershell only specific document ids

i have a dcoument library in sharepoint record center application , enabled a document id for this web application , and in this document library users uploaded lot of documents 2000. and here i ...
1
vote
0answers
42 views

Import-SPWeb not importing Custom Person / Group Column Values

I have a SharePoint 2013 Multi-Tenant farm configured to use FBA. I tried exporting a site in one of the site collections of the tenant using Export-SPWeb. I did include the option IncludeUserSecurity....
1
vote
0answers
79 views

How to remove duplicate list items (keep higher version ) using powershell script?

I am working with SP 2010 Sharepoint Lists where the list items is having unique column " Document No" and each items are having "version". Each time the list items are getting updated/New items are ...
1
vote
0answers
25 views

Can not deploy SharePoint app to SharePoint Online dev site using Powershell

$url = "https://TestSite.sharepoint.com" $username = "Testuser@testsite.sharepoint.com" $password = "Lidf$ijsd@f$" $appfilepath = "C:\temp\app.app" $Password = $password |ConvertTo-SecureString -...