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
19 views

Can i update all the custom Edit & New forms for my subsites using powershell

I am working on Team site inside SharePoint 2013 server, so can i achieve the following scenario :- let say i have a team site collection , which have 20 sub-sites and inside the subsites's lists i ...
0
votes
0answers
53 views

Can not prevent editting a field inside the Quick Edit using JSLINK

I have a site column named "Item Number" with internal name of "ID1", as follow:- PS H:\> $web.Fields["Item Number"] FieldValueType : System.String PreviewValueTyped ...
0
votes
0answers
22 views

Powershell Version 2 compared to version 4 loading dlls

I have a script that works perfectly in powershell version 4 but when I move it onto a machine with version 2 it kicks up a fuss. My code is below I have a controller which loads the scripts like so ...
0
votes
0answers
24 views

SharePoint Groups not showing

I have a powershell script which created a bunch of groups in a sitecollection http://sp2013 on port 80 $path = $("C:\data\SiteCollectionGroups.csv") $csv = Import-csv -path $path ...
0
votes
0answers
86 views

SPDataAccess Role is not visible - Sharepoint 2013

I have a Sharepoint 2013 farm and SPDataAccess Role is available for some content DBs and not for others. Is there a way to add this role to a specific DB using PowerShell?
0
votes
0answers
20 views

Powershell script to copy documents not working

I am trying to copy documents from a document library to another document library in a subsite. I have this script write-host "Starting to copy" -ForegroundColor Cyan #Add the SharePoint snapin ...
0
votes
0answers
39 views

How to delete Items from Document Library and its folders in my Sub Site

I have written a PowerShell to delete the items in a Document Library to delete/clean-up the items.I have 3 folders in my Document Library and all the items in these 3 folders must also be deleted.But ...
0
votes
0answers
102 views

change editor and author of a document via powershell CSOM

I am wanting to change the editor and author of a document in a document library in O365 using CSOM powershell. I have managed to change the dates like this : $Upload = ...
0
votes
0answers
42 views

Move files from fileshare to document library but keeping modifed date, modified by CSOM Powershell

I am wanting to do a migration where I move files from a fileshare to a document library in office 365. This needs to be done in CSOM powershell and needs to keep all of the modified dates, modified ...
0
votes
0answers
21 views

Site Column,Site Content Type,List Content Type issue in SP 2013

In my Site Collection, I am facing a strange issue. I have custom Site Content Types, Site Columns created and these Site Columns were associated with Site Content Types. After creation of Document ...
0
votes
0answers
25 views

Execute a PowerShell script on a remote SharePoint Server

How to execute a PowerShell script on a remote SharePoint Server ? I have created a ps1 file on my UAT SharePoint Server [its a WFE], Now I want to execute this same script on the Staging SharePoint ...
0
votes
0answers
14 views

How to Execute Powershell commands from a Sharepoint Hosted App?

So I need to create a Site Inventory(collection of all documents) as an OOTB Sharepoint Feature. This is the way I thought of doing it. Create a Sharepoint feature in Visual Studio wherein ...
0
votes
0answers
29 views

Multiple document library creation and assiging document level unique permissions

I am trying to create multiple document libraries directly under root site collection and each library must have a unique SP group with read only permissions so for eg http://sp2013 walmart ...
0
votes
0answers
23 views

Write-Output Powershell fails within RunWithElevatedPrivileges Block

This is possibly a heads-up as much as anything. I have found that if I write a Powershell with write-output statements, they do not appear when using RunWithElevatedPrivileges i.e Write-Output ...
0
votes
0answers
19 views

How to insert a document to version history library using powershell?

We did a migration from SP2007 to SP2013 using DocAve tool but we got some errors when migrating some document versions. We tried it a couple of times via the tool but still it will not migrate those ...
0
votes
0answers
30 views

Add level permisions to User in Sharepoint Online with Powershell

How as assigning roles to a given user at a given site in sharepoint online with PowerShell $ctx.Load($ctx.Web.RoleAssignments.Add($account,$roleAssignment)) $ctx.Web.Update() $ctx.ExecuteQuery() ...
0
votes
0answers
70 views

how to re-use an existing term under another term but not termset

My problem is I can't reuse a term under another term. But reuse term under a termset works fine. How can I reuse a term under another term. What I'm trying to do here just works fine with web ...
0
votes
0answers
23 views

Pin childs using PowerShell

Is it possible to pin terms with children using PowerShell? I couldn't find any useful code for that online. I have a group name and and a second group name that I want to pin to the other group. ...
0
votes
0answers
50 views

Upload and add a content editor web part in Search Center sub site using PowerShell

How to upload and add a Content Editor web part in Search Center sub site using PowerShell?I am having a .dwp file in my filesystem and I want to upload this into the results.aspx page of my search ...
0
votes
0answers
15 views

The content type “Excel based Status Indicator” is part of an application feature

I have written a small poweshell script to delete all the content types except some custom content types, But i am getting error while deleting "Excel based Status Indicator" feature. Is it possible ...
0
votes
0answers
97 views

SPWeb.GetFolder() with browser folder url failed

I am using powershell script and when I call SPWeb.GetFolder() with (short url) it works fine and when I used (browser url) it's not working. However it refers to the same folder e.g short url ...
0
votes
0answers
19 views

SharePoint 2013 Page Status Message

Is there a way to add status to a page(suppose home page) of a SharePoint site using PowerShell? I found ways to do it using javascript (SP.UI.Status) and server side code using c# ...
0
votes
0answers
40 views

Workflow “Error Occurred” After Task Reassignment Using Powershell

I had a task assigned to the wrong person in a custom visual studio workflow. Previously I have been able to reassign these types of tasks using Powershell and the following lines: $web = Get-SPWeb ...
0
votes
0answers
19 views

How to add specified web application to DNS by pinging it

I have created a sharepoint web application using powershell. I want to add my web application to default DNS. How i add it using powershell?
0
votes
0answers
102 views

Execute file Javascript with Powershell

I would like to schedule a script powershell that runs a js file, someone has an idea to realize it? I use Sharepoint 2013 Online. Thank you for your help var page = new WebPage(), testindex = 0, ...
0
votes
0answers
27 views

Updating scripts for creating Scopes + rules to create Result Sources + rule

I have a powershell script which was created to create Scopes and scope rules for a SP2010 environment. Now I have to create a similar script but for SP2013. It should create the same Scopes and scope ...
0
votes
0answers
44 views

What PowerShell script can I use to inventory all my lists, calendars, etc. for a SharePoint 2013 site

I have used the cmdlet Get-DocInventory within a PowerShell script which gave me every single document on my SitePoint 2013 site which was great ! However, I need everything above this level to be ...
0
votes
0answers
25 views

Programatically filtering SharePoint 2010 lists that may have files by base templates

I have identified the following list types and their respective BaseTemplates (see text in quotes) as those type of lists where users can upload files to: Documents Library: "DocumentLibrary" Asset ...
0
votes
0answers
318 views

Cannot find type [Microsoft.SharePoint.SPSite]: make sure the assembly containing this type is loaded

I'm trying yo Run this script ps1 from C# code but it returns me the following error where trigger "pipeline.Invoke()"; InitialSessionState iss = InitialSessionState.CreateDefault(); ...
0
votes
0answers
22 views

How am I supposed to get object Id for diff objects to be used for diff webservices in Sharepoint 2013?

Please refer to this documentation. It says that Ids are assigned to objects. How am I supposed to get these Ids? I see Powershell getting these for constructing xmls for diff operations. How is it ...
0
votes
0answers
69 views

Manage Powerpivot Data Refresh using Powershell

I have looked around quite a bit and haven't found anything on managing the powerpivot data refresh settings / schedule using powershell. Is this even possible? I would like to bulk update some of ...
0
votes
0answers
37 views

Working of PowerShell Import-SPWeb command with UpdateVersion Overwrite

As per technet site the 'Overwrite' value for UpdateVersions parameter does following : "Overwrite to overwrite the current file and all of its versions (delete then insert)". But my question is does ...
0
votes
0answers
101 views

PS1 Script Clone user permission , Exception on You cannot call a method on a null-valued expression

This script clones Users permissions given a Source user and a target User. It works perfectly in my test environment but not in production. #Function to copy user permissions Function ...
0
votes
0answers
223 views

Grant permission on multiple folders using PowerShell

Can you please help me to grant permission to different folders ? I used the following article : Grant folder permission(SharePoint) using powershell script but when I tried to grant permission for ...
0
votes
0answers
107 views

Iterate through items inside folders and sub folders in SharePoint Library

I have a SharePoint library with document sets on level 1. Then inside document sets I have Folders and some documents(word,excel,text) on level 2. Then again inside folders in level 2 I have some ...
0
votes
0answers
66 views

How to set default value to CT column using powershell

I want to set the default value to a Content Type managed metadata column, I want to set the default value using powershell and want to set it to hidden. How to accomplish this?
0
votes
0answers
101 views

Problem Starting 2013 Workflow from Powershell

I have a scenario where I need to kick off a 2013 SPD workflow from a powershell script. This should be possible using the StartWorkflowOnListItem method. My script is as follows: Add-PSSnapin ...
0
votes
0answers
31 views

How to add a Custom List to website using Powershell?

I am creating a custom list via powershell. After the creation I have to open IE go to a page and add the list manually. Is there a script that will add a list into a page?
0
votes
0answers
34 views

Adding custom SPGroup to all lists in Site using powershell

I want to add custom SPGroup as contribute permission to all the lists in a sharepoint site using powershell. all the lists are at root web of the root site collection. Need possible script to ...
0
votes
0answers
22 views

How to add SP Group to Managed Metadata Term Group using Powershell

I want to add Active Directory Group to Term Group using Powershell. I have found script to add AD Group to Term Group, but i want to add AD group to multiple Term Groups. Need powershell script to ...
0
votes
0answers
82 views

How to change text encoding when inserting values inside a sharepoint list using powershell?

I'm using french words with special characters like "é" "à" etc. When I trying to insert text in my list fields using powershell, it does insert the values but the characters aren't well encoded. For ...
0
votes
0answers
60 views

Ignore/Exclude file when using Export/Import-SPWeb

I'm using the Export-SPWeb and Import-SPWeb Cmdlets to migrate a few libraries between SharePoint servers. However, one of the files being migrated is a shared data source which is only valid on the ...
0
votes
0answers
603 views

Error: “Cannot index into null array”

I am getting this error while trying to get the list name Cannot index into a null array. + $clientlist = $web.Lists["Shared Documents"]; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ...
0
votes
0answers
61 views

How to find sharepoint 2013 foundation site collection broken links?

How to find all broken links in a site collection in SharePoint 2013? Preferably with PowerShell
0
votes
0answers
16 views

Does STSADMIN support workflow migration?

I've been tasked to move several SP2013 sites/collections from our National farm to the International Farm. From what I can tell, STSADMIN backup/restore can handle this pretty easily. However, I ...
0
votes
0answers
56 views

open pdf in browser sharepoint 2013

I have a library of pdf file, I need to open those file in browser and not to download them. I tried to set permission to web application using those steps : ...
0
votes
0answers
16 views

How to delete all user profiles of users that are not group members

I have to delete all user profiles of users that are not in a specific ad group. How can I do that (with powershell)?
0
votes
0answers
32 views

Delete user properties under specific section - list all user properties in a section

I'm trying to delete all user properties under a section in user properties. How do I list all user properties in a specific section? Add-Type -Path "c:\program files\common files\microsoft ...
0
votes
0answers
42 views

List url property missing

We have 3 environments PRD, TST and DEV. Each environment is pretty much a clone as both TST & DEV were built from PRD. The other day I was testing a Powershell script and when I moved to PRD I ...
0
votes
0answers
55 views

SharePoint Online Management shell to add o365 Tenant Cloud group to Admin Group?

Is there any way to add an existing o365 Tenant Cloud group as System Admin to all Sites on our o365 SPO Tenant via power shell? I know we can do it with accounts. But apparently since o365 Tenant ...