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
1answer
8 views

How to create Web Application with custom MMS application association

I have found Powershell script to create Web Application, But I don't find how to associate it with custom Managed Metadata Service application. I Need help to write Powershell script how to associate ...
0
votes
1answer
16 views

How to check if “State Service application” is running or not

I want to know by some powershell script if "State Service application" is running or not? I have some other script to run but before running that script, i want to check if "State Service ...
0
votes
1answer
17 views

Add video files to asset library using PowerShell

I want to add video files to the Asset Library programmatically using powershell and Kindly help me. I tried the below code : Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction ...
-1
votes
0answers
22 views

Powershell in SharePoint Online - Request rejected [on hold]

Getting this error while getting context of sharepoint online site using PowerShell
0
votes
1answer
16 views

Unable to commit changes to publishing pages using powershell

First off let me start by saying this is the first time I have posted a question here, I often visit this website and other StackExchange/Overflow sites for assistance on various projects and ...
0
votes
2answers
395 views

Problem copying lookup column data from one list to another via PowerShell

I have the below script that works for moving list data between two lists on sites next to each other that have the same schema. Everything works perfectly bar a column of type LOOKUP named "Name of ...
0
votes
1answer
562 views

Creating a calculated column with replace in Powershell

I am trying to create a caluclated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
0
votes
0answers
13 views

SharePoint Online 2013 - How to upload a new page layout into master page gallery using powershell

I have created a new custom page layout with custom content type using SharePoint designer 2013 and downloaded a copy of it. Now I have to upload that to another environment using PowerShell. The ...
0
votes
2answers
33 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
2
votes
1answer
453 views

SharePoint Error when I run PSConfig

I am getting the following error when I attempt to manually run PSConfig following an update on this server from the June/July 2012 CU to the April 2013 CU (this is from the logfile): 06/10/2013 ...
1
vote
1answer
20 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?
1
vote
1answer
16 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 ...
0
votes
0answers
6 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 ...
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
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 ...
1
vote
0answers
23 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
19 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
19 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
629 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
0
votes
1answer
83 views

Set-SPAppDomain local

How can I set a local domain for: Set-SPAppDomain "mydomain" Set-SPAppSiteSubscriptionName -Name "mydomain" "mydomain" is just an example. Now for the second command I'm getting this error: ...
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 ...
1
vote
1answer
24 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 ...
2
votes
2answers
4k views

Change Document Library folder's Modified timestamp to latest timestamp inside

I have a Sharepoint 2010 Document Library with a range of subfolders and some files within each of them. The problem is, right now every subfolder has the same Modified timestamp, and I want each ...
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
1answer
470 views

spadminV4 which could not be contacted in deployment

I have Sharepoint 2013 and Powershell deployment. I execute muy ps1 script in SPS01 machine. Farm servers are SPS01, SPS02, SPS03, SPS04. User for deploy is UserInstallerMoss , it's Farm ...
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
39 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. ...
2
votes
1answer
569 views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...
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
40 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
1answer
414 views

How to associate sharepoint 2013 designer workflow to content type for retention policy using powershell?

I am having a requirement to write a powershell script which should attache workflow to content type in sharepoint 2013. basically it is require to create a retention policy which should start a ...
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 : ...
1
vote
2answers
83 views
1
vote
2answers
6k views

Do I have to run Register-SPWorkflowService for each site collection?

As part of my SharePoint Server 2013 setup I sometimes need to integrate the new workflow infrastructure into the farm. I've followed the documentation starting from the SharePoint side of things: ...
1
vote
1answer
469 views

Issues updating/setting multi value lookup columns via powershell

I have an issue updating multi-values in a lookup field via powershell I can update a single value lookup field as below but can't get to update if its multi- value. As stated below when I hardcode ...
3
votes
1answer
418 views

Import-Spweb is changing the user id if the user does not exist in the organisation anymore

We had to restore a list (which has versionsing enabled) in our PROD enviornment SP 2010 August CU 2012. We used the following command metioned below: Import-SPWeb http://example.com/projects/myList ...
1
vote
2answers
692 views

App Pool created with Powershell name appears as GUID in IIS

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below: New_SPServiceApplicationPool -Name "Default ...
0
votes
2answers
59 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 ...
1
vote
6answers
2k views

Can't find termstore sharepoint for metadata

I'm using PowerShell to add metadata to my termstore. When I go to the central administration, in metadata service application I can see that I have one termstore. But when I try to access it through ...
0
votes
1answer
39 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"); ...
2
votes
3answers
2k views

Mounted Office 365 sharepoint workspaces lose connectivity - how to fix?

I'm trying to get my sharepoint workspaces on office 365 to mount like network drives. I can achieve this following microsoft guidelines, but after a while this fails. The user has to login again to ...
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)?
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
479 views

How to register a new SharePoint App using PowerShell (instead of appregnew.aspx)?

I'm uploading my SharePoin Provider Hosted App and installing everything via PowerShell, but the only thing that I cannot find is if it's possible to register a new app using a PowerShell command ...
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 ...