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

3
votes
0answers
83 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 ...
2
votes
0answers
15 views

check for password protected office documents

I have a need to check through a site collection and find all password protected office documents. My organisation has decided on a policy where password protection on documents will no longer be ...
2
votes
0answers
29 views

Update Custom Forms with Powershell

I'm trying to update custom forms of SharePoint lists in a large amount of SharePoint 2010 subsites with powershell. I'm not quite sure what the correct approach is. The form itself can be found as ...
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 ...
2
votes
0answers
196 views

Filling a External Data field (BCS) in a list trough Powershell

I have a list of which one of the columns is of the "External Data" type, linked to a BCS service. We called this column "Organisation", and when I check the generated fields in powershell (with ...
1
vote
0answers
112 views

Move-SPUser : pixels

Migrating users from one domain to another, I get this error on a couple of users. The migration still seems to occur. Move-SPUser : pixels At D:\UserMigration\MigrateUsers.ps1:10 char:28 + ...
1
vote
0answers
76 views

How do you Import a list item from a .cmp file using powershell?

I have implemented the code located at this link to export and import a list to a cmp file using powershell and the SPDeployment functions. While trying to better understand this code I came to the ...
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
0answers
205 views

Remote PowerShell Script

I have server 1 (application that the script) (dax-sp) and server 2 (sharepoint) (sp-sp) Script on server 1 (ScriptStart.ps1) Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 2000 $pwd = ...
1
vote
0answers
321 views

Why is my SPD 2010 workflow running twice?

I've got a support case for a client, and they have a super simple workflow on a list. It simply sends an email to a user from a person field, whenever an item is added to the list. The client ...
1
vote
0answers
350 views

Getting Null returned from taxonomy field in PowerShell?

I am trying to update a metadata field when adding an item to document library. All the other columns are updating. The error is on this line and basically $taxfield is returning null. $taxField = ...
1
vote
0answers
42 views

PowerShell error when comparing the fields titles

I've wrote a simple script which will loop through all the webs in all the site collections store all the field id's into the hashtable next with their display names. Later interating throught lists ...
1
vote
0answers
171 views

Changing permission level of a document from contribute to read for members

I need a help .... with a powershell script. I have a document and i need to modify the existing permission level for members from 'contribute' to 'read'. Anyone has any idea how to do that? In ...
1
vote
0answers
39 views

Content Replacement

I have a problem with content deployment that I need to fix using a script to replace content throughout the site. SharePoint handles relative urls already but editors have to use an internal url ...
1
vote
0answers
195 views

New-SPProjectWebInstance error

One part of my now rather large install&configure script for SharePoint is giving me much grief. If i type the command in the shell it works perfect, saying something about "provisioning added to ...
1
vote
0answers
540 views

Getting the following error: Another topology activation is in progress

I am using Search Server Express 2010. I am creating Search application using PowerShell scripts. After creating crawl and query components, i am activating them. First activating crawl component ...
0
votes
0answers
7 views

how to change Catalog settings of a list by powershell

I would like to change catalog settings of Pages list to make it akt like a Catalog by using powershell. It includes adding Title as "Catalog Item URL Fields" and choosing a Term Set for "Navigation ...
0
votes
0answers
20 views

Get-SPSite : There was no endpoint listening at securitytoken.svc

Get-SPSite : There was no endpoint listening at http://mydomain.com:32843/SecurityTokenServiceApplication/securitytoken.svc that could accept the message. This is often caused by an incorrect ...
0
votes
0answers
9 views

Activating features like FeatureManifest order

I am deploying a solution using powershell. When I activate the features of the solution some of them have dependencies and I get an error when using Enable-SPFeature command. In the package of my ...
0
votes
0answers
22 views

One or more field types are not installed properly, how to check in which field is it failing?

I am getting this error in a timer job that I did not develop. Error: One or more field types are not installed properly. Go to the list settings page to delete these fields. ...
0
votes
0answers
30 views

Powershell: Move up arrow in user profile property doesn't work

I have used a PS script to create a User Profile Property within a User Profile Section and setting a DisplayOrder in that section. The Script works as expected, the problem is that when I click on ...
0
votes
0answers
54 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
0answers
16 views

Sharepoint 2010 upgrade failed

The health analyzer needed a "Product/path installation or server upgrade required" so I ran the powershell script psconfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd ...
0
votes
0answers
43 views

Indexed columns and the change of locale (SharePoint 2010)

If I change the locale under regional settings in SharePoint 2010, I get an exception like this: The column "column1" in the list or library "list1" has been marked for indexing. Please turn off ...
0
votes
0answers
67 views

Workflow history no longer accessible-object reference error WrkStat page

The workflow history was >6m records, so I have redirected all workflows to rite to other custom history logs while running a job to purge 1k records every 15 minutes. When I attempt to check the ...
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
0answers
107 views

Fails to create publishing site collection in scripted web application

I have a problem on my SharePoint 2013 farm. I have a script to create web applications in my farm, but when I do I cant create publishing site collections within that web application. So, the ...
0
votes
0answers
68 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
0answers
122 views

New-SPSite gives ERROR: Failed to OpenThreadToken, LastError=1008 in Timer job

I have a timer job that is running some powershell. The script creates a content database and then attempts to create a site collection. If run from powershell prompt the script works fine. If I ...
0
votes
0answers
86 views

List View Webpart is not getting added while activating feature using powershell

I created a feature and on activation of it I am trying to add list view webpart. Using powershell command activating feature and it gets activated but List View Web part it is not getting added on to ...
0
votes
0answers
97 views

Backup-SPFarm not respecting ErrorActionPreference

I'm trying to setup a script in Jenkins to backup my SharePoint server. The problem I'm encountering is that it Backup-SPFarm is not correctly returning an error. So my $ErrorActionPreference is being ...
0
votes
0answers
28 views

ReSynced Users redirecting to MySites

A while ago, we disabled MySites on our SP2010 farm, so when you clicked on a user's name you viewed their profile page instead of their MySite. We also had several users who had incomplete ...
0
votes
0answers
108 views

UpdateFarmCredentials: PowerShell command line error?

stsadm –o updatefarmcredentials –userlogin "[DOMAIN\USERNAME]" –password "[PASSWORD]" I've tried to run the above command with the " character and without, neither works. The error is 'Command line ...
0
votes
0answers
114 views

Multiple links in Quick Launch puzzle and delete a specific link in quick launch with powershell

For some reason when a page is created, sometimes the entire site crashes. I'm not sure why this is happening. We have publishing switched on. What I found was that the page has multiple entries in ...
0
votes
0answers
124 views

UPS Sync started from powershell script / web service

I have a web service that is kicked off from a workflow. The web service runs a powershell script that kicks off the User Profile Synchronization job. The powershell script works perfectly if I run ...
0
votes
0answers
155 views

Edit UserProfileProperties in Sharepoint 2010 using PowerShell

As I mentioned above I want to modify given UserProfileProperties. http://www.c-sharpcorner.com/uploadfile/anavijai/modify-user-profile-properties-in-sharepoint-2010-using-powershell/ This is what I ...
0
votes
0answers
161 views

EnsureUser returns none existing users using ldapprovider

I'm writing a PowerShell script that adds users to a SharePoint site. To check if the user exists I'm calling the EnsureUser. But my issue is that the when calling this method with a ldap membership ...
0
votes
0answers
51 views

Update KPI Lists Script

I have about 400 KPI lists, and an error in one of the KPIs on each list. Is there a way I can update all of the lists automatically? I cannot use .NET, but a shell script is within an acceptable ...
0
votes
0answers
86 views

Automated PowerShell task cant create list items

I have a powershell script that gathers some data and looks to upload that data to SharePoint. Im uploading the data via 2 methods, as an excel spreadsheet, and as a list item in a custom list. When ...
0
votes
0answers
83 views

Problem with adding webparts with limitedWebManager.ImportWebPart PowerShell

When creating a web in Visual Studio it generates a web part where the namespace and the class name is the same. I'm thinking that this is giving me a problem with the limitedWebManager.ImportWebPart ...
0
votes
0answers
373 views

Workflow failed to run after pause - SP2010

I am trying to fix a paused workflow issue following this KB Article from Microsoft. http://support.microsoft.com/kb/2674684 However, when I try to run the powershell command I get this error as ...
0
votes
0answers
119 views

appying permissions using powershell on Project Server 2010

We have a PWA that has 100 project sites, each with broken permissions, on the root site there is a sharepoint group with 4 users, named "Admins (Microsoft Project Server)". Some how the Admins group ...
0
votes
0answers
94 views

Finding which site collection has output cache enabled through powershell

I have a SharePoint 2010 production farm where a Web Application running on port 90 always ends up with heavy memory usage , even during non-peak hours. My guess is some site has output cache enabled ...
0
votes
0answers
179 views

How do you prevent “Disable-SPFeature : Cannot complete this action. Please try again.” errors?

When I try to run this cmdlet, I receive the following errors (only sometimes): Disabling feature: SPFeatureDefinition Name=FeatureDefinition/b89234a6-xxxx-xxxx-xxxx-200dd03e1fdd ( ...
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 ...
0
votes
0answers
367 views

PowerShell Remoting Sharepoint 2010 Error

I use PS Remoting 2.0 for deploy WSP projects in Sharepoint 2010 in Windows 2008 server (named DESMOSSW03). My client is Windows 7 64 bits (named MyUser). I use this credentials ...
0
votes
0answers
70 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
114 views

Gives Error while assing permissions to group

New-Object : Cannot find type [Microsoft.Sharepoint.SPRoleAssignment]: make sure the assembly containing this type is loaded. Note: i have added the snap-in as follows Add-PSSnapin ...
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 = ...

1 2 3