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
1answer
17 views

How to fix broken url images in SharePoint pages uisng powershell?

We have done a migration from SP2007 to SP2013 but we have got some broken images URLs. I have searched around for a solution but they all are about either top menu or left menu and the publishing ...
1
vote
2answers
340 views

Powershell script to get list of AD groups used from site collections in SharePoint 2010

I need to list all the AD groups used in all the site collection. Can any one please help. $SPWebApp = Get-SPWebApplication https://*******.com/ foreach ($SPSite in $SPWebApp.Sites) { write-host ...
0
votes
1answer
18 views

How to filter the modified date column to get documents today 8 am to 10 am

How to filter the modified date column, I am creating a view based on I want to show documents which are uploaded by today only but from morning 8 am to 9am .
-1
votes
1answer
17 views

get user name and email using powershell script from a document library

1) i want to get the user email and send email , who uploaded the documents from 8 to 9 PM using power shell script. i want distinct users these users are domain users who uploaded documents.
1
vote
0answers
18 views

Problem when running PowerShell

I've a PowerShell script file to create results source. It works well on staging, but has some problems on UAT. First of all is the trouble with Get-SPSite. I've managed to resolve it. However, when I ...
4
votes
1answer
34 views

Download RSS feed as xml file from Sharepoint Online using PowerShell

How it is possible to download xml file out of this feed (website) using PowerShell? I can authenticate with sharepoint using CSOM but do not what to do next. As service user is not administrator I ...
1
vote
3answers
2k views

update SPList using csv via Powershell

knowing that is possible in PS, exporting SPList items to PS objects(link1 link2) what is the best way, to go into the other way: Create/Update an SPList from an exported csv or format-table.
3
votes
1answer
19 views

SharePoint Online - Adding Group Manager to TermStore Group using Powershell

Is it possible to add Group Manager, Contributor to a TermStore Group in SharePoint Online using PowerShell? Something like: $termGroup.AddGroupManager(“GroupName”) ...
2
votes
0answers
27 views

How to use kerberos for remoting powershell

I am trying to set up a remote powershell session to a sharepoint server in order to do remote management. I am running as a user with full mgmt rights at the sharepoint server If I use Credssp and ...
0
votes
2answers
440 views

Difference between SPWeb and SPSite

What is the difference between SPWeb and SPSite? I have this code using SPWeb $web = Get-SPWeb http://mysite ForEach($list in $web.Lists) { if($list.BaseType -eq "DocumentLibrary") { ...
0
votes
1answer
23 views

Get SP online site content via PowerShell or C# (for BackUp SharePoint Online Site content into local storage)

I need to BackUp SharePoint Online Site content into local storage. I know there is no tools for it (for SharePoint Online version). I want to write my own tool that will copy all site content to a ...
1
vote
0answers
23 views

Disadvantages of starting a remote powershell session and doing deployment

Are there any disadvantages in starting a New-PSSession from dev machine and deploying the wsp to QA machine remotely rather than going to QA machine and deploying the wsp?
1
vote
1answer
8 views

Programatically remove “custom xml data” from Office docs in SP?

In Word 2013, if you open a document there's an option to "Check for Issues" and this gives you the option to remove custom XML data. Is there a way to achieve this programmatically with powershell? ...
1
vote
1answer
7 views

SharePoint 2007 Powershell - Overwrite documents that require check out

I'm trying to build a PS script for a SharePoint 2007 which will loop through a list of site collections and update files within the 'Style Library' folder. foreach ($file in $files) { $stream = ...
0
votes
1answer
11 views

Remove the workflow associations on the content type and document library using PowerShell

How to remove the workflow associations on the content type and document library using PowerShell? Currently I have added PowerShell to configure workflow in my document libraries and its associated ...
0
votes
1answer
11 views

powershell script to exe with command line arguments

I use the following PowerShell code taking command line arguments for creating site collections and it works fine. However when I convert it into an exe and execute it? param( ...
0
votes
1answer
10 views

Configure Record Center and Content Organizer Rules using PowerShell

How to create content organizer rules and configure these rules with the help of PowerShell.I have created a Record Center site collection using OFFILE#0 as template name and with the help of ...
3
votes
1answer
38 views

2010 to 2013 Migration Site Collection Upgrade goes to white screen

After mounting my WSS_Content database, I went back to the migrated site collection to upgrade it, once I click "Im ready" to start the site collection upgrade, the processing screen flashes and then ...
0
votes
1answer
494 views

UserProfileService GetUserProfile Modified Date in 2010

I have a problem when loading a UserProfile from the UserProfileService in Powershell. I am able to get a list of properties, however I can't seem to find when the profile was last modified. The one ...
1
vote
1answer
21 views

Download page from SharePoint Online using PowerShell

How can I download the contents of a page on my SharePoint Online (Office 365) environment using PowerShell? This is an .aspx page - I am looking for the rendered/html version, same as if I went there ...
0
votes
3answers
20 views

Enable-SPFeature - issue

I am stucked on this error: Operation is not valid due to the current state of the object while tryng to enable a feature (site scoped) with Enable-SPFeature powershell command. I tried to ...
0
votes
1answer
12 views

how to assign data files path in sql server when creating new web application in share point

recently we migrated storage of all sql server databases to diffrent storage. and mounted back all content databases , and now sharepoint farm is working fine but, when i try to create new web app i ...
0
votes
1answer
28 views

PowerShell - Call function within a function

How to call one function inside another function along with passsing arguments in Powershell? Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue ...
1
vote
1answer
15 views

Source content DB Size after moving site collections

I have one content DB (Source content DB) with 500+ site collections in it. Recently i have moved all site collections to 10 different content DBs (using Move-SPSite command) in order to improve ...
2
votes
2answers
77 views

Add AD group to SharePoint Online using REST API

Is it possible to add an AD group into SharePoint. I've created a user group in the Office 365 portal, which appears to be stored in AD. Is there a way of searching for this AD group and adding it. ...
1
vote
2answers
20 views

How to create SharePoint provider-hosted-apps without Windows PowerShell

I already had create SharePoint provider-hosted-apps. But with Windows PowerShell there was an error and all SharePoint services was changed so I need to create SharePoint provider-hosted-apps without ...
1
vote
1answer
36 views

Splitting one Content DB into 10 DBs in SP 2010

We have 650 site collections all in one Content DB with 800+ GB in size. Because of this huge size, performance goes down and we have decided to split the DB into 10 different content DBs with maximum ...
1
vote
1answer
18 views

MissingSetupFile issue - file does not exist

I am trying to get rid of the health error [MissingSetupFile]. I followed some guide to get (querying the contentDB) the Id of the file (and of the Site and Web). The issue is that the file does not ...
0
votes
1answer
732 views

Why are changes to navigation nodes by my Powershell script rolling back?

I've written some scripts that were supposed to help me correct links manually added to the navigation of a site. Basically I'm just doing a find and replace in all of the URLs. I've figured out how ...
1
vote
1answer
13 views

Determining size in MBs and user count for 'one particular' site collection

I need to determe the size of a site collection in MB. I tried: Get-SPSiteAdministration | select Url, DiskUsed, UsersCount But it returns DiskUsed and UserCount for all the site collections in the ...
0
votes
1answer
22 views

Changes to ShowInEditForm not applying

I hid some list level fields from the edit form of a Document Set by setting ShowInEditForm to false via the management shell. I now want to add them back to the edit form. I've changed ShowInEditForm ...
1
vote
3answers
1k views

Getting the list name from url with PowerShell

I am trying to parse any given SharePoint URL and get back the site, web and list references using the code below. I would like to achieve this even if I provide the URL of an item. The code below ...
11
votes
4answers
11k views

Restore-SPSite to the same content database

I ran Restore-SPSite on my server from a backup. I then deleted the site collection and did it again but got the following error: Restore-SPSite : The operation that you are attempting to perform ...
0
votes
1answer
18 views

Extract Site Collection Properties to File

Is there a way to extract all the Site Collection properties to a file using SharePoint Management Shell
0
votes
1answer
21 views

Add multiple users to People or Group field of a list using PowerShell

I would like to add some users to a people or groups field of a custom list with PowerShell? How can I do that?
0
votes
1answer
19 views

Custom List Template not listed in web's ListTemplates

When viewing the List Template gallery I can see my custom (deployed via wsp) list template. I cannot see it when using powershell to display the web (sub web or root web)'s ListTemplates. ...
1
vote
1answer
39 views

PowerShell to copy web part page from dev server to production server

This question has been asked before, but my situation is different. Scenario : I have created a page (development server) which contains "Excel webpart" and few "Custom web parts". Now I want to ...
0
votes
2answers
855 views

How to set Navigation in Office 365 site using powershell?

I am creating some Global / Current navigations nodes on a SharePoint site (SharePoint 2010 in house site) by fetching them through a csv file. Below is the script: #Script to create Global/Current ...
1
vote
1answer
451 views

Powershell, how to check if spuser object is user or group?

I have a powershell script which is fixing some corrupted userprofiles. But the results are also groups. I would like to skip the groups and fix only the users. How can I check if the spuser object is ...
1
vote
2answers
18 views

PowerShell for uploading a .stp file into the list template gallery

Would like to know how to upload a .stp file from my D drive to my list templates gallery in my site collection using PowerShell
1
vote
1answer
845 views

Backup-Spsite always failing with HRESULT 0x80131904

While taking backup of Site Collection on SharePoint 2010 using powershell command "Backup-SPSite" I always encounter below error : "Backup-SPSite : Exception from HRESULT: 0x80131904 At line:1 ...
0
votes
0answers
16 views

how to copy only folders and not files in the folders using powershell [closed]

I have MoveFromPath which has folder A and subfolder B and a File Name X.xml. Ex: MoveFromPath\A\B\X.xml I have to copy only Folders to the MoveToPath I don't need to move X.xml. The below snippet is ...
-2
votes
2answers
20 views

What is feature ID for Feature “Open Document in default application” SP 2010

What is feature ID of Feature "Open Document in default application" in SharePoint 2010 environment?
0
votes
3answers
22 views

Getting feature ID by its name in sharePoint 2010 Powershell

I want to get Feature ID by using its name in sharepoint 2010. I have activated the feature on my root site collection using web interface. What is the management shell command for doing this in ...
0
votes
2answers
18 views

Moving Site Collections between Content DBs

I have a very huge Content DB with over 500+ site collections. I want to split it into many databases that I can done using Powershell. I have two questions: Whats will happens to users working ...
0
votes
1answer
17 views

Office 365 - Create a User Group and add this to TermStore Users

I want to know how to create a users group in Office 365 Admin using PowerShell. Is there a possibility to add this group to TermStore Administrators and TermSet Contributor - Through Powershell only. ...
1
vote
1answer
431 views

SharePoint 2013 Online: List of all suspended workflows

Is there a powershell script or service out there that gives you a list of all workflow statuses? Primarily we are looking for a way to get a list of all current suspended workflows. Update: Here ...
1
vote
1answer
11 views

How to display information about active and inactive SP2007 workflows?

I'm new to the Workflow Object Model in MOSS 2007, and trying to find an example of C# code that does the same as this SP2010 PowerShell? //get all the lists $lists = $web.Lists foreach ($list in ...
2
votes
3answers
2k views

DisableEventFiring using PowerShell

How can I call DisableEventFiring using PowerShell? C# code like this : Type typeInfo = typeof(SPEventReceiverBase); MethodInfo disable = typeInfo.GetMethod("DisableEventFiring", ...
2
votes
2answers
80 views

Error creating PeopleManager object using CSOM in powershell

I have this line in my powershell script: $peopleManager = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($context) When it gets hit I receive the error: New-Object : Cannot ...