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)

0
votes
0answers
32 views

When cloning the search index component in SharePoint 2013, where should the root directory be placed?

I've got an index component in my search service application listed as "Degraded" status and they say the solution is to create a new one and replace the old one. But when using the ...
0
votes
0answers
74 views

BDC: cannot logon with credentials obtained from secure store provider

Hmm.. When I manually create a new contentsource, point it to the single sql database-bcs everything works OK (no probs) (via Central Admin) but... When i try the same via a powershell script I get ...
0
votes
0answers
124 views

How to retrieve BDC Identity from External List programmatically?

I need to do a lookup on an External List (in SharePoint Online - Office 365) to retrieve the value of the BDC Identity. BCS is talking to an OData web service. (I'm not a Visual Studio guy), so ...
0
votes
0answers
73 views

SharePoint 2010 Powershell script to loop thru all sites collections to swap AD groups

BASIC OBJECTIVE: Identify an AD group, where ever it exists, Update to a new AD group and keep the same permission level. I'm looking for a powershell script to loop thru a site collection (or all ...
0
votes
0answers
201 views

Additional SPUser properties - UserLogin, DisplayName?

The SPUser object has "LoginName" and "Name" as valid properties according to the technet documentation here. However when i get a list of all SPUser properties I notice two additional properties ...
0
votes
0answers
46 views

how to link site column title to a resorce file?

I would like to link a site column title to a resource file using Powershell. I am using Sharepoint 2010. Thanks in advance.
0
votes
0answers
74 views

change the data type of a sharepoint column from the content type using powershell

i have been trying to change the data type of a field called "EmployeeName" from Number to Text - which is associated with a Infopath form Library in SharePoint 2010 env
0
votes
0answers
17 views

Why does the encrypted docs code generate errors on infopath files?

In check for password protected office documents you shared some powershell code to read through a site collection looking for encrypted documents. When the farm admin runs it, I get errors like: ...
0
votes
0answers
17 views

OnUpdated is not called on field when called with powershell

I have a custom type field, called MyCustomField, this field has some action to perform on the "OnUpdated". So when I go and update field in the UI throught the sharepoint site, and I jump into the ...
0
votes
0answers
78 views

Find Number Of Items In Search Index Using Powershell

How can I find out how many items are in my search indexes using Powershell in SharePoint 2010?
0
votes
0answers
90 views

Why I cannot get the UPS AD connection in powershell?

I would like to get the AD connection from the UPS in powershell. But the object "ConnectionManager" is null. What I am missing? If I go to: Central Administration -> Application Management -> ...
0
votes
0answers
31 views

Modify SPWebAnalytics ReportingDb and StatingDb using powershell

I am trying to change the reporting database and staging database for SPWebAnalytics sharepoint 2010 using powershell below but received the following error: "Set-SPWebAnalyticsServiceApplication : ...
0
votes
0answers
67 views

Creating a Calculated Date Field with embedded double quotes

I have been provisioning a load of Site Colummns with PowerShell . I am however, having a lot grief with a calculated field spField.Formula = "=TEXT(DATE([Created],"mmyyyy"))" spField.OutputType = ...
0
votes
0answers
66 views

Copy list item from Prod to Dev using Powershell or Server Object model

I'm looking for the best way, either throught Powershell or the Object Model, to copy a list item from Production to Dev. The lists are identical, I just have one item that is causing an error in an ...
0
votes
0answers
142 views

Set-SPUser - not valid user object - 19;#username - powershell

I'm trying to add users to a custom "responsible" group that have the same permissions as owners group. I'm getting member from a list in SP (people and group). $Responsible = ...
0
votes
0answers
35 views

SharePoint 2013 unable to see webpart after adding it using PowerShell

I have a custom webaprt which I created in SharePoint 2013 using VS 2013 and I am trying to add and congifure it through powershell. The good part is it's adding it on the page and displaying the ...
0
votes
0answers
39 views

Update folders to folder content type

I have a document library with root folders and then sub-folders. I need to update the sub folders to a newly created content type. Is there a way to do this with powershell? Example: Document ...
0
votes
0answers
79 views

SharePoint PowerShell Script deployment. Only errors outside of Visual Studio?

I have a problem regarding deployment of WSP package. I develop the solution using Visual Studio and use No Activation + a PowerShell script as 'post-deployment' command. The PowerShell script is the ...
0
votes
0answers
135 views

Creating SPNavigationNodes via PowerShell

Unfortunately I don't have my screenshots since they are at work so I'll try to explain this as best as possible. On a site collection's top level site at work, I would like to have the top navigation ...
0
votes
0answers
85 views

Powershell Automation of Workflow Visio Exports

In Sharepoint 2013 I'm working on a solution for automated backups at the list level (as opposed to full site backups). Thus far it's a two part solution involving powershell commands that would run ...
0
votes
0answers
7 views

Powershell how to set a List field by Display User, or set by

I don't have a User Login Name. I have got a Display User Name. With this form - "User Surname User Name", If i have do it by workflow its works, but after 180 elements workflow crashed me. How could ...
0
votes
0answers
9 views

Powershell User set in Sharepoint

When I migrate to a list I must update the sharepoint User Group Field. How Could I update it ? Can I set by "Surname Name" User ?
0
votes
0answers
78 views

The job 'GUID' is already running and cannot be canceled- PowerShell

A deployment or retraction is already under way for the solution "xxx.wsp", and only one deployment or retraction at a time is supported it occurs if anomalies deployment is running for the same ...
0
votes
0answers
92 views

Test-Connection and Access denied using Powershell

I have Windows Server 2012 and Sharepoint 2013. I have this issue deploy Sharepoint using Powershell: I execute powershell.exe with credentials UserInstallerMoss. UserinstallerMoss is Farm ...
0
votes
0answers
136 views

Using SPQuery returns today's recurring calendar item and tomorrows. Why?

We have an on call calendar in SharePoint. I'm trying to send an automated, weekly email of the calendar. The calendar has a mix of weekly recurring entries and non recurring entries. I'm trying to ...
0
votes
0answers
205 views

Access denied for Users after database migration from SP2010 to SP2013

After content DB migration from SP2010 to SP2013, a number of users who has permission to access cannot access to the SharePoint 2013 site. The error message given is "Access Denied". I have confirmed ...
0
votes
0answers
275 views

Terminate corrupted workflows in powershell

What is wrong with this powershell script to terminate corrupted workflows? I've got this error: An error occurred while enumerating through a collection: Collection was modified; enumeration ...
0
votes
0answers
167 views

Powershell where-object doesn't work

I have this Powershell code that works in 2013, but it doesn't work in 2010, although am using a functionality that supposed to work in 2010, my problem is with the where-object, it's not really ...
0
votes
0answers
113 views

Restore backup to new SharePoint 2010 server

this issue is piggybacking on a previous Issue I had. I just set up a new SharePoint server for testing purposes, and I want to import the back ups of our production server for obvious reasons. ...
0
votes
0answers
28 views

What's up with the three bytes at the beginning of these SharePoint files?

I've been playing with SharePoint files in PowerShell, and I've notice three bytes at the beginning of most files (forms and master pages): $web = Get-SPWeb ... $masterFolder = ...
0
votes
0answers
39 views

Revert Restore-SPFarm

We have a SharePoint test server and SharePoint live server. They are on the same network The administrator for each is the same Active Directory account. I know this is wrong but as a programmer ...
0
votes
0answers
278 views

New-SPWOPIBinding Cannot Contact Office Web Apps Farm

I'm trying to attach my sharepoint dev enviroment to a OWA server. I've got the Web apps server up and running and serving our live enviroment with no problems. I want to bind our dev platform to the ...
0
votes
0answers
70 views

Access powershell variable in next command- Can not convert the value of type “System.String” to type xxx

How to execute both commands in powershell. I get below error. I want to access $ Db in next powershell command. $ Db = Get-SPBusinessDataCatalogThrottleConfig-Scope ThrottleType Items ...
0
votes
0answers
75 views

Save as template PowerShell

As in my previous question : Upload site template PowerShell I tried to upload a saved Site Template (.wsp file) to my new Site the way i can create new subsites based on this Site template, when i ...
0
votes
0answers
16 views

SharePoint 2010 PowerShell command get required parameters

I am new to powershell and I want to validate a tricky rule. Let's assume I enter Get-SPSite as command and it may have required params as well. Assume Identity is required Params for Get-SPSite ...
0
votes
0answers
37 views

Get webpart properties from previous version of webpart page

I am facing a problem in SharePoint 2010. I am trying to get webpart properties from previously published version of page using powershell script. e.g. If a page is checked-in and has version 5.2. I ...
0
votes
0answers
66 views

Power shell script to get custom site columns and content types

We are planning for migrating from sharepoint 2010 - 2013 and we would like to export all custom site columns and content types in a .csv file. Also we would like to know which sites are using these ...
0
votes
0answers
94 views

Adding lists with powershell. Visible in site contents but not $web.lists?

I've written a powershell script to create a batch of lists. The script does the following: Creates the library. Creates SharePoint groups. Changes the library name to replace spaces with ...
0
votes
0answers
44 views

Possibility to initialize Personal documents without forcing user to use portal

We create an Office 365 user programmatically via Powershell API, and then access corresponding Office 365 Sharepoint libraries using CSOM via .NET. We were able to do all that, except Personal ...
0
votes
0answers
146 views

Removing a BDC Catalog using PowerShell

I use Sharepoint 2013 and Powershell. I use $metaStore = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Catalog" -ServiceContext $siteUrl Import-SPBusinessDataCatalogModel -Path $filename ...
0
votes
0answers
41 views

Translate GUIDs to library, list, webpart, or component name

I have a list of GUIDs used but I don't have a reference to tell what each guid is for. Could I programmatically convert these Guids to something more useful such as Guid ==> "Document Library" ...
0
votes
0answers
36 views

How to add a file to a tag on sharepoint online 2013 using powershell

I'm using powershell to add files to sharepoint and we are using tags instead of folders, I was wondering how would i go about it? Thanks D
0
votes
0answers
208 views

Error when trying to copy host named site collection with Copy-SPSite

For testing purposes I have created host-named site collection http://portal.contoso.com I am trying to copy this site collection with the Copy-SPSite cmdlet to a new host-named site collection ...
0
votes
0answers
43 views

Run PS Script from workflow SP2013

I saw the great feature developed by iLoveSharePoint here. But this is for SP 2010, and 2013 compatibility is not sure. Have you heard about any other stuff to do the job ? Running powershell scripts ...
0
votes
0answers
36 views

Creating a folder with information pulled from infopath form

I have created a form in infopath that allows managers to input new hire information. When this form is created and submitted, it goes to a different library that only HR can see and they can switch ...
0
votes
0answers
32 views

Mounting SP database where the DBs names and server names are in a CSV file

I want to mount SP content databases using powershell. The content DBs names and server names are in a CSV file. How to read the CSV file and use the mount -SPContentDatabase command? Can someone ...
0
votes
0answers
872 views

Is the only supported way to convert users to claims using a web application?

According to Microsoft documentation, Migrate from classic-mode to claims-based authentication in SharePoint 2013, the way to upgrade a classic-authenticated users would be to attach a database to a ...
0
votes
0answers
25 views

Mail server settings not changing

Having a strange issue with SP 2010 Foundation. In central admin we have an outgoing mail server set But in powershell if you call (get-spwebapplication)[1] | ...
0
votes
0answers
46 views

Removing permission granted for excel services

When setting up Excel services with an unattended service account, one step is to grant the account access to the web application(s) database that will use the service with PowerShell. $webApp = ...
0
votes
0answers
37 views

updating metadata field

hi have this code but it doesn't seem to enter the while loop, can anyone help $array1 | foreach{ $site = Get-SPSite $_ ...