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

2
votes
1answer
36 views

Powershell for Downloading Bulk Data From Document Libraries with MetaData and Log

I am Looking for a PowerShell Script which can download Bulk Data from SharePoint Document Library to a hard Disk with Metadata of each data in a CSV file. I also want log File for a documents which ...
1
vote
1answer
27 views

get all database name with stsadm

I want to know to get all database name with an stsadm commend like Get-SPDatabase in power shell I found this cmd:stsadm -o databaserepair -url http://xyz/sites/sc -databasename DBname but it need ...
2
votes
2answers
71 views

SharePoint 2010 PowerShell Getting List Column Object From Display Name Intermittently Gets Column

I'm trying to get columns in a list from the display name, however this isn't always working. Here is where I try to get the column, and check to see if it's null. I've tried it on display names ...
0
votes
0answers
22 views

edit ps1 file with c#

i have an ps1 file witch work fine in powerISE. But in my case ,I have a c# class witch execute ps1 file and I want to set variables values from c# class . code in PS1 powershell function ...
1
vote
3answers
167 views

Powershell to install Farm solutions (wsp) [duplicate]

we are trying to deploy farm solution wsp file on the SharePoint server via PowerShell. The wsp is a webpart. I got this script by browsing forums... Foll. is our code:- $oUrl="http://mysite:9999/" ...
2
votes
0answers
24 views

Managed Metadata import/export in subsites

I am attempting to export/import the managed data in a library of a subsite on my intranet. When I attempt to use the taxonomy tools that are up on Codeplex, or when I use code such as this, I am ...
1
vote
1answer
129 views

Using Classic mode authentication in SharePoint 2013

We have a SharePoint 2010 site deployed using powershell. Before running script we have to create a web application and site collection. Then run the script. The script creates groups and lists. Now, ...
0
votes
1answer
33 views

How to enable Modal Dialog for All List forms (new/display/edit) via PowerShell?

We have deployed a SP2013 site via powershell and notice that the list forms do not open in popups rather they open as page. Is it possible via powershell to update all lists so that the ...
5
votes
6answers
202 views

Restore sitecollection from backup is not working

I have a problem while restoring a backup file on another server. Servers build versions are the same. I'm executing the Restore powershell command. And it is giving me the following error: ...
0
votes
0answers
44 views

Powershell script for moving document libraries in one site collection in sharepoint 2013 with “modified” and “modified by” detalis as it is

i want to move document library item to another document library within site same site collection in sharepoint 2013. i am able to move the documents but their "modified" and "modified by" detail ...
1
vote
3answers
56 views

Copy Document library from one site to another with metadata preserved?

Is there a way to to move all items from one document library in one site to another document library in another site where even the metadata like Created,Created Date,Modified,Modified Date,Assigned ...
1
vote
0answers
11 views

How can I upload multiple Forms into Forms Library and set some values?

I have a forms Library with over 6k Forms in it and I created a new one. As I cant move them directly because almost everything has been changed in the new form (new fields, etc) I need to create a ...
0
votes
0answers
18 views

Find all InfoPath forms in the entire SharePoint 2007 SiteCollection

We're going to migrate a SharePoint 2007 instance to SharePoint 2013. We want a report with all the InfoPath in the entire SiteCollection (+1000 sites, so with PowerShell). I've found some scripts, ...
1
vote
2answers
66 views

powershell to export list in sharepoint 2010

Please provide me powershell script to export the list from one web application to another web application. Only list structure need to copy like list name, columns etc not data
1
vote
2answers
35 views

Use of powershell with sharepoint

I was wandering what were the possibility of interaction between powershell and sharepoint. Almost all our documentation at work is on sharepoint and was wandering if I could access the metadata ...
1
vote
1answer
72 views

Cannot validate argument on parameter 'SBClientConfiguration'. The Service Bus connection string contains invalid property.

I am trying install workflow manager using powershell. I first downloaded the offline package using these steps: ...
1
vote
1answer
181 views

No Connection between SP2013 and Workflow manger

Goal: Install Workflow manager in order to use SharePoint 2013 workflow. Problem: When I try registrating between SP2013 och WorkFlow manager based on the code: Give this command ...
0
votes
0answers
19 views

Powershell copy a View from database and insert to existing Sharepoint list

I got a View, and a List of Sharepoint with same more of column. In Powershell at every Time Job I wan't add only this records, which are new, and add them to a list. Did You know any of scripts which ...
0
votes
1answer
74 views

people picker. It doesn't shows any AD users!

I have created a BCS instance successfully but when I try to search for a user or group to grant permissions or add an administrator for this instance,the people picker can't find users from Active ...
4
votes
2answers
143 views

How to return all user profiles

I need to query the entire user profile store and do multiple operations such as filtering based on one user profile property, sorting by another, and grouping on yet another. Is this possible using ...
0
votes
1answer
62 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
2answers
24 views

Copy site collection without duplicating guids

On our DEV farm I've got a site collection containing a variety of sites and subsites within. Many of them came from our PROD farm. Now, I'd like to copy this site collection on our DEV farm back to ...
0
votes
0answers
42 views

Cannot convert 'System.Object[]' to the type 'Microsoft.SharePoint.PowerShell.SPSolutionPipeBind'

Getting this error when i try to deploy a .wsp to a SharePoint 2013 portal. Someone have any idea? Get-SPSolution : Cannot convert 'System.Object[]' to the type ...
0
votes
1answer
98 views

Approve Workflow Task With PowerShell [closed]

We have over a thousand approval workflows running and I would like to write a PowerShell script to go through and approve the items from the system account. I already wrote the script to get the ...
0
votes
1answer
86 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 ...
3
votes
1answer
76 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
0answers
83 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..
1
vote
0answers
27 views

SharePoint 2013 Central Administration vs PowerShell Scripting

Which are the admin jobs that can only be done trough PowerShell scripts and not in Central Administration?
0
votes
1answer
25 views

powershell to check web template in sharepoint

I want to check on which webtemplate site is created. Like for site "xyz/abc.default.aspx" , I want to check on which web templated it was created. Can anyone provide me the powershell command to ...
1
vote
0answers
16 views

Rename metadata property in bulk

I have a document library with documents that are tagged with Metadata from the term store. I want to delete the term and rename all the documents with the tag 1.3 for example to 1.0. Deleting the ...
0
votes
1answer
77 views

Looking for a Powershell script to enable SharePoint Server Publishing on all sites in a site collection

I'm looking for a Powershell script to enable the SharePoint Server Publishing site feature on all sites in a single site collection or all site collections.
0
votes
1answer
80 views

how to get with powershell the list items which have old versions of a workflow running Part 2

After trying for several hours I am struggling with powershell to do this: Please see my previos question here: how to get with powershell the list items which have old versions of a workflow running ...
0
votes
2answers
31 views

Which of the foll. powershell script is correct way to install a timer job into SharePoint?

1: install-spsolution Solution.wsp -webapplication "webapplication" -GACDeployment –force 2: install-spsolution Solution.wsp -GACDeployment –force Which of above is best practice?
0
votes
0answers
23 views

Need to get only items which have never checkdin

I am using this code to get ownership of the list items which are never checkedin, this works great. I need to get the items which have no version history. How do I specify in my Caml Query please? ...
0
votes
1answer
79 views

how to export/import managed properties and mapping to align them accross environments

I have backed up a content db from prod to dev environments. Everything works fine, but I noticed the managed properties are not aligned across environments Obviosly I dont want to do this manually ...
0
votes
1answer
47 views

how to get with powershell the list items which have old versions of a workflow running

I have in the following screenshot many workflows, but some of them are abandoned by the users and I need to identify which ones. As I cant install sharepoint designer, then I need to do this with ...
2
votes
0answers
23 views

Check out to document owner using powershell

I have a document library with 200 + documents. I would like to check out all documents in the library to the document owner. I have seen a few powershell scripts that check in documents but not ...
0
votes
1answer
27 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 ...
2
votes
1answer
67 views

Upload user profile images from desktop to sharepoint using a windows service

All, I was so glad to find this community. I am sharepoint newbie and just started working on Sharepoint 2013. My task is to upload and set user profile images which are saved in a local disk (share ...
2
votes
1answer
84 views

Set SPNavigationNode to open in a new window using PowerShell in SharePoint 2013

Based off of several blog posts I attempted the code below: $n1 = New-Object -TypeName "Microsoft.SharePoint.Navigation.SPNavigationNode" -ArgumentList "People", "http://myURL", $true ...
1
vote
1answer
79 views

SharePoint Doc Library Batch Delete

I am trying to write a batch Powershell script to delete the items from Sharepoint Document Library. I could not delete them because I have to reference owsfileRef field in batch command as per the ...
0
votes
0answers
33 views

Powershell Script to get UPN of O365 Users from thier emails?

Has anyone developed a Powershell script to get UPN of the O365 Users, provided we have their email address? Suggestions are welcome!
0
votes
1answer
81 views

The following exception occurred while trying to enumerate the collection: "Access is denied

I have the following powershellscript, and I would like to rewrite it so if it finds this exception it should continue to the next web. $webapplication = Get-SPWebApplication ...
0
votes
1answer
28 views

Unable to remove site collection: Operation failed due to an error in Identity Mangement

I've restored a site collection to a different SharePoint farm. Now i am trying to delete the site collection: Using Powershell: Remove-SPSite http://farm/sites/Site_Collection Error: ...
0
votes
1answer
36 views

Does a sharepoint administrator have to be a server administrator?

Specifically, I am looking at giving a user the permissions to run PowerShell commands, on a SharePoint 2013 server, remotely from their PC. The user was a sharepoint administrator on sharepoint 2010 ...
0
votes
0answers
38 views

Is it possible to restore a site collection using Import-SPWeb [duplicate]

I've exported a Site Collection from a content database using Backup and Restore > Recover data from an unattached content database: Site Collection: http://abc/sites/BS Site: No Selection List: No ...
0
votes
0answers
55 views

Subscription settings service application won't install with PS

Ran this script once on one farm with success but now on a new farm it won't run. I got this same error the first time I ran it. It doesn't matter if I run it again to remove it. Here is the ...
0
votes
2answers
68 views

Using powershell, get the pagelayout name for a given aspx page in the Pages Library

I am writing a powershell script to list out all the pages in a given Pages library. But I would like to get only those pages with a given pagelayout. Is it possible to get this information from the ...
1
vote
1answer
96 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 ...
0
votes
2answers
33 views

How to find how many site colections are active in a web application using console application

I need to retreive how many sites are active in a web application using either powershell code or console application. Require the code ( also need how many users have accessed the active site ...