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)

3
votes
2answers
62 views

Changing User Profile Property for all the users in sharepoint 2010 using powershell

I want to change the edit setting and Display setting value of a user profile property called Department for all users. Can someone please tell me how to do it. I can get to the department ...
1
vote
1answer
31 views

Creating a Host Named Site Collection with a Managed Path

I am attempting to create a Site Collection that appears as a managed path. Here is the scenario: I have a company that is in many regions and I have a toplevel portal for them - finance. the HNSC is ...
0
votes
2answers
65 views

Powershell get permission on SPSite/SPweb (and all list)

Do you know how to get, in powershell, all permission for a SPSite/SPWeb and all list? Thanks.
0
votes
2answers
40 views

Manual Pagination for PowerShell command for SharePoint 2010/13 other than Out-host -paging

I want manual pagination for PowerShell commands for SharePoint such as Get-SPUser or Get-SPSite. I know there is command viz. Out-Host -paging facility available but it is not manual pagination i.e. ...
0
votes
2answers
34 views

$web.Groups returns empty Powershell

I have a site collection under which i have created a sub-site with unique permissions, this sub-site has following groups Community Site Owners SharePoint Group Full Control Project Site ...
1
vote
1answer
48 views

Remove site column that's associated with content type in site collection using PowerShell

I want to delete a site column using PowerShell, which is associated with my custom content types that are defined in my SharePoint 2013 site collection.When I removed the content type association ...
0
votes
1answer
23 views

How to take the backup of SPList having MMS Column

How to take the backup of SPList having MMS Column? If I take the .stp file from the list settings I can not get this managed metadata column after taking the template file. Any other way I can get ...
0
votes
2answers
22 views

How to compare the versions of 2 SharePoint Servers

I want to know how to find out the versions of 2 SharePoint servers in my development environment. I tried with the PowerShell command (get-spfarm).buildversion I got the below result for ...
1
vote
1answer
43 views

PowerShell Property for show inside folders for a document library

How to get the property for getting "Show items inside folders" within a document library's advanced settings using PowerShell script.I am having 3 folders and I do not want these folders to be seen ...
0
votes
0answers
23 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
37 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
36 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
66 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
30 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
74 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
48 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
36 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
286 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
33 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
41 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
12 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
43 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 ...
1
vote
0answers
22 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
26 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
28 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
47 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
27 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
24 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
26 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
22 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
26 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
54 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
19 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
32 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
22 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
35 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
54 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
85 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
12 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
1answer
49 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
150 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
33 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
43 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
61 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
55 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
25 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
31 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
63 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
35 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
97 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!