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 ...
0
votes
1answer
13 views
Is there a powershell command to wait for the App uninstall job?
I have the following script to update my SharePoint app with the latest version but it always fails with the error:
Install-SPApp : An instance of this App already exists at the
specified
when ...
0
votes
1answer
20 views
Restore from Production to Development
I have two different servers with Sharepoint 2010 standard edition setup. I have two different SQL database servers(DEV_Content and PROD_Content) for these two environments. I would like to create ...
0
votes
0answers
14 views
Can't create User Profile AD mapping using PowerShell in 2013
Using PowerShell, I want to add properties to the user profile in 2013 and map those properties to be synchronized with Active Directory.
I can create the properties fine as well as the ...
1
vote
0answers
21 views
SPSiteDataQuery for Documents using caml query
I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance.
I am trying to do this using an ...
1
vote
1answer
26 views
How to embed javascript code in a page using Powershell?
I have a powershell script that creates article pages in a publishing portal site collection. As part of that script I insert the content for each page by setting the value of the $item["Page ...
0
votes
0answers
15 views
Problems after import-spweb
I have used export-spweb and import-spweb to move multiple sites around in SP2010.
After import-spweb I notice that some libraries are really messed up. When I try to add an item to the announcements ...
0
votes
1answer
24 views
SharePoint 2013 - Edit TopNavigationBar
I want to edit an item in the TopNavigationBar with a PowerShell script.
I´m using a Windows Server 2008 R2 (English) with SharePoint 2013 (German).
My PowerShell script says that the Title is ...
1
vote
0answers
8 views
SP2010 - Scopes.GetDisplayGroup error, page visit required first?
I'm having a very strange problem with the Scopes.GetDisplayGroup() method returning a "Specified cast is not valid" error.
This is a cut-down version of the code I've been using:
$SPWebApp = ...
0
votes
0answers
10 views
Powershell-registered Managed Accounts not showing up in Central Admin
I'm trying to set up a work laptop for SharePoint development. To get it up and running quickly, I used my corporate domain user account as the first managed account. Now, I want to use a local ...
0
votes
1answer
23 views
Every SPFile is null in a document library using PowerShell?
What the crap is this about?
I whipped up a fairly simple run-once and discard PowerShell script to iterate through all of the files in a list and make a simple change. The problem is every SPFile I ...
1
vote
0answers
13 views
How create an index based on an internal list field?
I have a huge library and its documents don't have any metadata. They have only the name (FileLeafRef) filled (and FileRef -> file's path automatically filled).
I'm trying to update their metadata ...
0
votes
1answer
38 views
Updating a username in a List - false positive
In my portal I have a list with a "person" field that contains usernames.
I am using a powershell script to update this field.
You can see my function below. I've already loaded the list, and am ...
0
votes
2answers
44 views
Upload a Web part to All Site Collections
We have designed a custom Content editor web part and we exported the dwp file and added it in an site collection (Web part gallery ) and the web part is working fine when we add in any sub site in ...
1
vote
1answer
25 views
Using PowerShell, how can I compare User Profile Properties to a list
For this example, I have a list of first names
Fred
Mark
Tony
Alisa
Todd
Emily
I would like to compare them to profiles in the user profile service
Fred
Greg
Tony
Alisa
John
And get output ...
0
votes
1answer
37 views
Export And Import of Subsites Using PowerShell Script
I am using SharePoint 2013.
The problem is as follows:
There are two Site Collections in a single Web Application. With the following Paths:
/sites/Site1/Subsite1/ & /sites/Site2/Subsite2
Using ...