0
votes
1answer
21 views

Automatic Logout the User after “X” time in Sharepoint 2013

I need to logout the user in SharePoint 2013 after x amount of inactive time. I tried these options: Modify the node with the timeout attribute. Run some PowerShell code to modify the ...
0
votes
0answers
53 views

Upload to SP 2013 Document Library with metadata, Powershell problem

As a Proof of Content Assignment i was asked to implement a SharePoint 2013 Document Library to a Local Program. I'm relatively new to Power-shell and have tried to upload .docx files and succeeded. ...
0
votes
1answer
13 views

Restore SharePoint 2010 Site - Different schema version

I have a backup of a SharePoint site (14.0.6114.xxxx December 2011 CU??) and I tried to restore it to a different farm with version 14.0.6106.xxxx April 2011 CU???. As expected I got the schema ...
2
votes
0answers
53 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 ...
0
votes
0answers
23 views

Enumerate BCS Object Permissions

Hi I am looking for a method via PowerShell to enumerate the various ETC's that have been created to determine who currently has access. I realize that I can do this via the front end, however I need ...
0
votes
3answers
338 views

SharePoint 2010: What is the difference between backing up a Site Collection and exporting a Site Collection?

Lectori salutem, I am reading into backup and restore operations in SharePoint 2010. I have noticed that in Central Administration > Backup and Restore > Granular Backup there is the possibility to ...
0
votes
1answer
84 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 ...
2
votes
2answers
202 views

Powershell Enumerate through all site collections but not include one specific site collection

I am partially not even sure how to Google this question because whatever I type never seems to bring back any relevant search results. I currently have a working script that is set to go through and ...
1
vote
3answers
348 views

How can I change Document library permissions for all site collections using powershell?

Total Powershell newbie here, but I have managed to write a couple scripts so far that have been working. We are using 2010 Enterprise edition, and I have been tasked with creating a script that will ...
0
votes
2answers
192 views

powershell - The user does not exist or is not unique

When I try to add user/group using SharePoint OM or Power Shell script I'm getting the following error. In this example S-9-9044-V is an AD Group. The user does not exist or is not unique $web ...
4
votes
1answer
99 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 ...
2
votes
1answer
82 views

Warm-Up Script not writing to log file

I have been working on implementing the warm-up script from Ingo Karstein Warm-Up Script The script runs without any issues, but the log file (.txt) is not being generated as expected. I have the ...
2
votes
1answer
273 views

How to import a library from Export-SPWeb outputs?

I am trying to understand how to restore an arbitrary library to an arbitrary site in an arbitary site collection - inspired by some future user announcing he accidentally deleted a document from the ...
1
vote
1answer
47 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
0answers
172 views

Export the Web Analytics in SharePoint 2010 using Powershel

Is there any way to export the Web Analytics in SharePoint 2010 using Powershell? The following link shows an example of the data I would like to retrieve, both on (Web collection and site ...
1
vote
1answer
116 views

SharePoint list updation using powershell script from sql trigger

I need to update a SharePoint list whenever a datachange happens in the sql cuastom table. I am trying achieve this by writting a trigger in the sqltable and calling PowerShell script to update list ...
1
vote
1answer
126 views

Exception Error When Running Basic PowerShell Script in SharePoint 2010

I have been doing some testing in our labs for some new features we are working on. I purposely created some orphaned sites using a scenario I found in a blog and I ran into a strange side effect. ...
1
vote
1answer
82 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 ...
0
votes
1answer
359 views

Powershell error while iterating through sites quicklaunch and deleting a specific node

Hi I've put this question up here : http://stackoverflow.com/questions/13130785/delete-navigation-node-with-powershell-from-sharepoint-quicklaunch-in-all-sites but no answer yet so posting here too. ...
0
votes
3answers
163 views

cannot find User after runing new-spuser

I have used following PS Script to add a user to a group on a web. I didn't any error but I cannot find the user in the group or anywhere else. Thanks for your advice. New-SPUser "wm\test2" -Web ...
1
vote
2answers
70 views

Error while updating SiteLogoUrl with Powershell

I am trying to update the Site Logo Url for all the sites in my web application with powershell. The script executes correctly in my dev environment but fails to execute in production and gives an ...
0
votes
1answer
245 views

Why are my list.view.query changes not being committed?

I'm using powershell to try to change the query for every view called either 'View Title 1' or 'View Title 2' in every list called 'News' in every subsite. The script doesn't throw any errors but the ...
0
votes
1answer
756 views

Sharepoint 2010 404 Error after Renaming Subsite

We are still in the process of rolling out SharePoint, but we’ve got the server up and running and the primary site is working. We set it up as sharepoint.mydomain.com. I then created a new site ...
0
votes
2answers
453 views

An empty pipe element is not allowed - the Powershell I copied fails

I am just trying to fix something to get my BCS external list created. All indications are that the server has too many rows for BCS so here is what I put into the Powershell IDE running as ...
1
vote
1answer
510 views

power shell set web application property bag doesn't work

i have this power shell script function SetPropertyBag ($webAppUrl, $key, $value) { $spwebApp=Get-SPWebApplication -Identity $webAppUrl Write $spwebApp if($spwebApp.Properties.ContainsKey($key) ...
0
votes
0answers
263 views

Unable to create inheriting content types - A duplicate content type was found

I'm trying to create several content types via code, and they are all inheriting from a custom content type which was previously deployed. Here's the weird part, i can deploy once from Visual studio ...
0
votes
0answers
23 views

Methods to obtain a list/map of permissions throughout the web application?

Are there any scripts that list out the permissions for all the site collections>>sites>>lists and libraries within a web application? My objective is to obtain a list showing inherited as well as ...
2
votes
3answers
1k views

PowerShell and the client object model: “The collection has not been initialized”

I'm trying to grant a user permission to a SharePoint site using PowerShell and the client object model. The code I'm using is as follows: # Setup context $context=New-Object ...
1
vote
2answers
518 views

Modify document library view on all subsites in a site collection

I have close to 1000 subsites in a site collection. I would like to remove the country column from the defualt view in each site with one power shell script. This is how I would do it for one site, ...
0
votes
1answer
318 views

Deleting all alerts on a sharepoint list using powershell?

I understand alerts will only be show to those who created them. However I am on a test site and would like to rid the list of all alerts. Is there a way to do this programatically. I can seem to ...
0
votes
1answer
826 views

Get last 10 search crawl logs sharepoint powershell

I want to get last few crawl log details of all of my content sources through powershell. Basically, its the search service application -> crawl logs -> crawl history -> for any content source I ...
3
votes
3answers
239 views

SharePoint related PowerShell tutorials

I am really in interesting PowerShell for SharePoint administration. Please help me with some books or sources, tutotials
0
votes
0answers
161 views

best practice to move files from one farm to another?

In our project we want to move our code changes from DEV environment to other environments (QA / PROD). Code changes include: JS / CSS / XSLT / Images WSP packages for C# code (custom webparts) Web ...
3
votes
1answer
154 views

Enumerating Features in a WSP or Deployed Solution using PowerShell

I am creating a build script that will automatically create a Test Site, Deploy all wsp to that site and activate all the features. The problem I have is how do I enumerate the feature Names or GUID's ...
4
votes
4answers
2k views

Update-SPSolution does not Deploy Solution

I am trying to deploy or update a WSP solution to SharePoint in a script using Update-SPSolution. The problem I have is that if this is the initial install I need to use Add-SPSolution and then ...
4
votes
1answer
2k views

Remove a single user from all site collections in a web application using powershell

Is there a way I can choose to remove a single user from all site collections within a single web application using powershell. There are number of user profiles whose domain account has been blocked ...
0
votes
2answers
194 views

How to update values in a list for everyone's personalizedView?

We have a custom list that has a personalized view of important links for each of our employees. ListName is "Important Links". Column names are: URL, OwningUser, etc. For example, CNN could be one ...
2
votes
3answers
533 views

How do I set the OSearch14 Service Account via PowerShell

I'm in the process of Scripting a deployment of SharePoint 2010 and FAST. Normally to set the Service Account of a SharePoint service one would use the ProcessIdentity property, like so: $procId = ...
0
votes
1answer
478 views

How to add file to a SharePoint Library that is in a subsite

I can successfully connect to the "Shared Documents" library at root site and add a file to it. What I can't do is connect to a library that is a few layers down so I can add the file: The Root Site ...
3
votes
2answers
614 views

PowerShell - Create Search Service App Pools (All 3)

How many App Pools are created when you create the Search Service Application? How can I create all the Search Service Application App Pools using PowerShell and give them all unique names? I've ...
0
votes
2answers
300 views

sharepoint 2010 custom wiki library

I am trying below powershell script for change wiki content Add-PSSnapin microsoft.sharepoint.powershell -ea silentlycontinue $web = Get-SPWeb "http://dooku/enterprisewiki" $list = ...
2
votes
2answers
1k 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
3answers
548 views

Is there a PowerShell CmdLet or SharePoint CmdLet that allows reading a Content List?

My eventual goal is to be able to check on new items added to a Content List but I was trying to figure out if there was a CmdLet that could let me access the Content List in a SharePoint Site. I ...
3
votes
1answer
261 views

How to create a content source of type “web” with the option “Only crawl within the server of each start address” via powershell

I have a requirement to create a content source of type "web" with the option "Only crawl within the server of each start address" via powershell. I am trying the below command : ...
5
votes
1answer
315 views

SharePoint 2010 Documentor

Is there already existing a tool , I think "documentor" can be his name for Sharepoint 2010 that can output a form of documentation with a description of all db, web application , sites, sub sites , ...
1
vote
1answer
622 views

Migrating MOSS 2007 to SharePoint 2010 giving the error “Invalid Object Name sites”

I am migrating SharePoint 2007 publishing site to SharePoint 2010. These are the steps I have followed 1. Backup the content database from the SP2007 machine. 2. Restore that database in sql server ...
0
votes
1answer
48 views

Searching Site Farm / Collections for instance of URL

I am looking into a way to search for a specific URL within SharePoint. I have seen the solution that searches with PowerShell script for searching lists for specific links? and ...
0
votes
1answer
995 views

Turn on anonymous access in SharePoint2010 web application using PowerShell

I try to use the Set-SPWebApplication to turn on anonymous access in SharePoint2010 web application using PowerShell, however it give me the following error (see the screenshot here): Add SharePoint ...