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
7 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 ...
1
vote
1answer
15 views

Modify list item field using PowerShell

I have a list field that stores an XML string. I am trying to get the XML contents and modify a particular tag in the XML like so: foreach($item in $list.Items) { ...
1
vote
0answers
12 views

Power shell Script to copy sharepoint top navigation bar across site collections in sharepoint 2013

I have create a global navigation using Term Store Management Tool in Root site collection for a web application. Now i want to copy this Navigation across site collection using powershell. Can you ...
0
votes
1answer
17 views

Get attachments from sharepoint list with powershell

I made this script : $webUrl = "http://site.fr/" $library = "Qualified Information" $spSite = new-object Microsoft.SharePoint.SPSite($webUrl) $w = $spSite.OpenWeb() $l = $w.Lists[$library] ...
1
vote
1answer
22 views

Script work on Sharepoint 2013 but not Sharepoint 2010, Why?

I made this script to get all attachments from a list, it works on Sharepoint 2013 serveur but on Sharepoint 2010 I don't have any result... : $webUrl = "https://site.fr" $library = "Contacts" ...
0
votes
1answer
13 views

Upload a file into Folder within Style Library using PowerShell in SP 2013

How to Upload a .css file on the folder within the Style Library of my site collection using PowerShell. I am having a style file called style_bg.css. How to get the folder within the style ...
0
votes
2answers
17 views

Delete Individual Items from Recycle Bin

I am using Batch Delete using Powershell. After batch delete, items are moved to recycle bin. spWeb.RecycleBin.DeleteAll(); will delete all items from recycle bin. Instead, i want to remove only ...
0
votes
3answers
22 views

Multiple AND OR inside a powershell if statment

I am trying to write a PowerShell script for my SharePoint 2013. The idea is that I what to select all the links that are referencing /documents/ folder, and that ends with either .doc .docx or .pdf. ...
3
votes
4answers
128 views

how to allow Write-Host command to write into a file (notepad) rather than in the screen

I run the following script in SP PowerShell Add-PSSnapin Microsoft.SharePoint.Powershell -ea 0; $web = get-spweb 'http://tvstg01/kb/customerservice/' $list = $web.lists['Customer Service']; ...
0
votes
1answer
20 views

Synchronisation two list in Sharepoint 2013

I have got two lists with diffrent number of column: First List have got: Column "A", Column "B" and "Status" field with Choice: active, and non active. Secaund list have got this kind of column: ...
1
vote
1answer
21 views

Get attachment with element ID from list

I am trying to get attachment list with element ID from a sharepoint list. I found script to download attachment but I want to see how you would do it? Thanks by advance, ++.
0
votes
0answers
7 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
1answer
17 views

Powershell script to add a field to all the document sets

I have created a field in sharepoint content type hub. Now I want to add this field to all the Document Libraries in my sharepoint online tenant. Is there a powershell script which can do this for ...
0
votes
0answers
6 views

How to delete the content organizer rules using PowerShell in Record Center

How to delete the content organizer rules which are already existing in the record center using PowerShell
0
votes
1answer
16 views

Get Type of User or Group

I have a case where in I have added AD security groups along with SharePoint Users to the SharePoint Groups, Now I want to fetch a list of only Security Groups from all Site Groups in SharePoint, Is ...
1
vote
1answer
22 views

Disable the option for personal regional settings

Is there a way (through PowerShell or an other method) to disable the option for users to set personal regional settings? I have a system where I want to force users to be on UTC since changing ...
1
vote
1answer
20 views

Get item by DocID using PowerShell

Has anybody retrieved items by their DocId using powershell. Specifically the ID generated by the DocID service. I'm looking to get details of items based on a (large) list of DOCIDs. I guess I could ...
0
votes
2answers
19 views

Is it possible to get SPGroup's Web application Name Directly using Powershell?

I'm trying to get The name of the The content_Db (WebApp) where a specific group lives. I've been trying to get these info by looking into the SqlDb. but I only could find Site ID reference. is ...
1
vote
0answers
15 views

Can't delete a taxonomy field

I'm trying to remove a field from a powershell script. The field is a taxonomy field. However, it does not works, with this error: Site columns which are included in content types cannot be ...
0
votes
1answer
19 views

Export document library structure to file

In a 2010 site colelction I have a document library with a complicated structure and lots of subfolders that I want to move to a flat structure. How can I get a hierarchical list of all (sub-)folders ...
0
votes
1answer
17 views

How to find the lists which are using custom columns in MOSS 2007 environment at web app level using powershell?

I have deployed a solution which creates a custom column/field to the entire web app. But the solution doesn't contain any features. Now I want to find the lists where that custom column is used. ...
0
votes
0answers
17 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
1answer
34 views

delete all users with specific domain prefix

I need to delete all the Users from the hidden List _catalog/users where user's domain is NorthP so sample user would be NorthP\johnd. What am I missing from the following PS code? ADD-PSSNAPIN ...
2
votes
0answers
15 views

Access Crawled Property values using PowerShell

Is it possible to retrieve a list of values for a given crawled property? If so, how would this be achieved using PowerShell? For example, I have a crawled property called 'Forename' and I would ...
0
votes
2answers
21 views

Get permissions for all sites

Is there a generic powershell script that can output permissions (to csv) on all website within a site collection, as well as the top level site? I tried a few that I found but none of them worked. ...
1
vote
1answer
18 views

Determine if object is SPSite or SPWeb

I have a simple question, how to determine with PowerShell if a SharePoint Site is a SPSite object or SPWeb? I get all Site followed by user but some are SPSite.
1
vote
2answers
15 views

Powershell - Get compatibility from SPweb

I want to do a simple task, I made a script who get all followed site from a user. But I want to filter it with compatibilitylevel. With few sites, it's Ok, I do : $currentSite = Get-SPSite ...
1
vote
1answer
30 views

How to get all the custom content types in MOSS 2007 site or site collection level using powershell script?

I tried using $site.rootweb.ContentTypes but it returns all the content types in the site. I only want to return the custom content types that are created by users. Please someone help me ...
1
vote
2answers
40 views

SharePoint Online stop permissions inheritance on the list via PowerShell

As the question basically says, is there a way to stop permissions inheritance on a list or a library via PowerShell? Moreover there is a way to change user or group permissions on this list/library? ...
1
vote
0answers
10 views

How to find the List of activated features on MOSS 2007 environment?

My requirement is If i have given the web application name it should traverse through all the site collection and sites then it should show the list which contains the activated features. Please ...
2
votes
0answers
22 views

OneDrive for Business Permissions

I have a few users that have non-standard permissions for OneDrive for Business . I've found a PowerShell Script that will list all OneDrives but not the permissions. Is there a way given a site, to ...
1
vote
1answer
127 views

The timer job for this operation has been created, but it will fail

When I try to run the upgrade solution command on my server I get following error: The timer job for this operation has been created, but it will fail because the administrative service for ...
3
votes
0answers
26 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
2
votes
1answer
24 views

minimum permissions required for user to fire powershell commands for sharepoint remotely

I want to perform read/write operations on SharePoint 2010/2013 using PowerShell commands remotely. Commands will be New-SP<> , Remove-SP<> and Get-SP<> i.e. all read/write operations on ...
2
votes
1answer
19 views

Runing PSConfig.exe via powershell

I keep getting syntax error for the following psconfig.exe. Any idea? Start-Process "PSConfig.exe" ps-ArgumentList "-cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd ...
3
votes
0answers
47 views

SharePoint Online Apps

I need automate deployment of apps from repository to SharePoint Online(Office 365). Is there any scripts for PowerShell or another way for automate deployment of Apps?
1
vote
1answer
19 views

Cannot see newly created Publishing pages in Pages library

I have created a few publishing pages in Pages library using powershell. When I go to the Pages library I don't see them via the UI. However, I can see them via powershell script. If I go to Site ...
0
votes
1answer
18 views

PowerShell script to read columns of a list in all sitecollections of a farm

I have a list name like my contacts list in all the site collections of my farm,I need a report which tell me which all site collection have my contacts list with column name "help".
1
vote
1answer
18 views

Some of the files failed to copy during deployment of the solution

I tried to deploy a solution to our server, but it seems that there are two WFE servers (I am not sure about this if they are both WFE or WFE and application server. How can I see the difference?). ...
1
vote
1answer
18 views

How to Create SPGroup without Permission Level using PowerShell

How to create a SPGroup in my site collection with no permission level assigned using PowerShell. I have created the below script. But it fails to create SPGroup. foreach($groupName in ...
0
votes
3answers
37 views

Sharepoint online 2013: Powershell Stop permission inheritance after creating a new site

As the question basically says, is there a way to stop permissions inheritance after create a new website using powershell? Thanks a lot!
0
votes
0answers
16 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 ...
2
votes
1answer
11 views

List default content type across a site

Is it possible to list the Default Content type per Library via PowerShell?
1
vote
0answers
24 views

EnsureUser has a limitation?

We're converting all SP permissions into ActiveDirectory groups (one per uninherited object, per role level). I wanted the group names to reflect where the permissions were/are, so I assigned each ...
1
vote
0answers
17 views

Changes made in Sharepoint web interface to list aren't reflected when using REST method

I've got a Sharepoint list to which I've added some columns, like so: Now, I've been able to pull data from Sharepoint using the super awesome Rest API, using the below PowerShell code: $Items = ...
2
votes
0answers
21 views

Updating Global Managed Navigation

Consider the following PowerShell script to update a Term Set 'Global Navigation' which is pinned throughout the farm: Add-PSSnapin Microsoft.SharePoint.PowerShell -ea SilentlyContinue Write-Host ...
3
votes
1answer
40 views

Delete items from document library using PowerShell

I am trying to delete all items from my Document Library using PowerShell using the below code. But its not deleting the checked out items from the Document Library. How to delete the checkedout ...
0
votes
0answers
15 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 ...
2
votes
1answer
36 views

How to get property value from webpart

I want to get webpart property value using powershell $path="C:\Webparts\MyPart.webpart" $path [xml]$xmlPath = Get-Content $path $myrespath = $xmlPath.data.properties.name.UrlWebPart $myrespath ...
1
vote
1answer
26 views

powershell script to re-run workflow for each items in list

I have a workflow in list and i have changed something in workflow. List has already 2000 items, new modified workflow works for new item added. can someone provide me powershell command to re-run ...