2
votes
1answer
26 views

Powershell - get all default values for a document library

I am attempting to write a powershell script that will iterate through all document libraries and provide me with the default values for specific columns. I am successfully iteration through the ...
0
votes
0answers
10 views

Removing a BDC Catalog using PowerShell

I use Sharepoint 2013 and Powershell. I use $metaStore = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Catalog" -ServiceContext $siteUrl Import-SPBusinessDataCatalogModel -Path $filename ...
0
votes
1answer
24 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
1answer
20 views

Restoring backup to new environment. Error: Web application not found

I am trying to restore a backup of a site collection from my production enviroment to my dev enviroment using the following powershell script: Restore-SPSite http://abd.spdev.<domain> -Path ...
0
votes
1answer
22 views

Why can't powershell convert my password from system.string to system.security.securestring?

I'm trying to create a UPS sync connection using powershell. Becuase of the vagaries of our AD setup I can't use the Central Admin 'Create New Connection' function. I am using the script below which ...
0
votes
2answers
21 views

Move SharePoint list items into folders that exists in the same list programmatically?

Respected members of StackExchange, kindly help me with your kind suggestions to solve the issue. I have +20,000 items in a SharePoint list that i want to move into the folders that also exists in ...
0
votes
1answer
34 views

How to install SharePoint 2013 Installation with SQL Server Authentication

I'm just curious about the steps required to install Sharepoint 2013 using SQL Server Authentication. Also if there are any drawbacks that i might not be aware of. Here are some steps i currently ...
0
votes
0answers
15 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
43 views

Getting the list name from url with PowerShell

I am trying to parse any given SharePoint URL and get back the site, web and list references using the code below. I would like to achieve this even if I provide the URL of an item. The code below ...
0
votes
1answer
46 views

Access personal views in a list with PowerShell

I am trying to first access and then edit Personal Views for a SharePoint List using PowerShell. However only the public views are returned. In the example below the list called List1 has two views - ...
5
votes
1answer
58 views

Multilingual user interface: Is it possible to Export Translations using PowerShell?

I have a SharePoint Server 2010 Enterprise with several language packs installed. The Alternate Languages have been enabled in the Site Settings and several items have been translated. Is it possible ...
0
votes
1answer
43 views

Error while updating a Sharepoint record using Bypasslock method in Powershell

I am trying to update a Sharepoint 2010 record using ByPassLock method in Powershell. I am using below code [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | Out-Null ...
3
votes
1answer
56 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 ...
1
vote
1answer
107 views

Change icon in sharepoint site programmatically

I want to change the icon image for my Webapplication , not the logo but the icon in the URl . I used this script powerShell to change the logo : #Get the Site $web = Get-SPWeb ...
0
votes
1answer
31 views

how to limit size content database

I want to limit the size of the content database to add another content database to my web application. Does anyone know how to do this with powershell or sql?
3
votes
2answers
185 views

List item with specific ID value

I want to copy a list items one by one to another list using PowerShell. Some items in source list are misssing. I don't want to create and delete empty items for missing ID values in source list. I ...
0
votes
1answer
56 views

Uncommitted changes on SPWeb object

In my simple Powershell script, I keep getting an error "Exception calling "ResetRoleInheritance" : There are uncommitted changes on the SPWEb Object, call SPWeb.Update() to commit the cahnges before ...
1
vote
2answers
1k views

powershell script to move/copy files from network path to SharePoint sub folder

if((Get-PSSnapin "Microsoft.SharePoint.PowerShell") -eq $null) { Add-PSSnapin Microsoft.SharePoint.PowerShell } $spWeb=Get-SPWeb -identity ...
0
votes
1answer
81 views

SharePoint security based on Active Directory security groups not work

Please help me. In the organization , we have deployed SharePoint 2013 , to control access to sites decided through security group Active Directory. Active Directory security groups are added to the ...
1
vote
1answer
67 views

Test-SPContentDatabase doesn't return information

I run Test-SPContentDatabase like this: public string Test_Associate(string DbName,string UrlApp) { Runspace runspace = RunspaceFactory.CreateRunspace(); // open it ...
0
votes
1answer
75 views

run SharePoint management shell with c#

I have some ps1 that I need to run it with SharePoint management shell. I dont have the possibility to run it with the traditionnal powershell even i havce the administrator role : public string ...
0
votes
0answers
37 views

Connect to SPFarm SharePoint 2010

I want to create a function to connect to SPFarm SharePoint2010 with a login and password ,I knowed that it use NTLM authentification ,do I need credential connection ? is there any PowerShell ...
0
votes
1answer
62 views

Get-SPExcelServiceApplication Cmdlet not recognized during Powerpivot configuration

I am trying to run the sharepoint powerpivot configuration tool however I am getting a message saying: The term 'Get-SPExcelServiceApplication' is not recognized as the name of a cmdlet, function, ...
0
votes
1answer
15 views

Get and modify crawled property

I have a custom metadata mapped now by script I need to get that to do some update. How can I do this?
2
votes
0answers
101 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 - ...
0
votes
3answers
232 views

How to create SPWebApplication (SharePoint Web Application) programmatically?

I wonder how can I create SPWebApplication (SharePoint 2010 and 2013 ) programmatically? Do I need a Remote Administration using Sharepoint 2010 Management Shell or there is c# code. best regards
0
votes
0answers
37 views

Power shell script to select additonal fields for a lookup through site column

I have create a Lookup column as a site column in my root site collection selecting the following fields(Title,Order,status). In My subsite i am using this column using power shell.Lookup is getting ...
3
votes
2answers
300 views

Powershell regular expression syntax for matching exactly 6 characters that start with two letters at end of url

I have been trying to get a regular expression right for the powershell match command. I am looping through all site collections in a web application (my sites have URLs SC followed by exactly 4 ...
0
votes
1answer
152 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 ...
1
vote
1answer
93 views

programmatically check if sharepoint installed

I'm developing an application which test if SharePoint is installed correctly, with stsadm and PowerShell access. I wonder if there is a specified stsadm or PowerShell command or a specified C# code ...
0
votes
1answer
54 views

Adding groups to sharepoint site using powershell

Hi I have added 4 groups to site collection 'A' using the powershell script below. How can I add the same groups in a site under the site collection 'A' `$web=Get-SPWeb ...
2
votes
1answer
159 views

SharePoint deployment - Deployed to: GAC (WebURL/Global) / BIN

I know that when we deploy farm solutions then they are available under Central Admin --> System Settings --> Manage farm solutions. In this list of solutions, there are 3 columns. Name, Status and ...
1
vote
1answer
39 views

get login and password admin of farm

I'm developping a user interface with the intent to connect to my farm. I wonder if there is any cmd powershell to get login and password admin or there is other method.
1
vote
2answers
307 views

Is there a way to create site pages and insert webpart into it via PowerShell?

We are creating a powershell script to create lists, groups and to install wsp packages. There are 5 wsp each containing 1 webpart. Is there any way via powershell to create 1 site page and embed 1 ...
0
votes
0answers
26 views

edit ps1 file with c#

i have an ps1 file witch work fine in powerISE. But in my case ,I have a c# class witch execute ps1 file and I want to set variables values from c# class . code in PS1 powershell function ...
1
vote
3answers
653 views

Powershell to install Farm solutions (wsp) [duplicate]

we are trying to deploy farm solution wsp file on the SharePoint server via PowerShell. The wsp is a webpart. I got this script by browsing forums... Foll. is our code:- $oUrl="http://mysite:9999/" ...
1
vote
1answer
255 views

Using Classic mode authentication in SharePoint 2013

We have a SharePoint 2010 site deployed using powershell. Before running script we have to create a web application and site collection. Then run the script. The script creates groups and lists. Now, ...
0
votes
1answer
150 views

How to enable Modal Dialog for All List forms (new/display/edit) via PowerShell?

We have deployed a SP2013 site via powershell and notice that the list forms do not open in popups rather they open as page. Is it possible via powershell to update all lists so that the ...
1
vote
0answers
11 views

How can I upload multiple Forms into Forms Library and set some values?

I have a forms Library with over 6k Forms in it and I created a new one. As I cant move them directly because almost everything has been changed in the new form (new fields, etc) I need to create a ...
0
votes
0answers
42 views

Find all InfoPath forms in the entire SharePoint 2007 SiteCollection

We're going to migrate a SharePoint 2007 instance to SharePoint 2013. We want a report with all the InfoPath in the entire SiteCollection (+1000 sites, so with PowerShell). I've found some scripts, ...
1
vote
2answers
38 views

Use of powershell with sharepoint

I was wandering what were the possibility of interaction between powershell and sharepoint. Almost all our documentation at work is on sharepoint and was wandering if I could access the metadata ...
2
votes
2answers
1k views

No Connection between SP2013 and Workflow manger

Goal: Install Workflow manager in order to use SharePoint 2013 workflow. Problem: When I try registrating between SP2013 och WorkFlow manager based on the code: Give this command ...
0
votes
0answers
28 views

Powershell copy a View from database and insert to existing Sharepoint list

I got a View, and a List of Sharepoint with same more of column. In Powershell at every Time Job I wan't add only this records, which are new, and add them to a list. Did You know any of scripts which ...
0
votes
1answer
576 views

Looking for a Powershell script to enable SharePoint Server Publishing on all sites in a site collection

I'm looking for a Powershell script to enable the SharePoint Server Publishing site feature on all sites in a single site collection or all site collections.
0
votes
0answers
45 views

Need to get only items which have never checkdin

I am using this code to get ownership of the list items which are never checkedin, this works great. I need to get the items which have no version history. How do I specify in my Caml Query please? ...
0
votes
1answer
29 views

How to create setup for Sharepoint 2010 web application

I have patch 1 until 3. To do the installation for each solution package may take a long time which is it is needed a long step. So, is there any solution or tools that I can simplify the ...
2
votes
1answer
135 views

Upload user profile images from desktop to sharepoint using a windows service

All, I was so glad to find this community. I am sharepoint newbie and just started working on Sharepoint 2013. My task is to upload and set user profile images which are saved in a local disk (share ...
0
votes
0answers
136 views

Subscription settings service application won't install with PS

Ran this script once on one farm with success but now on a new farm it won't run. I got this same error the first time I ran it. It doesn't matter if I run it again to remove it. Here is the ...
0
votes
2answers
43 views

How to find how many site colections are active in a web application using console application

I need to retreive how many sites are active in a web application using either powershell code or console application. Require the code ( also need how many users have accessed the active site ...
0
votes
1answer
47 views

How to retreive last 10 users who have logged in a site using Power shell script?

I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.