1
vote
2answers
20 views

Delete the defualt folder in sharepoint 2013

i have used the below scripts to delete the folder in sharepoint 2013 This folder is generated by while creating my site which always creates the same folder name in the "Documents" Document ...
0
votes
0answers
9 views

Delete the default folder in sharepoint 2013 using powercell [duplicate]

whenver im creating mysite each user aving default folder in document lib. Shared with every one. so my requirement is to delete the "shared with every one" folder in all my site. is there any ...
1
vote
2answers
36 views

Upgrade Sharepoint 2013 solution

I have a Sharepoint solution installed. I want to install a newer version of the solution as an upgade which I did using : Update-SPSolution –Identity MySolutionName.wsp –LiteralPath ...
0
votes
0answers
12 views

Revert Restore-SPFarm

We have a SharePoint test server and SharePoint live server. They are on the same network The administrator for each is the same Active Directory account. I know this is wrong but as a programmer ...
0
votes
1answer
20 views

different version error when restoring a SharePoint site collection

So I created a new single farm SharePoint server for testing purposed (we currently had a live production farm but no testing server). I am trying to restore the back ups of the live server to the ...
1
vote
0answers
18 views

Unable to remove app from SharePoint 2013 site

I've seen this problem in several places in our dev and test implementation of SharePoint 2013. Especially in sites where there has been a lot of testing where people uninstall and install apps. The ...
0
votes
0answers
12 views

Get webpart properties from previous version of webpart page

I am facing a problem in SharePoint 2010. I am trying to get webpart properties from previously published version of page using powershell script. e.g. If a page is checked-in and has version 5.2. I ...
0
votes
0answers
18 views

Power shell script to get custom site columns and content types

We are planning for migrating from sharepoint 2010 - 2013 and we would like to export all custom site columns and content types in a .csv file. Also we would like to know which sites are using these ...
0
votes
1answer
40 views

power shell script to find a particular string

I have a choice field of type radio button. When the user selects the radio button I want to change the image depending up on the selected value. Below is the screen shot for the same Now when the ...
0
votes
0answers
20 views

Possibility to initialize Personal documents without forcing user to use portal

We create an Office 365 user programmatically via Powershell API, and then access corresponding Office 365 Sharepoint libraries using CSOM via .NET. We were able to do all that, except Personal ...
0
votes
1answer
43 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
23 views

Mail server settings not changing

Having a strange issue with SP 2010 Foundation. In central admin we have an outgoing mail server set But in powershell if you call (get-spwebapplication)[1] | ...
0
votes
0answers
44 views

Deploying CSS/Images/MasterPage with PowerShell

I have a Visual Studio project that I want to use to deploy a few CSS files, images and a master page to a SharePoint 2010 site that I have (the site will be pretty basic, simple BI type site with ...
0
votes
1answer
36 views

How do I use the object model to update quota values?

Reading this doc I'm confused by the following paragraph: If you change the values for a quota template, those changes apply only to new site collections to which you apply the template. ...
1
vote
1answer
65 views

How to give permission to specific users to list item level using PowerShell

I have tried using the below to add specific user to items but it keep getting error. For now I'm just trying to add permission to specific item but I would be changing the code to look at a column of ...
0
votes
0answers
72 views

Removing permissions from a user throwing exception - PowerShell

I was trying to remove Read permission to all sub-sites for a particular user. Following is the code that I tried so far - $site = Get-SPSite "http://pc152637/" foreach ($web in $site.AllWebs){ ...
0
votes
0answers
40 views

Make permissions read only for existing users of all sub-sites under a site

How to make permissions read only for existing users of all sub-sites under a site using power shell script? Other permissions like Full control, Contribute must be removed for the users.
0
votes
0answers
123 views

Help in updating multiple person field via powershell - Only updates one user

Im trying to update multiple person field but it only updates one person not multiple users.ONLY THE LAST ONE As you can see below i'm picking up display name from a field "Contract Viewer" which has ...
0
votes
0answers
51 views

Having problems attaching files to multiple items using powershell

Im having issues attaching files to multiple items using powershell. With one item it works. my snipet code below Thanks #When i run the script and having to pass one item it works but not ...
0
votes
1answer
258 views

Error creating SPSite using powershell

I am trying to create a web application "http://Intranet" and a site collection "http://Intranet" on SharePoint 2013 foundation farm. Here is my code $sp = New-SPAuthenticationProvider $web = ...
4
votes
1answer
105 views

Unable to delete timer jobs

I have a few timer jobs which I cannot delete. Using Get-SPTimerJob I am able to find the jobs and the GUIDS, but when I try to delete them I receive the following error: PS C:\Windows\system32> ...
0
votes
0answers
53 views

Any example on .AddDependentLookup with power shell for a look up field

Here is the code which I have tried using Add dependent lookup. But gives an error. any idea what's wrong? Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $url = ...
0
votes
0answers
232 views

How can i set/update Person Field(person/group field) via powershell

I have a column(it has a display name e.g John Shane) and I would like to use that to set/update an empty person field. Why I need this is because this list was migrated from sharepoint 2010 to ...
0
votes
1answer
1k views

updating/setting multiple values in lookup field through powershell

I'm trying to set multiple values to lookup column. I can get it to set one value but multiple values don't work see below [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = ...
1
vote
1answer
609 views

updating multivalues lookup column using PowerShell in SharePoint 2013

I have a multi values lookup column. I'm trying to update another column on another list from a lookup column. So let say I have values in a lookup column like so: 1;#Open 2;#Close 3;#Closed I want ...
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 ...
3
votes
1answer
93 views

Powershell Command builder

I am trying make a c# application which runs sharepoint cmdlets in management shell 2010. I have tried below code: protected void ExecuteCode_Click(object sender, EventArgs e) { ...
0
votes
1answer
42 views

Unable to remove site collection: Operation failed due to an error in Identity Mangement

I've restored a site collection to a different SharePoint farm. Now i am trying to delete the site collection: Using Powershell: Remove-SPSite http://farm/sites/Site_Collection Error: ...
0
votes
0answers
38 views

Is it possible to restore a site collection using Import-SPWeb [duplicate]

I've exported a Site Collection from a content database using Backup and Restore > Recover data from an unattached content database: Site Collection: http://abc/sites/BS Site: No Selection List: No ...
2
votes
1answer
498 views

using powershell script update the page name in sharepoint 2013

I wan to change the page name with Power shell script. When I had run the script I was given an spexception error: Exception calling "CheckOut" with "0" argument(s): "The URL ...
1
vote
1answer
147 views

how to get back old modified user name and date in Sharepoint 2010 document library?

Is is possible to revert sharepoint back with old modified user and modified date information? Even restoring version history changes modified user and date. For ex: my file in sharepoint 2010 ...
0
votes
1answer
58 views

configure claims authentication in Sharepoint Which has configurd in 2 different servers

I am trying to implement claims based authentication in SharePoint which is configured in 2 different servers, previously it was in one server and it worked fine with a custom STS(.net mvc ...
0
votes
1answer
874 views

Upload file to SharePoint Document library using powershell

I want to upload the same file to multiple site collection with the same hierarchy in all the site collection using powershell and the with functionality auto checkin/checkout. I have able to upload ...
1
vote
3answers
3k views

Export all the columns from Sharepoint list via Powershell

While exporting the data from Sharepoint via Powershell into a txt/csv file, I started to think, is there a way to choose all of the columns than writing all of the columns down to the code? because ...
1
vote
1answer
561 views

Undo checkout with PowerShell

I'm trying to undo a checkout with PowerShell but the function name doesn't seem to be recognized. Here is the code that I used. $dList = [Microsoft.Sharepoint.SPDocumentLibrary]$list ...
1
vote
1answer
884 views

SP 2010 Timer JOB not appearing in the Timer Job definitions under CA

I'm having a issue with One of my custom develop timer Jobs on SP2010 Farm.? Timer Job is not appearing in the Timer Job definitions under CA , Operations Tab This timer Job is target scope on web ...
0
votes
2answers
778 views

Trouble using PowerShell cmdlet

I try and run this Script using Powershell ISC run as Admin: #Site URL $web = Get-SPWeb "http://cgprojects/sites/tfs"; $web.AllowUnsafeUpdates = $true; #List Name $list = ...
0
votes
1answer
238 views

How can I access/set stsadm properties from code?

I'm trying to set the ChangeLogRetentionPeriod stsadm property from code, which is normally set from the SP powershell. What is the best way to go about setting this property from code? Background: ...
2
votes
1answer
103 views

RoleAssigments are being assigned by default to all new pages

I am pretty new to SharePoint, so please let me know if there is some more info or clarification required. I am creating a webapplication with certain SP groups, libraries and pages in that order by ...
2
votes
1answer
303 views

Error while running the Powershell script

I want to run the following script but getting the error "Unable to find type [Microsoft.Office.Server.UserProfiles.PropertyConstants]" #Add SharePoint PowerShell SnapIn if not already added if ...
1
vote
1answer
365 views

Upgrading Sharepoint 2010 CMP file to 2013

I have exported a team site from Sharepoint 2013 into a CMP file. However, when I try to run Import-SPWeb, I get the Version package is different. I am looking for anyway possible to upgrade this ...
0
votes
1answer
143 views

How can I create web application, site collection, and sites automatically with batch file and power shell

Is there any way that I can create a web application, site collection and sites using poweshell and batch file automatically? So, User has to click on executable batch file which will create the web ...
4
votes
1answer
282 views

Is VS 2010 needed to build a SharePoint 2010 project in Powershell?

Can you build a SharePoint Project without Visual Studio 2010/2012 being installed on the machine you are trying build it on using PowerShell? I have a PowerShell script the is working great. It ...
1
vote
1answer
486 views

How to use Power Shell cmdlets with batch file?

I have bit interesting requirements. My client want to develop the Sharepoint 2010 administration UI from Java application. So I suggest him to user Sharepoint web services. As we all know its good to ...
1
vote
2answers
279 views

PowerShell cleaner script work badly after New Year?

I have strange situation with PowerShell script which delete older Backup Files in SharePoint Backup Folder. I use two PowerShell script, first make Backup Farm and second check Folder with Backup and ...
5
votes
1answer
578 views

What update I have to install in Foundation 2010 to run a backup that asks for version 4.1.13.0?

I'm trying to run a backup from a Sharepoint Server 2010 that runs a version 14.0.6101.5008: The version of my local Sharepoint Foundation 2010 server is 14.0.6114.5000: When I run the backup ...
4
votes
1answer
113 views

Application DLL replaced sometimes in 14 Hives feature folder

I deploy Infopath forms using powershell script. After deployment, dlls of my deployed application appears in 14 hives/feature/guidfeaturefolder After some modifications when i deploy again the same ...
1
vote
1answer
266 views

Search returning double results?

When a user searches on "http://intranet" with "All Sites", the user gets double results and the links are pointing to the same exact location/file/path. When the user searches on "http://intranet" ...
1
vote
1answer
262 views

Unable to add webpart to page from script, but successfull from command line using same code

I am writing a script that will allow us to build an entire SharePoint environment, add solutions and implement web parts on particular pages from scratch. Nearly the entire script works except the ...
1
vote
2answers
1k views

How to insert data into Managed Metadata field of any Document Set using PowerShell?

I am creating a Document Set for a library using powershell and that document set contains some mandatory managed metadata fields. I am able to create document set but how can I insert data into those ...