Questions tagged [powershell]
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 local and remote Windows systems.[except from WikiPedia]
1,092
questions with no upvoted or accepted answers
0
votes
1answer
254 views
SharePoint security based on Active Directory security groups not work
Please help me.
In the organization , we have deployed SharePoint 2013 , to control access to sites decided through security group Active Directory.
Active Directory security groups are added to the ...
0
votes
0answers
1k views
Help in updating multiple person field via powershell - Only updates one user
Im trying to update multiple person field but it only updates one person not multiple users.ONLY THE LAST ONE
As you can see below i'm picking up display name from a field "Contract Viewer" which has ...
0
votes
0answers
789 views
Find duplicate site column using powershell script
When I try to add any content type it give error. I checked ULS and it say "no two choice should have same ID".
I checked google and find that I have to delete duplicate site column.
Can anyone please ...
0
votes
0answers
158 views
Connect to SPFarm SharePoint 2010
I want to create a function to connect to SPFarm SharePoint2010 with a login and password ,I knowed that it use NTLM authentification ,do I need credential connection ?
is there any PowerShell ...
0
votes
1answer
183 views
Faster way of Downloading Metadata in CSV
we Have document library with 3lacs+ items. we have to download metadata of each file in a csv such as Modified date , modified By etc. I used powershell code for achieving this task but for some ...
0
votes
1answer
500 views
Error in restoring a sharepoint2013 site collection using powershell command
We have requirement to restore an existing site collection in share point 2013 to a new
site in share point 2013 and for this we have taken back up of the old site collection
using this power shell ...
0
votes
0answers
400 views
TermSetItem.Terms does not load properly?
I am attempting to write a PowerShell script to extract taxonomy entries from one environment to import them into another.
I'm running into a problem where one of my Term Sets' Terms property is not ...
0
votes
1answer
130 views
Unattended execution of C# scripts
I'm a beginner designing automatizing tasks.
I have 2 scripts in C# .These scripts generate two XML docs which are connected and synchronized with two native lists in a SharePoint Portal through ...
0
votes
0answers
2k views
How can i set/update Person Field(person/group field) via powershell
I have a column(it has a display name e.g John Shane) and I would like to use that to set/update an empty person field.
Why I need this is because this list was migrated from sharepoint 2010 to ...
0
votes
0answers
67 views
edit ps1 file with c#
i have an ps1 file witch work fine in powerISE.
But in my case ,I have a c# class witch execute ps1 file and I want to set variables values from c# class .
code in PS1 powershell
function Add-...
0
votes
1answer
461 views
SharePoint CAML/PowerShell Not Updating or Deleting Items
I am using Nessus XML RPC to update a SharePoint site. I can add items to a list, but cannot update or delete. No error is returned.
Variables:
$strSharePointSite = "https://mysite/_vti_bin/lists....
0
votes
0answers
46 views
Powershell copy a View from database and insert to existing Sharepoint list
I got a View, and a List of Sharepoint with same more of column. In Powershell at every Time Job I wan't add only this records, which are new, and add them to a list. Did You know any of scripts which ...
0
votes
1answer
34 views
How to create setup for Sharepoint 2010 web application
I have patch 1 until 3. To do the installation for each solution package may take a long time which is it is needed a long step.
So, is there any solution or tools that I can simplify the ...
0
votes
1answer
67 views
How to retreive last 10 users who have logged in a site using Power shell script?
I need to retreive last 10 users who have logged in a site.(I need to chek in each site under a webapp who are the last 10 users to log in). and export it to a csv file.Require code in powershell.
0
votes
0answers
762 views
Error during Import-SPWeb
I am trying to exporting from my developing machine which has a backup of the content database, and importing it back in the production farm.
Running:
Export-SPWeb -identity http://mysite -Path c:\...
0
votes
0answers
1k views
Calling Enable-SPFeature in SP2013 with CompatibilityLevel isn't working
In an SP2013 environment running in SP2010 mode has anyone successfully called the Powershell command -- Enable-SPFeature while specifying the compatibility level?
Example: Enable-SPFeature -identity ...
0
votes
0answers
99 views
2013 - Powershell Enable columns
I'm creating sites, subsites and lists via PS. And I need to "enable" the version/size columns, in lists I created.
I don't want to create them because they already exist. In graphical mode, I just ...
0
votes
0answers
212 views
Tool (SSIS or Powershell) to migrate large number of documents with metadata into SharePoint?
I'm looking to migrate 400GB of files (Word, PDF, etc.) from a network file share into SharePoint 2010. The target farm has two WFE's. My question is whether the fastest (in terms of the migration ...
0
votes
0answers
1k views
C#: cannot get listitem field value but works fine in powershell?
back again with a strange issue.
Using powershell I can get a handle on a SPListItem and do Item["My Field"] which prints its value.
However, in a C# custm workflow activity, when I attempt to do ...
0
votes
0answers
631 views
EnsureUser returns none existing users using ldapprovider
I'm writing a PowerShell script that adds users to a SharePoint site. To check if the user exists I'm calling the EnsureUser. But my issue is that the when calling this method with a ldap membership ...
0
votes
0answers
206 views
Update KPI Lists Script
I have about 400 KPI lists, and an error in one of the KPIs on each list. Is there a way I can update all of the lists automatically? I cannot use .NET, but a shell script is within an acceptable ...
0
votes
0answers
118 views
Automated PowerShell task cant create list items
I have a powershell script that gathers some data and looks to upload that data to SharePoint. Im uploading the data via 2 methods, as an excel spreadsheet, and as a list item in a custom list.
When ...
0
votes
0answers
204 views
Problem with adding webparts with limitedWebManager.ImportWebPart PowerShell
When creating a web in Visual Studio it generates a web part where the namespace and the class name is the same. I'm thinking that this is giving me a problem with the limitedWebManager.ImportWebPart ...
0
votes
0answers
823 views
How do you prevent “Disable-SPFeature : Cannot complete this action. Please try again.” errors?
When I try to run this cmdlet, I receive the following errors (only sometimes):
Disabling feature: SPFeatureDefinition Name=FeatureDefinition/b89234a6-xxxx-xxxx-xxxx-200dd03e1fdd ( ...
0
votes
0answers
2k views
enable web analytics customized reports
I'm running SharePoint Server Standard 2010. I don't see a "Customize Report" button in the Analyze tab of the Site Collection Web Analytics report. When I go to PowerShell and run
Get-SPFeature -...
0
votes
1answer
27 views
Run PowerShell Script on a Mounted Drive to Copy Files
I have written a PowerShell script that copies files from one mapped drive to another. Script runs fine when I run through PowerShell or command prompt. It mounts the both drives first and then wait ...
0
votes
1answer
373 views
could not save the list changes to the serverā in designer
I am trying to create custom new/edit forms in a SharePoint online site
but it shows this error:
Could not save the list changes to the server
I have tried these solutions:
Deleted website cache ...
0
votes
2answers
1k views
Get items modified in last 24 hours from Site collection
I would like to have the report of items modified in last 24 hours from site
collection
Could anyone suggest me the best approach to hang with it either by going
with SPaudit or with ...
0
votes
2answers
325 views
Upload files to Sharepoint using Powershell and FSRM
I am trying to upload a bunch of files to a SharePoint server. But I want to set the file-metadata before uploading so that it matches with SharePoint property and buckets it. Need help in setting ...
0
votes
1answer
333 views
How Can I Output Enterprise Features List To CSV?
I am trying to output to a CSV file the list of activate enterprise features in our sites with DisplayName, GUID and Scope as the content that is written to the CSV file.
I have the following ...
0
votes
1answer
2k views
Running script with powershell of Sharepoint Server without connecting to the Sharepoint Server
I have a folder in Sharepoint Server. In the folder, there is a script(.ps1 file), that I can run with powershell.
It works fine with powershell, if I run it when I'm in Sharepoint Server.
But I ...
0
votes
1answer
542 views
Assign a field of type Date Only using powershell will always subtract one day
I have the following powershell script to create a copy of a item:-
$web = get-spweb "http:*********"
$list = $web.lists["Action"]
$list2 = $web.lists["Risk Issue"]
foreach ($i in $list.items)
{
$a = ...
0
votes
2answers
907 views
PowerShell script to Create My Site Host Site Collection
I am trying to create My Site Host Site Collection through PowerShell scripts. I am able to create a new web application, set Self Service Site Creation Enabled property on it, Create a new Permission ...
-1
votes
1answer
84 views
How to remotely add term sets in the central administration term store using C# or Powershell
I would like to add remotely term sets in the managed metada service using C# or Powershell.
How can I do it ?
Regards,
Arioule
-1
votes
1answer
664 views
Error when upgrading service databases
So, I have recently run a load of CU's (July 2017) and now my Search crawl isn't working.
Reviewing the error logs, it seems to be because my databases are now too far out lf date. Chexcking the ...
-1
votes
1answer
2k views
Add AD group to Sharepoint 2013 using powershell as the AD group domain and name is changed
Currently SP 2013 site has domain1\abc AD group but this has to be updated/add new group domain2\xyz using powershell for 500 site collections. will the identity claim be generated if the group is ...
-1
votes
1answer
634 views
Powershell PnP error converting Microsoft.SharePoint.Client.Web object
I am trying out Franck Cornu's O365StarterIntranet, from Patterns and Practices (PnP).
I have updated to the latest PnP powershell Online, the latest SharePoint Online SDK.
Most of the things work ...
-1
votes
1answer
72 views
how to prevent adding extra version when copying items between lists using Powershell
I am working on SharePoint server 2013, and I wrote the below script to copy items from one list to another list along with the original item versions.
$web = get-spweb "http://server/Delivery/"
...
-1
votes
1answer
245 views
Change Composed Look on muliple Site Collections
I need to create 100+ site collections in SP2013. I have a PowerShell script and XML file to achieve this (and is working).
However, marketing want to brand and change the look of the Team Sites - I'...
-1
votes
1answer
1k views
PowerShell Script - list of MySite (OneDrive) quota usage
I am looking for a PowerShell Script that can export a list of our SharePoint users with the information of used quota (Total Quota, Used, Free, ...in Megabytes). I have only found the scripts where ...
-1
votes
1answer
1k views
Get absolute url of a page layout on a Publishing page
We have migrated a site collection using a third party tool(the question is not related to third party tool) and observed that in the migrated site, "Pages" library pages point to an altogether ...
-2
votes
1answer
399 views
Add “Everyone except external users” to sharepoint visitors group using powershell CSOM
I want to add Everyone except external users group to SharePoint visitors group using powershell CSOM.
I googled it but didnt find correct script.
Can anyone help me in this?
Please respond ASAP....