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)

2
votes
0answers
245 views

Copying Modified Date in Window Explorer from Powershell

I have the PowerShell script which download Documents from SharePoint Document Library.i want to copy the modified date of documents including folders to the window explorer. Where I am going wrong ...
2
votes
2answers
707 views

SharePoint Online PowerShell cmdlets: Get Group's Ids

I need to export my site collection's groups from sharepoint online. I have create the following script to get all the info but I cannot retrieve the group's Id. I am talking about this ID ...
5
votes
4answers
4k views

how to know Exact Document Library size

How to know exact document library size. any PowerShell code required? I used http://XYZ:4444/_layouts/15/storman.aspx but it doesn't show true size. I have Just Modified Nikhil's Script which ...
2
votes
1answer
2k views

updating multivalues lookup column using PowerShell in SharePoint 2013

I have a multi values lookup column. I'm trying to update another column on another list from a lookup column. So let say I have values in a lookup column like so: 1;#Open 2;#Close 3;#Closed I want ...
2
votes
1answer
346 views

Need site inventory tool for SharePoint 2007 that doesn't require server access

We're migrating from 2007 to 2010 and I need a full inventory (site, libraries, lists) so I can remove stuff that's no longer being used. However, everything I've found so far requires server access. ...
4
votes
1answer
2k views

how to iterate through all folders inside subfolders of root level folders

below is the code to iterate through root level folders which downloads folder starts with "a" and download sub folders from it starting with any letter. I want to download all the folder levels and ...
2
votes
1answer
242 views

How to get a list of items from a particular folder

The Following code write all the items from the list to CSV file. $list.Items| foreach { $obj = New-Object PSObject -Property @{ "Title" = $_["Title"] ...
1
vote
1answer
867 views

RootFolder.SubFolders problem

I am able to search all folders with their name by using $folder.Name.StartsWith("a") this will display all folders which starts with name a in a Document Library. I want all folders to be ...
1
vote
2answers
1k views

Move Documents - Update Modified date of Published document

I'm want to move documents between site collections retaining their version history(Major and Minor versions). I used this blog http://bit.ly/NPftRE as a reference and was able to move documents with ...
2
votes
0answers
122 views

Download Root level folders starting with A to J

I have the following script to download documents from document library. Is there any way I can download folders starting with A to J from root level which should include all of their sub folders from ...
1
vote
1answer
307 views

Viewing the existing MySiteHostLocation for the SPProfileServiceApplication

I've found plenty of example of how to set the My Site host location for the User Profile service application. On the Start menu, click All Programs. Click Microsoft SharePoint 2010 Products. ...
0
votes
2answers
2k views

Powershell - Function to retrieve all items from a list

I'm just getting started with Powershell and am trying to write a reusable script that lets me get all items from an arbitrary list: function Get-SPItems { <# .SYNOPSIS Get all ...
1
vote
1answer
233 views

How to get the trigger keywords of a query rule through PowerShell

I'm attempting to export all query rules for a provided URL to a csv file via PowerShell. I have this working about 80%, the last piece I need is to find the keywords or terms that actually trigger ...
6
votes
2answers
648 views

Programatically determine who created a site collection

Is there a way, preferrably with Powershell, to determine who created a site collection? I'm not interested in who the site collection admins are, but who the actual creator of the site collection ...
1
vote
0answers
24 views

extract block issue preupgradecheck

I run an stsadm -o preupgradecheck in ps1 file function test (){ try{ $cmd=stsadm -o preupgradecheck } catch{ Write-host -ForegroundColor Red ($_.Exception.Message) } } test I wander how can I ...
0
votes
3answers
7k views

Powershell Script With Error Log

With The help of this forum I am able to Write The following Script Using powershell which downloads bulk data from SharePoint with Metadata in CSV file and also Error log as txt file. but the problem ...
1
vote
1answer
395 views

programmatically check if sharepoint installed

I'm developing an application which test if SharePoint is installed correctly, with stsadm and PowerShell access. I wonder if there is a specified stsadm or PowerShell command or a specified C# code ...
0
votes
1answer
2k views

Adding groups to sharepoint site using powershell

Hi I have added 4 groups to site collection 'A' using the powershell script below. How can I add the same groups in a site under the site collection 'A' `$web=Get-SPWeb ...
5
votes
1answer
7k views

Get User by loginname using powershell

We have the following script that was running on sharepoint 2010 where we had clasic windows authentication. When we moved to SP 2013, the authentication was changed to Claims. The following code ...
2
votes
1answer
859 views

SharePoint deployment - Deployed to: GAC (WebURL/Global) / BIN

I know that when we deploy farm solutions then they are available under Central Admin --> System Settings --> Manage farm solutions. In this list of solutions, there are 3 columns. Name, Status and ...
2
votes
1answer
1k views

How to retrive items path in CSV file using powershell

I have Following PowerShell Script which downloads documents from document library with folders to a local drive. it also downloads metadata of each document in CSV file. How do I copy the folder path ...
1
vote
0answers
161 views

Create timer job to execute powershell script?

I have created timer job and under execute method.i have added below statement to run sharepoint command. runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out ...
1
vote
2answers
143 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
53 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
130 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 ...
2
votes
2answers
2k 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
533 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
271 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
358 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
5k 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
34 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 ...
2
votes
3answers
2k 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
71 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
977 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, ...
1
vote
1answer
814 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 ...
6
votes
6answers
3k 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
254 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
4answers
3k 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
17 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
969 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
49 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
636 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: ...
2
votes
3answers
5k 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
34 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
243 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 ...
6
votes
2answers
5k 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
186 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
75 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
169 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
1k 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 ...