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
30 views

But how can I check and wait with PowerShell if provisioning of the SiteCollection is complete

I have used CSOM and PowerShell to create a SiteCollection in o365. $tenant.CreateSite($properties) $ctx.ExecuteQuery() But how can I check and wait if provisioning of the SiteCollection is ...
0
votes
1answer
42 views

Migrating Team Site from OnPrem to SPO

I've been trying to get whole site migrated from OnPrem environment to SPO, using following instructions: https://technet.microsoft.com/en-us/library/mt210445.aspx#PrepContentPackage OR https://blogs....
0
votes
1answer
39 views

How do you delete a persistent column/field for a library with SharePoint Online?

One of my users added a column/field named Active. She was not aware that it would be flagged a persistent column/field in SharePoint. Now when she adds huge swaths of documents to this library she ...
3
votes
2answers
125 views

Move or copy a O365 SharePoint subsite

How do you move or copy a O365 SharePoint subsite and all of its children subsites in one site collection to another site collection? I have looked at using PowerShell but it does not seem possible ...
0
votes
3answers
42 views

How do I update CreatedBy field of List Items based on criteria?

I need to update the CreatedBy field of a number of list items based on the criteria of Title and another user defined field. If I could run some powershell similar to the following it would be great. ...
0
votes
0answers
42 views

Associated owner group is always null

I am using PowerShell to create site collections, and add users by code. I add users as visitors, contributors and as owners. In my powershell code I can get both the Visitors and Contributors group, ...
0
votes
0answers
16 views

Alerts Changed via Powershell do not show updates in SubEdit.aspx

I'm having a weird issue when trying to update user alerts via Powershell. I am able to update the alerts, and getting properties on the alerts as well as practical testing shows that the alert ...
0
votes
0answers
42 views

How to use List.Rootfolder.Files.Add to add Check-In Comment?

I am bulk loading 288K files to a DoclIb on SharePoint Online using OfficeDevPnP.Powershell.V16 and need to add a Check-In Comment programmatically. Currently I first upload the file, then call Set-...
1
vote
1answer
37 views

Move-SPUser - only changing upa but not mysite url with new id

SharePoint 2010: Move-SPUser works however in SP 2010 it does not change the mysite url to reflect user's new id. for example, mysite.fu.bar/sites/oldid so it should be mysite.fu.bar/sites/newid. The ...
1
vote
1answer
29 views

Getting error on PSConfig - SharePoint 2013

I am trying to run this command PsConfig -cmd secureresources in the Windows PowerShell ISE. But I am getting following errors: "Psconfig: The term 'Psconfig' is not recognized as the name of a ...
0
votes
1answer
35 views

How to add a content type field to a SPList using PowerShell

This the scenario: I have created a new LookupField (Content Type) called MyLookupField which derives from SPFieldLookup as shown below: public class MyLookupField : SPFieldLookup { ... } Here's ...
0
votes
0answers
13 views

How do I get a document set into a Powershell array instead of a SPListItem

I'm writing some powershell to supplement a 3rd party application. I'm trying to get a group of specific document sets into an array. the problem is the array is being populated as SPListItems, not ...
0
votes
1answer
29 views

PowerShell/CSOM - SPFeature definition is blank

I'm using this PowerShell/CSOM script to return a the GUIDs of the features on my SharePoint site. It works as expected, however I would like to get the name of the feature as well. Here is the ...
0
votes
1answer
22 views

how to restore a subsite after being deleted via powershell

I deleted a subsite by mistake using PowerShell but now I can't find it in Recycle Bin of the site collection. I used Get-DeletedSite, but I don't see the subsite there. Anyone has got any idea how ...
0
votes
1answer
42 views

Is there a way, with CSOM/JSOM/REST, to find all the managed property names for a list or content type?

I'm writing a PS script to update them to be searchable and to add aliases, and the task is taking a while. I need to find the managed properties that exist without manually searching for them or ...
0
votes
0answers
27 views

Cannot delete item that “does not exist”

I can see the item in the browser and I can find and return the item in powershell, but when I try to delete the item, I get "Item does not exist. The page you selected contains an item that does not ...
0
votes
1answer
32 views

CAML to get all checked out docs

I ran the following powershell however, it only list 20 items and in reality I have about 50 items for the site I am running for. I am the farm and site admin. I see 50 files when I go to the library ...
2
votes
3answers
49 views

Powershell script to get users who has edit access

I need to get a PowerShell script to get all the users and their email address who have edit access. It would be good if we can filter it to have only one selection only as there are only users who ...
0
votes
2answers
18 views

power shell scritpt to back up a site collection with no content

Can you please let me know if we can backup a site collection with out data using poweshell. I know how to do with data, but i dont want with out content, Any help is greatly appreciated
0
votes
2answers
48 views

Timeout in Import-SPMetadataWebServicePartitionData method - Powershell

We are having an issue with importing managed-metadata from our live environment into the test environment (Sharepoint 2010 Standard). We are using this code to import the managed-metadata: $...
0
votes
0answers
18 views

SharePoint Powershell rekove site-permissions

Based on a .csv with all the students, i am creating a subsite for each schoolclass and a document library for each student. I am breaking the inheritance for the sites and libraries, but the Admin ...
0
votes
0answers
45 views

SPO Management Shell: ConvertTo-SPOMigrationTargetedPackage

I've been having some problems with the SharePoint Online Management Shell that I hope someone here can help me out with, as I quite frankly think the error documentation is scarce, to say the least. ...
0
votes
1answer
35 views

Powershell Date Parsing for Sharepoint Set-SPOListItem Update

I am trying to parse a CSV file in Powershell for a bulk file and metadata upload to SharePoint Online and am failing on the date fields. The incoming date format is '2007/12/24', the expected SPO ...
2
votes
0answers
34 views

CSOM PowerShell - $folder -PropertyName “HasUniqueRoleAssignments”

I'm trying to use the Load-CSOMProperties.ps1 made by Gary Lapointe to report me if a folder "HasUniqueRoleAssignments". This is working fine for webs and lists but it doesn't seem to work for folders....
0
votes
2answers
27 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
2answers
197 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 ...
0
votes
1answer
28 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 http://www.mstechbits.com/...
0
votes
0answers
22 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?
1
vote
1answer
140 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 = "-" ...
1
vote
4answers
44 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 ...
3
votes
1answer
34 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
44 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 ...
-1
votes
1answer
45 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
64 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
28 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
30 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
57 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
31 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
23 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
22 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
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 ...
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
2answers
51 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
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 ...
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....
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/...
1
vote
1answer
58 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
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 ...
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 ...