1
vote
0answers
41 views

Can't Uninstall Sharepoint Application - Invalid State

Our Sharepoint 2013 Application failed to install and is stuck in a odd state. I followed the recommended approach for deleting the application using powershell commands on the hosted Sharepoint ...
0
votes
0answers
61 views

How do I copy my master page up to SharePoint 2013 file system using PowerShell?

I guess I should ask if it's even possible, but I would like to be able to author my master page (and corresponding files) locally, and copy it up to the hosted SharePoint 2013 site using a PowerShell ...
0
votes
1answer
48 views

Proper disposal of powershell pipeline objects

This script snippet is accessing a SharePoint site (web) within a function. It creates a SPWeb object that should get disposed of by the end of the function to avoid a memory leak. Usually the way to ...
0
votes
3answers
112 views

how to convert filenames with special characters to valid filenames?

I would like to know whether it is possible to REMOVE special characters recursively in powershell from all files in an entire directory structure? for example if I have a file called: my ...
1
vote
0answers
71 views

why the powershell does not work if I use winrs

I have a test.ps1 and content is as below $getRSDBName = { Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $rsdb = Get-SPRSDatabase return $rsdb } $rsdb = ...
0
votes
1answer
141 views

PowerShell: Exception calling “GetListItems” with “7” argument(s)

Attempting to Get List Items from Sharepoint using PowerShell. So I used the example from here Windows Powershell Blog, modified it for use with my site. Now I get the following error: Exception ...
0
votes
1answer
170 views

Create a 'Link to a Document' in a SharePoint Shared Document List using PowerShell

I'm trying to create a link to a document in SharePoint 2010 using PowerShell 2.0. I've already enabled other content types and added the 'Link to a Document' content type to the document library in ...
0
votes
1answer
156 views

Powershell Script to Find SharePoint Groups with [No Access]

Our company is running into an issue post-upgrade with (some) custom SharePoint groups being appended with [No Access] that is throwing group members Access Denied messages when they try to access the ...
0
votes
2answers
64 views

Is it possible to run multiple powershell scripts, in order, with waiting for completion before launching next?

I have 3 Powershell ISE scripts. Script1.ps1, Script2.ps1, Script3.ps1 Is it possible to run all scripts, in the order given? When i am asking this i am not suggesting parallel behaviour, but rather ...
2
votes
1answer
124 views

Fetching data from Excel stored in Document Library and displaying it in a list using powershell

I have to fetch data from an Excel document which is stored in my Document Library and display the data in a list. My script runs fine but at $workbook it prompts me to pass credentials. Can this ...
0
votes
1answer
500 views

Run Powershell script file programmatically from SharePoint

I'm running a powershell script file (.ps1) programmatically from my SharePoint code. Here is the source code: using (new Impersonator("username", "domain", "password")) { using (RunspaceInvoke ...
0
votes
0answers
111 views

Deploying a Workflow wsp to a site collection

I have a Sharepoint designer workflow wsp. I want to deploy it to a particular site, when I try to do the same it gets deployed globally. And I am not able to view it in the site collection features. ...
0
votes
1answer
42 views

console app to powershell for SharePoint om

Is it possible to convert this blog code from console app to powershell? if yes, how? http://digsharepoint.blogspot.com/2011/11/retrieving-credentials-from-secure.html
2
votes
1answer
170 views

Powershell Start-Process ignored in remote session

I am starting a new process using: $removeArguments = "-Command `"&{import-module .\deploy-utility.psm1; RemoveSolutions -solutionNames $solutionNames -url $url;}`"" start-process powershell ...
0
votes
2answers
241 views

How to update SharePoint calendar using PowerShell?

I've been trying to update a SharePoint calendar using PowerShell (say I have a .csv file with calendar events in it) and have not been successful. Could you walk me through this action? Starting with ...
0
votes
1answer
433 views

Creating a site in sharepoint using powershell

Iam new to powershell thouugh I know sharepoint. I want to creat a site in sharepoint using Powershell.. Found a few links but "Get" command throws an error message. Do i need to do any initial ...
0
votes
1answer
79 views

Powershell Catch Return Value

I have a powershell script that I am trying to add webparts to a sharepoint page automatically. The script below is wrapped in a FOREach-Object and it works fine on the first iteration however on the ...
0
votes
0answers
257 views

Change SharePoint Sub-Site's Default Page

I am installing a sub-site in Sharepoint 2010 using PowerShell. For all the sub-sites, we have configured sharepoint to launch a particular sub-site's default.aspx page as landing page after log-in. ...
0
votes
0answers
477 views

Use PowerShell to Require SharePoint Content Type use Enterprise Keywords - Managed Metadata type

I am looking to see about using a PowerShell script to require Document Library's in Microsoft SharePoint 2010 to require Enterprise Keywords before entering a document, or updating a document. ...
1
vote
1answer
73 views

PowerShell simple casting error

$mlField = [SPFieldMultiLineText]$field I have a field, it is of type field but I want to cast it as SPFieldMultiLineText (I can confirm that this is a valid cast, I'm assuming my syntax is bad). ...
0
votes
1answer
313 views

How to update SharePoint enterprise keywords with multiple values using powershell?

I'm trying to write a powershell script that looks at a user defined variable and updates the enterprise keywords for each item in a list that matches that value. For instance, say you have a page in ...
0
votes
1answer
125 views

Is there a Powershell command to Restart the machine and run a script without any user inputs?

Im running a powershell script which installs sharepoint pre-requisites. after the installation server needs to be restarted and another script has to run is there a possible way to automate this ...
0
votes
1answer
1k views

Powershell scripts: Create user profile synchronization service using sharepoint active directory

In sharepoint 2013 I have to create user profile synchronization connection using sharepoint active directory through scripts. I have created the user profile service using powershell after that is ...
2
votes
1answer
130 views

Is it possible to terminate a SharePoint workflow via Javascript?

I want to batch terminate workflows by clicking a custom button in the ribbon that (with JavaScript) grabs the selected items in the list by ID. Can I terminate workflows in JavaScript? ...
0
votes
1answer
67 views

Strange error with NewWebPage - SP 2010 Foundation

I'm having a strange issue here using the NewWebPage xml command in SP 2010 Foundation. The below code works does not work cls Write-Host "Production Manager v8.0 Deployment Utility" -ForegroundColor ...
2
votes
1answer
268 views

Launching SharePoint Management Shell (PowerShell) From C#

I am attempting to programmatically launch the SharePoint Management Shell from C# code and I am getting different behavior that when I select it from the Start Menu. I have attempted to do this two ...
0
votes
1answer
594 views

Sharepoint PowerShell Library Folder permissions

I’m new to both SharePoint (2010) and PowerShell (and Microsoft in general. Linux was my thing. I’ve decided to come to the dark side for a while :) ). Anyway, how do you set permissions for a ...
0
votes
1answer
462 views

PowerShell to add Security AD Account into SharePoint Group

I am very new to Powershell scripting and have drafted a script with the aim of adding an AD Security group into the SharePoint Admin group. The script is supposed to loop through all site collections ...
3
votes
3answers
2k views

PowerShell 3.0 Sharepoint scripts not working

Today my powershell updated to version 3.0. This version is build against and uses .NET runtime 4.0. The Sharepoint 2010 cmdlets require .NET 3.5 and don't work under 4.0. Anyone has an idea how to ...
2
votes
0answers
506 views

Install-SPUserSolution: Sandboxed code execution request failed

When executing Install-SPUserSolution powershell command the following error is shown: Install-SPUserSolution : Sandboxed code execution request failed. At line:1 char:23 + ...

1 2 3 4 5 8
15 30 50 per page