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
0answers
2 views

get-spmanagedaccount how to get the samaccountname and not sid

when I do following i get sid. how do i get the account name (domain\svc-search) etc. foreach($ma in get-spmanagedaccount) { write-host $ma}
1
vote
1answer
684 views

How to install SharePoint 2013 Installation with SQL Server Authentication

I'm just curious about the steps required to install Sharepoint 2013 using SQL Server Authentication. Also if there are any drawbacks that i might not be aware of. Here are some steps i currently ...
1
vote
2answers
688 views

Download all files and folders from document library to local directory o365 powershell csom

I have a document library on Office 365 which I want to download to my local directory via powershell csom. I want to keep the file structure so its exactly the same in my local directory as it is in ...
1
vote
1answer
29 views

SharePoint Online CSOM PowerShell Script to create folders and add permissions

I am rather new to this place but quite few previous posts helped me out a great deal while creating some PowerShell scripts. I have been trying to create a script that will create a couple of folders ...
2
votes
1answer
637 views

Can't update SPField through PowerShell - object has been updated by another user since it was last fetched

I get the following error when trying to update the choices for a Site Column: "The object has been updated by another user since it was last fetched." I get this error if I try to add a new choice ...
0
votes
1answer
573 views

Get permission level for SharePoint Group Powershell

I have different SharePoint groups for sub-site which has unique permissions, I am writing a powershell script and I have come across a point where i need to get the permission level of a XYZ ...
0
votes
0answers
16 views

Powershell Script to find URL's on content pages, lists and libraries that point to a specific url in SharePoint 2010

I'm trying to search through SharePoint 2010 to find links that point to a broken URL using PowerShell. Is there an easier way?
0
votes
1answer
3k views

Export large list to excel through powershell

We can successfully migrate a list to the excel through power-shell, but if a list is having 1 Lakh of data then can we transfer through power-shell? Is there any restriction on number of list items ...
0
votes
1answer
14 views

changing service accounts password - powershell way

I have about 10 service accounts for SharePoint 2013. Is there a good PowerShell script that I can use to change the password for all of these accounts? I have seen this ...
1
vote
1answer
40 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 ...
1
vote
1answer
26 views

Client Side PowerShell script to add a managed metadata column in 0365

Somehow I am not able to add a managed metadata column using client side PowerShell script. Here is the code I am using: #Specify tenant admin and site URL $User = "-" $Password = "-" $SiteURL = "-" ...
4
votes
2answers
7k views

creating site collections using SharePoint management shell 2013

I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing. For that Got a reference to the HNSC ...
1
vote
4answers
26 views

How to set master page on team sites?

I am trying to set a custom master page on SP 2013 team site (on-prem). All the samples I can find involves the publishing feature, so I am turning here for tips on how set custom master page for a ...
0
votes
2answers
41 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 ...
3
votes
1answer
21 views

Updating a UserCustomAction ScriptSrc

I'm trying to update a UserCustomAction that is set on a web. I am trying to update the ScriptSrc url of the action to include a query string parameter, ?rev=1, but it does not seem to be taking. ...
0
votes
0answers
24 views

Sharepoint 2013, access Most Popular Items in Library via Powershell

I'm creating a script to get some of the statistics SharePoint 2013 offers in a single file. The problem I'm facing is that I'm not able to get the most popular items for my document libraries. My ...
4
votes
3answers
1k views

SPO Retrieve HasUniqueRoleAssignements property using Powershell

I am trying to retrieve HasUniqueRoleAssignements property for multiple SharePoint Online lists using Powershell. I can do it for each one in SharePoint on-premises: ...
-1
votes
1answer
41 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
39 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
1answer
1k views

Creating a calculated column with replace in Powershell

I am trying to create a calculated column through powershell script. Below is the Script: Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue $site = Get-SPweb ...
0
votes
0answers
24 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 :)
2
votes
2answers
177 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
682 views

DTD Error with Connect-SPOService

Just recently I cannot connect to my tenant admin with PowerShell. When I call Connect-SPOService -Url https://<tenant>-admin.sharepoint.com I get the following error: Connect-SPOService ...
1
vote
0answers
29 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
24 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 ...
1
vote
1answer
241 views

Import-SPWeb : The DateTime represented by the string is out of range?

I am trying to import an exported sub site which exists in a separate site collection to another site collection that is hosted by different web application. I'm running the import command like this: ...
0
votes
2answers
43 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 ...
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
18 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
1answer
280 views

Problem Starting 2013 Workflow from Powershell

I have a scenario where I need to kick off a 2013 SPD workflow from a powershell script. This should be possible using the StartWorkflowOnListItem method. My script is as follows: Add-PSSnapin ...
2
votes
1answer
1k 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
1answer
2k views

User Profile Manager and its Enum does not give me the same count

Today, I have encountered another issue with SharePoint 2010. I have a powershell script that can pull the user profile details from the User Profile store, having used UserProfileManager to get the ...
0
votes
0answers
16 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 ...
4
votes
3answers
3k 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
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
23 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 ...
1
vote
1answer
42 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
576 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
3answers
902 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. One ...
1
vote
1answer
707 views

Get-SPGroup and Set-SPGroup commands

Like Get-SPUser and Set-SPUser, are there any commands like Get-SPGroup and Set-SPGroup ? I want to use Powershell commands like Set-SPGroup -Identity $ADGroupName -Web $SiteCollection
0
votes
0answers
51 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 ...
0
votes
1answer
17 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 = ...
1
vote
1answer
603 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 = ...
0
votes
1answer
42 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
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 ...
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
2k 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
24 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 ...