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
1answer
53 views

PassPhrase is not valid in SharePoint 2013. Powershell not connecting to SharePoint farm to reset passphrase

I have removed Project server instance from my SharePoint 2013 farm. After that when I tried to run the configuration wizard, I found that the old passphrase is not valid. When I open powershell, the ...
3
votes
1answer
90 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) { ...
3
votes
1answer
302 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
1answer
51 views

Need to recursively parse SharePoint 2010 sites for JavaScript tags and output URL path to a file

I have a site with approx. 300+ sites. The vast majority use JS and reference a jquery file that are either in the parent folder as the aspx file or site, or referencing a master jquery file in a ...
2
votes
1answer
253 views

Disable site collection health check rule

Is there anyway of disabling/bypassing a site collection health check rule. For example, I want to bypass Missing Site Templates rule when I upgrade a site collection in SP 2010 mode to SP 2013. For ...
2
votes
1answer
277 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
16 views

SP O365 uplaod big file via CSOM

Hi I try to upload large files (900 MB) to SP online (actually the OneDrive Business) but seems to follow SP style. Try this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
1
vote
1answer
18 views

Deploy wsp without logging to SP server

Can i deploy a wsp using powershell batch file without logging to the sp server ?
1
vote
1answer
21 views

Powershell GetFollowedCount returns 0

Attempting to use PowerShell to obtain some social metrics from our SharePoint farm. One metric I wanted to get was the average number of sites users are following. The following script runs without ...
1
vote
1answer
68 views

Script to update Sharepoint Online content type

I have a content type "TestContentType" with three columns: Document Type Category Sub-category This content type is used on 18 document libraries, in 3 site collections. The Category column ...
1
vote
1answer
53 views

Break Role Inheritence Problem

I used following script provided by Nadeem for breaking permission inheritance of folder. but for me, when I tested ,it doesn't break inheritance at all. it is just assigning new group to the ...
1
vote
1answer
73 views

PowerShell Metadata Navigational Menu of Simple Links from a Table stuck in Second Gear

Currently I have it working for 2 levels of simple links. Actually no links are in this version. I have been able to create a submenu but not a sub-sub-menu. I believe it has to do with the way I ...
1
vote
1answer
299 views

How do I add a lot of contenttype aliases to a new Content Organizer Rule using Powershell?

NOTE! This post is about adding MANY, BUT NOT ALL content types to your rule. If you simply need to create a rule for ALL content types, go straight to the bottom of this post. I'm creating a ...
0
votes
1answer
20 views

App Pool created with Powershell name appears as GUID in IIS

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below: New_SPServiceApplicationPool -Name "Default ...
0
votes
1answer
18 views

Why the workflow started date has a delay of 2 hours in powershell?

I am using sharepoint 2010. I have created a document library. On this document library I have added a workflow. I uploaded a new document to my library and started manual the workflow. I can see the ...
0
votes
1answer
17 views

Restoring backup to new environment. Error: Web application not found

I am trying to restore a backup of a site collection from my production enviroment to my dev enviroment using the following powershell script: Restore-SPSite http://abd.spdev.<domain> -Path ...
0
votes
1answer
30 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
1answer
21 views

Removing NewsFeed comments with Remove-SPSocialItemByDate throws SQLException

I am trying to remove all Mysite newsfeed comments via powershell in preparation for a new site release (getting debugging and test comments out, etc.)... I am using the Remove-SPSocialItemByDate ...
0
votes
1answer
22 views

Local farm is not accessible, cmdlets with featuredependencyid are not registered

So after moving all my databases to the new SQL server I run this on my SharePoint central admin box, http://technet.microsoft.com/en-us/library/cc512725(v=office.15).aspx#Man Everything goes through ...
0
votes
1answer
40 views

Getting the list name from url with PowerShell

I am trying to parse any given SharePoint URL and get back the site, web and list references using the code below. I would like to achieve this even if I provide the URL of an item. The code below ...
0
votes
1answer
24 views

Powershell command to change default search scope for a site collection

In my site collection search scope, there are 2 scopes 1. All Sites (default scope) 2. MyCustomScope (custom scope) I want to set "MyCustomScope" as default scope. Is it possible through powershell ...
0
votes
1answer
39 views

Unable to connect web parts using powershell

I am trying to connect a custom webpart (provider) to a ReportViewerWebPart (consumer) programmatically, using a Powershell script. I get the error message below when I execute the following line: ...
0
votes
1answer
31 views

Powershell code raising error while adding contribute permission on term group to everyone

Add-PSSnapin "microsoft.sharepoint.powershell" #Connect to the Metadata Service $taxSite = get-SPSite "CentralAdminURL" # Central Admin URL $taxonomySession = Get-SPTaxonomySession -site ...
0
votes
1answer
20 views

Can every settings in SharePoint 2013 solely managed by script?

Due to our company policy, I need to make sure our deployment can be processed solely in script (Powershell, SQL, DOS command). No UI interaction should be involved. I believe most of setting can be ...
0
votes
1answer
34 views

Determining Document Library to Upload Files PowerShell Script

I have a network folder that contains 50 documents. I need to upload the files to the specified SharePoint document library based on a csv filename and document library. CSV Example: filename1 ...
0
votes
1answer
25 views

Site Could not be Created in Site Collection

I tried to add a site in a site collection but unfortunately it isn't working. SharePoint allows me to add a site, but when I want to check the created site, no site exists at all. The procedures I ...
0
votes
1answer
90 views

Add Link TopNavigationBar to a publishing site by powershell

I have a site collection with some sites (Publishing theme). I need to add some links to the top navigation bar and the quick launch by Powershell. $web = Get-SPWeb "http://myurl" $newLink = ...
0
votes
1answer
22 views

SP2013 remove server cacheHostInfo null and no access to old server

I had a server, SHPprod, but it did not match the naming scheme that I am using, SHPprodWFE. I removed it from the farm using the config wizard. Renamed the computer to be SHPprodWFE and added it back ...
0
votes
1answer
29 views

Site Collection second-level

I am using SharePoint 2013, is it possible to create a Second-level site collection by Powershell? I mean, a Site Collection (not substite) child of another Site-Collection.
0
votes
1answer
55 views

Uncommitted changes on SPWeb object

In my simple Powershell script, I keep getting an error "Exception calling "ResetRoleInheritance" : There are uncommitted changes on the SPWEb Object, call SPWeb.Update() to commit the cahnges before ...
0
votes
1answer
218 views

How to set Navigation in Office 365 site using powershell?

I am creating some Global / Current navigations nodes on a SharePoint site (SharePoint 2010 in house site) by fetching them through a csv file. Below is the script: #Script to create Global/Current ...
0
votes
1answer
65 views

Saving Changes OPENXML with PowerShell

Just wondering if someone could point a SharePoint and Powershell newbie in the right direction. We have a problem where some legacy documents in our system have an attachedtemplate which references ...
0
votes
1answer
79 views

SharePoint security based on Active Directory security groups not work

Please help me. In the organization , we have deployed SharePoint 2013 , to control access to sites decided through security group Active Directory. Active Directory security groups are added to the ...
0
votes
1answer
109 views

Documents / Library missing after migrating My Site to the new Content Database

I've moved some My Sites to new content database with the powershell cmdlet Move-SPSite. However, after moving them, it appears documents were "lost" on some of them (most of sites is just fine). When ...
0
votes
1answer
29 views

Faster way of Downloading Metadata in CSV

we Have document library with 3lacs+ items. we have to download metadata of each file in a csv such as Modified date , modified By etc. I used powershell code for achieving this task but for some ...
0
votes
1answer
70 views

Error in restoring a sharepoint2013 site collection using powershell command

We have requirement to restore an existing site collection in share point 2013 to a new site in share point 2013 and for this we have taken back up of the old site collection using this power shell ...
0
votes
1answer
184 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 = ...
0
votes
1answer
34 views

Unattended execution of C# scripts

I'm a beginner designing automatizing tasks. I have 2 scripts in C# .These scripts generate two XML docs which are connected and synchronized with two native lists in a SharePoint Portal through ...
0
votes
1answer
208 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
0
votes
1answer
85 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. The one ...
0
votes
1answer
102 views

issues updating/setting multi value lookup columns via powershell

I have an issue updating multi values in a lookup field via powershell I can update a single value lookup field as below but can't get to update if its multi value. As stated below when I hardcode ...
0
votes
1answer
139 views

Creating a calculated column with replace in Powershell

I am trying to create a caluclated column through powershell script .Below is the Script Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
0
votes
1answer
82 views

SharePoint CAML/PowerShell Not Updating or Deleting Items

I am using Nessus XML RPC to update a SharePoint site. I can add items to a list, but cannot update or delete. No error is returned. Variables: $strSharePointSite = ...
0
votes
1answer
208 views

Running script with powershell of Sharepoint Server without connecting to the Sharepoint Server

I have a folder in Sharepoint Server. In the folder, there is a script(.ps1 file), that I can run with powershell. It works fine with powershell, if I run it when I'm in Sharepoint Server. But I ...
0
votes
1answer
29 views

How to create setup for Sharepoint 2010 web application

I have patch 1 until 3. To do the installation for each solution package may take a long time which is it is needed a long step. So, is there any solution or tools that I can simplify the ...
0
votes
1answer
47 views

How to retreive last 10 users who have logged in a site using Power shell script?

I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.
0
votes
1answer
254 views

SharePoint Error when I run PSConfig

I am getting the following error when I attempt to manually run PSConfig following an update on this server from the June/July 2012 CU to the April 2013 CU (this is from the logfile): 06/10/2013 ...
0
votes
1answer
233 views

how to change Catalog settings of a list by powershell

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

How to associate sharepoint 2013 designer workflow to content type for retention policy using powershell?

I am having a requirement to write a powershell script which should attache workflow to content type in sharepoint 2013. basically it is require to create a retention policy which should start a ...
0
votes
1answer
480 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...