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)

1
vote
1answer
12 views

After creating Managed Metadata Service using PowerShell

I have created Managed Metadata service application using PowerShell. The MMS was created and started successfully. My Question is, Will this new MMS be added as connected service to the central admin ...
1
vote
1answer
16 views

PowerShell script to check if MMS is connected to Web Application

I want to check if Managed Metadata Service is connected to any Web Application by powershell script. What will be the possible script to check this?
0
votes
0answers
5 views

Custom entity extraction

I need help with custom entity extraction setting. I created an UTF-8, comma separated .csv file, script with the right dictionary (Microsoft.UserDictionaries.EntityExtraction.Custom.Word.N) and UNC ...
3
votes
0answers
21 views

Cannot find an overload for “Load” and the argument count: “1”

I am working on some utility functions to ease the administration of our O365 tenant by importing some modules as part of my profile. The thing I'm working on currently is being able to provision One ...
0
votes
0answers
9 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...
5
votes
2answers
32 views

Create new SharePoint user using SharePoint Online Management Shell

I have a *.sharepoint.com tenant provisioned through singing up for Office 365. Is there a way to create a new user for the tenant using PowerShell (for SharePoint Online)? This would normally be ...
0
votes
2answers
29 views

Get documents inside the folder from Shared Document using powershell

I need to get all the documents name inside the folder from shared document using power shell. Thanks
1
vote
0answers
20 views

How to set “ShowField” in peoplepicker using powershell

Does anyone know how to set "ShowField" in people picker using powershell ? For ex.x, to set the "Required" property, we can user $SiteColumn.required="true" , but for showfield, ...
0
votes
0answers
18 views

Ignore/Exclude file when using Export/Import-SPWeb

I'm using the Export-SPWeb and Import-SPWeb Cmdlets to migrate a few libraries between SharePoint servers. However, one of the files being migrated is a shared data source which is only valid on the ...
0
votes
0answers
18 views

Error: “Cannot index into null array”

I am getting this error while trying to get the list name Cannot index into a null array. + $clientlist = $web.Lists["Shared Documents"]; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ...
1
vote
1answer
22 views

How to set a multi-choice field value in a sharepoint list using powershell?

I have a sharepoint list and I want to set some value inside it. The multi-choice field is already defined and it is already pointing on data. I just want to pick one of the choices and set it in the ...
1
vote
3answers
80 views

Documents(file) name from Shared Documents in SP 2013 using powershell script

How do i get each document or file name from Shared Documents using PowerShell script. Thanks
1
vote
1answer
16 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 ...
1
vote
2answers
14 views

Add Safecontrol assembly in web.config through powershell

Can any one guide me in powershell to add safecontrol assembly in sharepoint web app web.config?
0
votes
0answers
8 views

Use Powershell to configure PowerPivot Data Refresh Schedules

Is there a way via powershell to check and see which items have a data refresh schedule configured for them? and If they don't proceed to create one? I can't seem to find much on working with ...
3
votes
2answers
38 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. ...
0
votes
1answer
11 views

SharePoint Import/Export Command for Library with version setting disabled

I have to export a SharePoint library from a site in server A and import it to a library in server B such that only the items that are new or updated are imported to site in server B. While this can ...
0
votes
0answers
19 views

How to find sharepoint 2013 foundation site collection broken links?

How to find all broken links in a site collection in SharePoint 2013? Preferably with PowerShell
0
votes
0answers
14 views

Does STSADMIN support workflow migration?

I've been tasked to move several SP2013 sites/collections from our National farm to the International Farm. From what I can tell, STSADMIN backup/restore can handle this pretty easily. However, I ...
0
votes
1answer
38 views

Import-SPWeb error: “The file xxx.cmp does not exist.”

I have a strange issue with Export-SPWeb and Import-SPWeb for SharePoint 2013. I want to export one of my sites, so I type this command: Export-SPWeb https://test.mywebsite.com/site -Path ...
0
votes
0answers
18 views

open pdf in browser sharepoint 2013

I have a library of pdf file, I need to open those file in browser and not to download them. I tried to set permission to web application using those steps : ...
0
votes
0answers
10 views

How to delete all user profiles of users that are not group members

I have to delete all user profiles of users that are not in a specific ad group. How can I do that (with powershell)?
2
votes
1answer
28 views

Remove characters in string - and add it to array - Regex - Powershell - Migration

I'm trying to migrate data from a Excel spreadsheet to user profile properties. Data ex: Energy & Resources;#67777;#Financial Services;#137;#Consumer Business & Transportation;#23;#Real ...
0
votes
0answers
17 views

Delete user properties under specific section - list all user properties in a section

I'm trying to delete all user properties under a section in user properties. How do I list all user properties in a specific section? Add-Type -Path "c:\program files\common files\microsoft ...
0
votes
2answers
58 views

Programmatically create content database in C# (SP 2013)

The goal is to have a web user interface with the option to create new site collections with new Content Database. With the admin user I can manually in the CA create new Content Databases. I can ...
0
votes
1answer
37 views

Update custom user profile properties - Powershell - SharePoint

Having problem updating custom user profile properties. Anyone with the same problem, code below: [void][reflection.assembly]::Loadwithpartialname("Microsoft.Office.Server"); ...
0
votes
1answer
17 views

Trying to edit a Quick Launch with PowerShell

I'm trying to edit a Quick Launch title using PowerShell. I'm using the following $web = Get-SPWeb http://www.sharepoint.com/ $ql = $web.Navigation.QuickLaunch.Children | Where { $_.Title -eq 'Node ...
1
vote
1answer
215 views

How to activate hidden features using Powershell

I want to activate site scoped and web scoped hidden features using Powershell Command. What will be the command?
1
vote
1answer
27 views

Collection was modified; enumeration operation may not execute Delete all libraries

I need to delete all libraries from a subsite, however I got this error: Collection was modified; enumeration operation may not execute $web = Get-SPweb($webUrl) foreach($list in $web.Lists) { ...
1
vote
1answer
76 views

Edit Lookup table programmatically via Project Server Interface (PSI)

I have a standard lookup table database table "LOOKUP_TABLE_VALUES" in a SharePoint 2013 solution with columns like: LT_UID - for the Lookup table GUID LT_VALUE_FULL - storing the values with the ...
0
votes
1answer
23 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 ...
0
votes
1answer
20 views

Can I run Export-SPWeb from another machine using PS Remoting?

I'm trying to run SharePoint Export/Import from a remote machine. I can get it to work if I remote on to the individual box, but want to run it from another machine. I’ve enabled PSRemoting on each ...
1
vote
1answer
14 views

Create A Page At Root And Set As Home Page

I am trying to iterate all the site collections and webs in a web application, create a blank page at the root, and set it to the home page. Setting the home page is no problem, but how to create a ...
0
votes
1answer
10 views

Foreach not recognizing close

I am trying to add items to a list from a CSV script. I have imported the code and established the variables and even test to ensure that the SP information is accurate. The following code does not ...
2
votes
1answer
27 views

No permission to retract/uninstall from CA, but from PowerShell

I have a weird permission-related problem. My account is entered as a local administrator, just to be on the safe side. If I want to retract or remove solutions within the CA I am getting either an ...
1
vote
1answer
30 views

Problems starting UPS sync service

When provisioning the User Profile Service Application via Powershell, we can not start the User Profile Synchronization Service, no matter what. It gets stuck on starting, and after a while gets ...
0
votes
1answer
35 views

How to add profile picture for other users?

I want to add profile pictures for some of our users in SharePoint 2013. How can I do that? Maybe with Powershell?
0
votes
1answer
44 views

Get-SPUser returning users no longer in the site

Good Day, Note: We are not using the Profile Service, so right of the bat, that may be the issue. The reason we are not using it, is because we use HandShake to pull AD profiles for display. If ...
0
votes
3answers
113 views

Cannot update Created By (Author) field through powershell

I'm trying to use powershell to add a new item to a SharePoint list AND set the created by/author field. I don't have much experience with powershell but this seems fairly straightforward. I have a ...
1
vote
1answer
24 views

Sharepoint Restore on Production environment

I have this scenario. I am not sure how to implement it. I am using Sharepoint 2010. I have a site on client environment and it has the production data. Now I have made some changes to the sharepoint ...
0
votes
0answers
32 views

List url property missing

We have 3 environments PRD, TST and DEV. Each environment is pretty much a clone as both TST & DEV were built from PRD. The other day I was testing a Powershell script and when I moved to PRD I ...
0
votes
1answer
34 views

How to delete all webs and all there subwebs using powershell

I want to delete all webs and subwebs like this, Add-PSSnapin Microsoft.SharePoint.Powershell Get-SPWebApplication https://portal.fruits.com | Get-SPSite -Limit All | Get-SPWeb -Limit All | where ...
0
votes
1answer
25 views

How to delete all lists in all webs using PowerShell

I want to delete all lists with title this and this using PowerShell but getting error Add-PSSnapin Microsoft.SharePoint.Powershell Get-SPWebApplication https://portal.fruits.com | Get-SPSite ...
3
votes
1answer
24 views

How can I get a listitem/page related resources from code behind

In the GUI it is possible to get the resources used by a page as shown by the image. Now I would like to get this information in the code behind so that I can modify only pages that are using a ...
0
votes
1answer
41 views

Move Document Library PowerShell

I am facing problems while trying to move a Document Library from one Subsite to another on a SharePoint 2013 on premise installation. I want to "move" a document library with powershell from one ...
0
votes
1answer
45 views

Pagination not working with XSLTViewWebpart when created using Powershell

I am having similar issue as mentioned in below URL's. Paging in XsltListViewWebPart is not working perfectly when added programmatically Why don't folders work when adding an ...
0
votes
0answers
18 views

SharePoint Online Management shell to add o365 Tenant Cloud group to Admin Group?

Is there any way to add an existing o365 Tenant Cloud group as System Admin to all Sites on our o365 SPO Tenant via power shell? I know we can do it with accounts. But apparently since o365 Tenant ...
0
votes
0answers
7 views

Configure peoplepicker across domians having two way trust

Hi I have a farm of 2 app servers 2 search servers and 2 front ends. Steps taken till now 1) Installed User profiles and crawled the successfully imported user profiles. 2) Ran the STSADM.EXE -o ...
0
votes
2answers
44 views

Powershell script to copy a value from one field to another

When I try to run the following powershell script: Add-PSSnapin Microsoft.Sharepoint.Powershell [System.reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $site = new-object ...
0
votes
0answers
19 views

How to reverse GrantAccessToProcessIdentity(“Domain/User”)?

In our SP2013 on-premise farm, we have two web applications. One for standard team sites and one for MySiteHost. These 2 web application are running under two different IIS app pool with two different ...