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)

-1
votes
1answer
21 views

Powershell command to get all the users in domains

Is there any command or script to get all the users belonging to any domains in SharePoint 2010. Any help is appreciated.
1
vote
1answer
28 views

Remove sandbox solution from SharePoint online

I am working with Custom Ribbon Item development in SharePoint Online, i have created a custom sandbox solution and deployed on my SharePoint Online site. Once i activated the solution my site has ...
0
votes
0answers
20 views

How to deactivate webparts using powershell script

I want to deactivate forum and note board web part form my SharePoint site using powershall script. Any help please ? Thanks in advance :)
1
vote
0answers
28 views

Powershell Access user liste for SharePoint online

I would like to have a SharePoint online report for all users groups site, sub sites,library,items. For example: a user : Tood , i would like to know all the groups that he belongs to,all permission ...
0
votes
1answer
18 views

SharePoint 2013 - Export site error

I have a problem by exporting a SharePoint Site by using Export-SPWeb on my SharePoint 2013 server. The error code is: Export-SPWeb: These columns don't currently have unique values. Is it ...
2
votes
1answer
29 views

PowerShell - get items by view

I've run into an issue whereby running the below code will only return the items within the current page of a view. I.e. If I have 30 items in my view, but 60 total, I will only be returned 30 items. ...
1
vote
1answer
16 views

powershell script to add certificate

I wish to add a certificate in central admin using PowerShell script. I have no experience at all with PowerShell. I got this script somewhere from other site but not sure if it's correct or not. ...
0
votes
0answers
15 views

Get size of any particular generic list using power shell

How can I retrieve size of any generic list. I know how to calculate size for document libraries and List item attachment. But not sure about any particular list item or generic list. ...
1
vote
2answers
27 views

remove and re-add user account for site collections through powershell

Having trouble find any resources for using Powershell to remove and re-add an user account for site visitors. I have 80+ sites where I need to iterate through and remove the current visitor account ...
0
votes
0answers
11 views

SharePoint Online Management Shell, Search commands

I am having an issue with the global search center on Office 365, I have set the Global Search Center URL in the admin portal however it is not being picked up by all sites. I am still being taken to ...
0
votes
0answers
19 views

What's the c# equivalent of New-SPClaimsPrincipal in powershell

I am using following powershell command to get AD group claim from FQDN of AD grp $ADclaim = New-SPClaimsPrincipal -TrustedIdentityTokenIssuer "trustedIdentifierName" -ClaimValue ...
0
votes
2answers
41 views

Migrating document libraries from SharePoint (MOSS) 2007 - to SharePoint 2013

I am in the process of moving team sites with document libraries from MOSS 2007 - to newly created SharePoint 2013 team sites - based upon trial/error my 1st site which was HR did not move over so ...
1
vote
1answer
35 views

Using Powershell, can I run a report, export to PDF and save in Shared Documents Automatically?

I'm trying to determine how difficult it is to automate a process using Powershell. Using Report Builder, I created a simple report with a single parameter, the ID number of the list I use as a ...
0
votes
1answer
15 views

Error handling in ensureuser() method

I have an issue where I am trying to handle the error but could not get it done. here is the code: $UserSPU = "domain\user" $site = Get-SPSite http://siteurl $web = $site.OpenWeb() $user = ...
0
votes
0answers
41 views

The specified user could not be found." with EnsureUser with Powershell

I was trying to get a user with EnsureUser to make sure that if the user doesn't exists on the site collection, it is added right away. Write-Host "LoginName" $usernameau #this prints ...
1
vote
0answers
30 views

SharePoint PowerShell Client how to manage Workflow Events

I'm working on SharePoint Online site, and i need to desactivate a workflow when updating some values with PowerShell. Do you know if it's possible to modify EventTypes of an existing workflow ...
0
votes
4answers
33 views

Cannot updated item Author and Editor with powershell

I've copied some files from one library to another with Powersehll. Now I'm trying to update Author and Editor. Unfortunately, the author remains the user with wich I copied the item and the editor ...
1
vote
1answer
22 views

Redirect search from My site to Intranet

We are using SP 2013 on-prem. We have an Intranet and a MySite. When searching from MySite, I want the search to redirect to the search center at Intranet so the search results can be displayed at a ...
0
votes
0answers
11 views

Add custom tiles to waffle menu in O365 using Powershell Script

I have a requirement to add custom tiles in the waffle menu of O365. I am looking for a Powershell script for this implementation. Please guide.
0
votes
1answer
37 views

unable to update user profile properties with custom value

I am using a custom powershell script to update SharePoint Online user profile property (mobile number) with a custom value reading from a text file. but it is always throwing the error as ...
0
votes
1answer
28 views

How to get Item ID after Powershell Add-SPOFile

I am using Powershell to (bulk) Add-SPOFile to a Sharepoint Online Doclib. I need to Set-SPOListItem properties for the new items in the process, but don't know how to get the Item ID for the newly ...
1
vote
2answers
92 views

best appraoch to modify a site collection url inside sharepoint 2013

I have a site collection (of type enterprise KB) under the following URL http//servername/customer/questions where the customer is a wildcard managed path. now I want to change the site collection URL ...
0
votes
1answer
27 views

How do you check if a web application extension already exist

I can create a new web application extension using New-SPWebApplicationExtension but if it already exist I get an error with the message "The IIS Web Site you have selected is in use by SharePoint. ...
1
vote
2answers
32 views

Run SPD workflow on list items when items are updated using Powershell

I have a SharePoint List. I update each item in the list every morning using the following PowerShell script (because I need a calculated column to update daily): Microsoft.SharePoint.PowerShell ...
0
votes
1answer
40 views

powershell for sharepoint online active users

I would like to know how to generate a list of all active users in a SharePoint Online site, and its sub sites in a csv file, including the following information: Date of creation of the csv file ...
1
vote
1answer
25 views

How to check is the URL given is of site collection or subsite using powershell

how want to user ISSITECOLLECTION as flag. Means if url is site collection do this and if not do that using powershell.
0
votes
1answer
31 views

Copy-SPSite no longer work after patch

We have patched two SP2013 farms. One is standard another is enterprise. Both farm's copy-spsite no longer work after patch. The patches are not cumulative update download from SharePoint update ...
0
votes
0answers
15 views

Looking for a script to show where a solution is active in SharePoint 2010

I'm able to see that the solution is globally deployed (in CA) and I am also able to get the SolutionID with no problems. I'm looking for a way to show everywhere the solution is actually active and ...
0
votes
0answers
18 views

PowerShell Report on files uploaded during a certain time period

I'd like to generate a report using PowerShell that will tell me which files have been uploaded into a document library within a certain time period. Ex: The last month. I found this script which ...
4
votes
0answers
37 views

How to Install Sharepoint Online Management Shell on Powershell 5?

I need to migrate 300K records from my filesystem to Sharepoint Online (SPO). I am on Win7 SP1 and have MS System Center 2012 Configuration Mgr. installed so can't install WMF/Powershell 3 or 4, but ...
0
votes
0answers
7 views

Cross Site Collection Boundary for SPFieldLookup

I am looking for a solution similar to this post, Cross-site and SPFieldLookup, but I need to cross a site collection boundary. Is this possible with modifications to the powershell on the posted ...
0
votes
0answers
18 views

Get-SPLogEvent returns nothing

I use Get-SPLogEvent PowerShell command in order to retrieve ULS logs by following below link. https://technet.microsoft.com/en-ie/library/ff607589.aspx However, it returns nothing; neither error ...
0
votes
0answers
18 views

The following exception occurred while trying to enumerate the collection: Access is denied

I am trying modify content located in an unattached content DB. But I am having trouble accessing the lists. Here is my powershell code: $db=Get-SPContentDatabase -ConnectAsUnattachedDatabase ...
2
votes
1answer
47 views

Apply Alternate CSS to all site collections via Powershell in SharePoint 2013

I have a SharePoint 2013 environment where I want to apply a single Alternate CSS file across all site collections and subsites. I am using the following method. When I run this I receive a single ...
0
votes
1answer
16 views

How can I use Online Management Shell commands from inside an Azure WebJob?

I have a project which requires a reporting tool be included in it. I need to be able to run the Management Shell command Get-SPOSite several times a day at regular intervals. As I am dealing with an ...
0
votes
1answer
22 views

Move-spuser doesn't replace user

In sharepoint 2013 i need to replace a user by an other. For this i use: Move-SPUser -Identity "DOMAIN\JaneDoe" -NewAlias "Domain\JaneSmith" -IgnoreSID I give permission on a site to JaneDoe ...
0
votes
1answer
34 views

Applying theme to site collection and all subsite underneath Issue using Powershell in SharePoint 2013

Getting error while applying theme to site collection and all subsite underneath Issue using Powershell in SharePoint 2013 Below is the code $themeName = "PaletteTheme" $SPSite = Get-SPSite ...
2
votes
2answers
46 views

Disabling tabular view

I have a bunch of views to create for a couple libraries that are all basically the same except for some filter values. I can create them in PowerShell using ViewCreationInformation. After a bit of ...
0
votes
1answer
30 views

Move User Profile via PowerShell for account that has never logged into SharePoint

Move-SPUser works lovely if you have an SPUser object to pass into it. It will update the account name in the User Profile Service to the new account name and modify all the site permissions. ...
1
vote
2answers
45 views

Open EditForm instead of DisplayForm on Title click in SharePoint list 2013

I have a SharePoint list and in that there is a Title field. By default when we click on title it opens DisplayForm.aspx. Insted of this I want to open EditForm.aspx using Powershell Script or any ...
0
votes
3answers
24 views

Site provisioning wizard?

I am using SP 2013 on prem, and need to create custom wizard for creating site collections. I can use old school method of using an application page with c# etc, but I am instead looking for "the ...
0
votes
0answers
28 views

Is the SharePoint Online list of Site Collections actually a List and how can I access it?

When a user with the correct priviliges opens the SharePoint section of the O365 Admin Portal the first thing they encounter is a long list of site collections with storage quotas and site ...
0
votes
0answers
14 views

Creating multiple sharepoint sites & need to Add logo/cutom theme for those sites which newly created

This is my script. $csvfile='C:\CSVFilepath\bulkSitecreation.csv' Import-csv $csvfile | Where {New-SPSite -Url $_.Url -OwnerAlias $_.OwnerAlias -SecondaryOwnerAlias $_.SecondaryOwnerAlias -Language ...
0
votes
2answers
27 views

How can you minimize export time on a large site collection?

I'm attempting to perform triage on a 1.5TB subsite in SP2013. I've reduced content as much as the business unit will allow, and my next step will be to move the site into its own site collection ...
0
votes
1answer
29 views

Values of new columns in view not showing

I have the following situation: An existing list has been extended with several columns, all of the type Readonly Field from other List. The Problem is, that the new columns do not show the values. If ...
0
votes
0answers
17 views

Add existing content type to “new” button

I have the following code that adds a content type to a document library (sharepoint 2013) and it works fine. However I now need to make sure this new content type is added to the list of content ...
0
votes
1answer
37 views

Cannot find an overload for KeywordQuery in Powershell

I am trying to run the following line: $query = New-Object Microsoft.SharePoint.Client.Search.Query.KeywordQuery($ctx) and receive this error: New-Object : Cannot find an overload for ...
0
votes
1answer
27 views

Need script to list Groups by Team Site

I am trying to find PowerShell scripts that do the following: List all TeamSites. List all TeamSites, Groups that belong to that TeamSite with their permissions. List all TeamSites, Groups that ...
1
vote
1answer
51 views

Can I get Last write time of a file in SharePoint via Powershell?

Is it possible to get when was the last WRITE time of a file in a document library by using Powershell? $url = "http://myserver/sites/mysite/shared%20documents/myfile.xlsx" $webclient = New-Object ...
0
votes
1answer
24 views

My script seems to be stuck in a loop

I have the following script that will loop through each web/list/content type looking for a specific content type. If it finds it, and that content type is not in use, then it will delete it and ...