Tagged Questions
2
votes
1answer
44 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
55 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 ...
0
votes
0answers
78 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 tp run Import-SPWeb, I get the Version package is different. I am looking for anyway possible to upgrade this cmp ...
0
votes
1answer
93 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
107 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
165 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
150 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
107 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 ...
3
votes
0answers
85 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
50 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
89 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
1answer
720 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 ...
1
vote
2answers
4k views
How to add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010
How I can add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010?
I try to run PowerShell script to Backup Farm on Windows Server 2008 R2 without Sharepoint but while I ...
2
votes
1answer
235 views
Problem with PowerShell script in Tasks Sheduler Windows Server 2008 R2 - SharePoint Shell Access?
I have a problem with PowerShell script in Tasks Sheduler in Windows Server 2008 R2. I try to run Sheduler Tasks which run batch file which run PowerShell script to Backup Farm and while I choose "Run ...
1
vote
1answer
378 views
How to modify sealed columns (Powershell)?
I'm trying to build and customize a group calendar list created with "Group work site" template. I have stumbled upon some sealed columns, like "All day event". I need to modify them, therefore I need ...
0
votes
1answer
33 views
Issue in creating New_SPProfileapplication
I am Trying to create the "New SP Profile Service Application" using Powershell command
New-SPProfileServiceApplication -Name SharedServices1 –ApplicationPool "SharePoint Web Services" –ProfileDBName ...
0
votes
1answer
800 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
1answer
396 views
Hide a feature in Site Collection Administration => Features area
I have a feature with webparts that needs to be activated using powershell. I need a way to either hide the feature on the Site Collection Administration => Features (under Site Settings) or to ...
0
votes
1answer
424 views
Powershell and CredSSP in Production Environments
I try deploy Sharepoint WSP projects using PowerShell Remoting.
See PowerShell Remoting Sharepoint 2010 Error
Solution is configure CredSSP for Sharepoint.
But Microsoft says:
Caution: Credential ...
0
votes
0answers
71 views
Update Managed Data Source Stored Credentials with Powershell?
I have over 200 sites and I am using SSRS reporting. Each site has 20 reports. When the credentials change this is an obvious headache. Is there a powershell script to update the username/password of ...
0
votes
0answers
195 views
Stop Powershell Script asociated with list sharepoint
I created the next script with powershell and it updates all the items in a list:
Add-PSSnapin "Microsoft.Sharepoint.Powershell"
$site = Get-SPWeb -identity "http://mywebsite"
$list = ...
0
votes
1answer
240 views
get custom fields only from a sharepoint list
Can anyone tell me how can I get the custom fields from a sharepoint list? I don't want to get all the fields like hidden, just the custom ones or the ones in the default view. The end result will be ...
0
votes
1answer
119 views
how to set webapplication.RightsMask via PowerShell
trying to change one of the rights assigned in RightsMask with Powershell on a SharePoint 2010 server.
$webApp=get-spwebapplication http://myWeb
$webApp.RightsMask
I want to be able to enable/disable ...
0
votes
1answer
1k views
delete field (column) from a list powershell, error Collection has been modified
following is my code:
foreach($field in $list.Fields)
{
if($field.StaticName -eq "temp1" -or $field.StaticName -eq "temp2")
{
if($field.Id -ne $depId)
{
...
2
votes
1answer
4k views
Permissions error setting up SharePoint 2010 PowerShell account privileges
SharePoint Foundation 2010 SP1 on Windows Server 2008 R2 Std SP1 (Domain Controller) in a simple farm with a single SQL Server 2008 SP1/Windows Server 2008 Std SP2 backend
I realise installing SP on ...
1
vote
2answers
319 views
Get all the machines in a SharePoint farm
I'm writing a really big script which will get a lot of info from my farm. I'd like to make it work dynamically, so I would need to:
Get all the database servers in the SharePoint farm
Get all the ...
1
vote
1answer
660 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 ...
2
votes
2answers
1k views
Restoring SPSite not working with different versions
I'm having issues with restoring my .bak files to my own sharepoint environment due to version difference.
My version is currently:
Sharepoint Server with Enterprise Client Access License
Ms ...
0
votes
4answers
689 views
Stopping Powershell script execution on error in SharePoint 2010
I have SharePoint Powershell Script in .ps1 format and it includes 4 commands.
When I run this script, it does not stop if any error occurs in middle.
For example, if error occurs at 2nd command it ...
0
votes
0answers
117 views
Problem with a WCF 3.5 workflow, hosted in IIS, wich runs a Powershell that creates a SharePoint Site Collection
I'm having a problem running a powershell script that creates a new SharePoint site collection.
I have a WCF service hosted in IIS, which has a WCF 3.5 workflow. This workflow executes a Powershell ...
2
votes
1answer
1k views
Problem retracting a Sharepoint 2010 Foundation solution
I am retracting a globally deployed solution via Central Administration. Here is the info
Name: familycareprl.wsp
Type: Core Solution
Contains Web Application Resource: No
Contains Global ...
0
votes
2answers
2k views
Difference between backup-SPFarm and Backup-SPConfigurationDatabase in sharepoint foundation 2010
I want to know difference between backup-SPFarm and Backup-SPConfigurationDatabase powershell command.
I know backup-SPFarm is used to take backup of whole farm then why to use ...


