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
vote
2answers
33 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 ...
4
votes
3answers
4k views

App Pool created with Powershell name appears as GUID in IIS

I just installed SP 2013 in a test environment. I created an app pool to be used by the service applications using the Powershell command below: New_SPServiceApplicationPool -Name "Default ...
0
votes
0answers
14 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
37 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 "cn=adGrpame,ou=xxx,...
1
vote
1answer
48 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 ...
2
votes
1answer
642 views

Add items to the lists having lookup relation using powershell?

I am trying to add items to the comments list based on the Post list having lookup relation ship between these two lists,can any one give me an example how to update the lookup column values using ...
0
votes
0answers
245 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 mydomain/...
0
votes
1answer
30 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 = $web....
2
votes
1answer
734 views

New-SMBShare : No mapping between account names and security IDs was done

I am creating Shared folder and want to set permissions on it with SharePoint farm account and App_Pool Account as below: $FullAccessAccounts = "domain\farm,domain\app_pool" $ReadAccount = "domain\...
0
votes
1answer
79 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
4answers
44 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 ...
3
votes
2answers
2k views

GetListItems Exception

I am trying to get the contents of a Sharepoint 2007 list using Powershell. I'm able to connect to the web service but receive an exception whenever I try to call the GetListItems method. # Create ...
1
vote
1answer
3k views

How to copy content type from one site collection to another site collection in Sp 2013

I need to create a content type from one site coll to another, I found this link: http://get-spscripts.com/2011/02/export-and-importcreate-site-content.html The export works perfectly: $sourceWeb = ...
1
vote
1answer
28 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 ...
1
vote
2answers
3k views

PowerShell Cannot find Microsoft.SharePoint.PowerShell.dll

EDIT: I wrote this question in a misleading way. I should clarify that while I am on SharePoint Server 2010, I have admin rights on a SharePoint site. I do not have Foundation or Server apps. I was ...
1
vote
2answers
2k views

This powershell runs but why is it so slow

I ran this powershell which automates wsp addition, activate, deploy web parts and it runs fine. However, it takes about 3 minutes to go through the whole process. Is this norm? = = = powershell code ...
0
votes
0answers
33 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.
2
votes
2answers
651 views

How to save a list in a csv file via Powershell

I have a SharePoint online list with more than 9000 items and 22 column. The list is being populated on daily basis. I am taking backup manually every morning by saving the list as excel file in the ...
1
vote
2answers
105 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
36 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
49 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 $...
1
vote
1answer
37 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
347 views

Error while updating a Sharepoint record using Bypasslock method in Powershell

I am trying to update a Sharepoint 2010 record using ByPassLock method in Powershell. I am using below code [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") | Out-Null [...
1
vote
1answer
115 views

Reused term + Sharepoint + Powershell

How can I access reuse terms in powershell. I have total 6 terms out of that 2 are reused, through powershell script I am able to get 4 terms only, The 2 reused terms are not coming, is there any way ...
0
votes
1answer
35 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 ...
7
votes
2answers
7k views

Powershell error when trying to hook into UserProfileConfigManager

I am making the following call new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigmanager($servercontext) And get the following error: New-Object : Exception calling ".ctor" with ...
0
votes
0answers
21 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 ...
6
votes
3answers
12k views

Add group to Library permissions using powershell

I have written a script that created a document library called "Audit Logs" for every site collection in our environment. I then wanted to ensure that only Site Collection administrators and the ...
5
votes
2answers
103 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?
4
votes
0answers
57 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
8 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 ...
3
votes
2answers
2k views

Cannot find an overload for “Load” and the argument count: “1”

I am working on some utility functions to ease the administration of our O365 tenant by importing some modules as part of my profile. The thing I'm working on currently is being able to provision One ...
0
votes
0answers
30 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
1answer
43 views

PowerShell Script to assign Default Content (folders/files) to SP 2013 Document Set Content Type

I am using SharePoint 2013 on premises to build an application which utilizes a Document Set Content Type. I have used the GUI to: Create Site Columns for the website; Create a Document Set ...
2
votes
1answer
84 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
28 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
101 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
49 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 "http://...
0
votes
1answer
30 views

Import .cmp file to webapplication

I have exported my site with Central Admin to .cmp Now I use Import-spweb to import it to another webapplication like this : `Import-SPWeb http://srvdev:7070/Linstance/ -Path C:\Bak\Linstance.cmp -`...
0
votes
1answer
55 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. ...
0
votes
3answers
674 views

Disable inline editing sharepoint 2013 through powershell

I have migrated a sharepoint 2010 list with inline editing enabled to sharepoint 2013 and now this setting is not viewable through the GUI, thus I cannot disable it. Is there a powershell cmdlet for ...
1
vote
2answers
55 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
25 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
33 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
16 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 $...
1
vote
5answers
9k views

how to paste powershell script onto the Shell

I am trying to paste powershell script from a website but it doesn't let me right click on powershell console neither "Crtl + V" is working i downloaded powershell V.1
0
votes
2answers
36 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
32 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
18 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 ...