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 (1)

1
vote
2answers
248 views

Script a SP2010 Management Shell function call

I have a small script that refreshes a users profile. Occasionally I need to run the script on a large number of users which takes some time because I need to type each one individually. PS C:\> ....
1
vote
1answer
70 views

get login and password admin of farm

I'm developping a user interface with the intent to connect to my farm. I wonder if there is any cmd powershell to get login and password admin or there is other method.
2
votes
0answers
170 views

Powershell list.workflowassociation not working right

I encountered recently a weird problem. I'm using a powershell script to : - save all workflows autostart properties (from all lists/webs/sites) - make modifications to items in the lists - restore ...
3
votes
2answers
3k views

Is there a way to create site pages and insert webpart into it via PowerShell?

We are creating a powershell script to create lists, groups and to install wsp packages. There are 5 wsp each containing 1 webpart. Is there any way via powershell to create 1 site page and embed 1 ...
0
votes
1answer
2k views

Download Documents From Document Library with their security info

I want to download all the documents from Document Library to a local drive. also I want their security info such as "Modified"", "Modified By" to be included in a CSV file. I searched around net but ...
2
votes
1answer
554 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
651 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 ...
3
votes
2answers
10k 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
45 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 Add-...
3
votes
3answers
3k 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
79 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
2k 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, ...
2
votes
1answer
1k 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 new/edit/...
7
votes
6answers
4k 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
304 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 ...
2
votes
4answers
4k 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
18 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 ...
1
vote
2answers
2k 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
52 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
950 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: http://www.techtask.com/featured/workflow-manager-1-0-offline-installation-sharepoint-...
2
votes
3answers
8k 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 "Register-...
0
votes
0answers
42 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
274 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 ...
7
votes
2answers
10k 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
284 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 = "https://mysite/_vti_bin/lists....
0
votes
2answers
116 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
342 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 'Microsoft.SharePoint.PowerShell....
0
votes
1answer
2k 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
1k 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
153 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) { ...
5
votes
4answers
2k 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
76 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
208 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
105 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 ...
1
vote
1answer
8k 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
2k 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
103 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
1answer
2k 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
574 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
1answer
304 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 out....
0
votes
1answer
32 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
452 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
1k 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 $n1.properties["...
1
vote
1answer
1k 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
141 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
1k 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 "https://notadummsite....
0
votes
1answer
94 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: Remove-...
0
votes
1answer
51 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 ...
2
votes
2answers
3k 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 ...
4
votes
1answer
2k 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 ...