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
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 ...
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
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
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
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
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?
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”) ...
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
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 ...
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 ...
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 ...
-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
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 ...
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
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 ...
0
votes
0answers
6 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 ...
1
vote
2answers
17 views

create new qoata : Warning storage level must be an integer that is greater than or equal to 0 and less than the

I am using sp 2013. I try to create a new qoata template but still got this error: System.Management.Automation.SetValueInvocationException: Exception setting "StorageWarningLevel": "Specified ...
1
vote
1answer
22 views

Install sharepoint 2013 in Windows Server 2012 R2

I want to install sharepoint 2013 in Windows Server 2012 R2 , what is the best practice methods i will follow to install successfully using power shell or without power shell ?
0
votes
1answer
13 views

how to only add content type on a specific page

this code add my content type to all sites but i want to add my content type to a specifik site for example under http://portal i have a site created named site1 how could i rewrite my code to add ...
0
votes
1answer
34 views

Remove-SPWeb - content database

Does the command Remove-SPWeb remove the web also from the content DB? I have a site collection with 10 webs, the size is around 100GB, I wish to remove some webs and reduce the size of the content ...
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
3
votes
1answer
31 views

How to show 'Created By' user name in a survey set to not show user names in results

I have a SharePoint survey configured to "Show user names in survey results = No". I need to run a report showing the name of each person who responded to the survey. I do not need to know who ...
1
vote
1answer
13 views

Enable SP Site Collection feature in powershell for all sites

Hello I would like to run a script to enable a site collection feature on all sites within a web application. Here is my script: Add-PSSnapin -name "Microsoft.SharePoint.PowerShell" $SPWebApp = ...
0
votes
2answers
19 views

Lists/Libraries left behind after WikiPlus Uninstall

I uninstalled WikiPlus a few months ago, now while migrating to SharePoint 2013 there are libraries referencing the wiki plus templates that were removed when the solutions were retracted and deleted. ...
0
votes
0answers
26 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
11 views

Get synonym of term using PowerShell

I want to get a term by its synonym. For example, I have unique synonyms and I want to get the term and other synonyms using this unique synonym. All using powershell. is there a way to do that?
1
vote
1answer
31 views

Migrate all Term groups from one MMS to another MMS using PowerShell

I have two managed metadata service applications in the Farm. I want to copy all the groups, term sets and terms with existing GUIDs from one MMS term store to another MMS term store using PowerShell. ...
1
vote
1answer
22 views

SharePoint Online - Hidden site collections

We use Powershell with CSOM to remove and provision site collections in SharePoint Online during the development phase. We use the Powershell commands provided by the PnP team like this: ...
1
vote
0answers
16 views

GetListItems isnt working for library with metadata - PowerShell

So after searching over and over on the net for a reason for my problem. I decided to post it here. I'm trying to get all the items in my list that are in a subsite. In that subsite there are 3 ...
2
votes
1answer
122 views

Pretty url in SharePoint

The url's on our intranet are pretty, i.e. http://intranet/test, but we want to show full path of the page, like this http://intranet/test/default.aspx I don't know why we get pretty url and have ...
1
vote
1answer
33 views

Set password policy for specific user in O365?

In Office 365, I have a workflow that runs in the context of another user - a service user. The service users password gets expired after 120 days and then has to be edited, like it does for all other ...