Tagged Questions

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
vote
1answer
14 views

it's possible to give a line break in Newsfeed Post? (via powershell)

New post provisioned via powershell script to a Newsfeed $site = Get-SPSite "siteurl" $ServiceContext = Get-SPServiceContext $site $ProfileManager = new-object ...
0
votes
2answers
21 views

PowerShell script doesn't appear to work as scheduled task

I have a Pscript for clearing and repopulating a Sharepoint 2010 list. It works fine when run manually. I set it to run as a scheduled task, and the history shows it as running successfully, but the ...
0
votes
1answer
11 views

Create Audit Log Script w/ Custom Dates

The following PowerShell script pulls all the content from a specified SharePoint site and creates an audit log for all versions and dates. My Question is how would I implement a Start/End date? For ...
0
votes
0answers
10 views

Last updated information in User Profile with time date in SharePoint 2013?

Is it possible to get the last updated date with time in user profile,if user updated their information,is there any default Columns available to get this type of information using power shell.
0
votes
0answers
13 views

How do you get Group/Permissions information for a subsite (that breaks inheritance) on a SharePoint Online Site Collection using Powershell

tl;dr version: Ultimately I can get a list of all Groups for a given Site Collection, but I can't tell which groups give access to which sites. Which is to say that, for a given subsite that has ...
0
votes
2answers
24 views

Basic question: Difference between List.items and List.ItemCount in SharePoint

Just for clarifying, I have written following two lines in Powershell script and see output as: $web = Get-SPWeb http://intranet; $list = $web.GetList("documents"); $items = $list.items; i see ...
0
votes
1answer
16 views

PS Script copy file in specific folder

Almost same question as here : Power shell script to copy the files and folders with in 2 specific dates I understand the script, which copies entire folders/files from a library to another. But my ...
0
votes
1answer
14 views

AutoSPInstaller install script failed with Warning: Cannot locate SharePoint binaries

I have trouble understanding a warning message I get when I start the AutoSPInstaller script. This is something I have seen first time after countless installations of SharePoint 2013. I have also no ...
0
votes
0answers
8 views

When cloning the search index component in SharePoint 2013, where should the root directory be placed?

I've got an index component in my search service application listed as "Degraded" status and they say the solution is to create a new one and replace the old one. But when using the ...
0
votes
0answers
8 views

BDC: cannot logon with credentials obtained from secure store provider

Hmm.. When I manually create a new contentsource, point it to the single sql database-bcs everything works OK (no probs) (via Central Admin) but... When i try the same via a powershell script I get ...
0
votes
1answer
16 views

Change SharePoint Service Account using PowerShell

In the Central Admin you are able to change a registered Service Account to a specified service (as in the image) Is this possible to manage by powershell? Thanks
0
votes
2answers
35 views

Hide errors displaying PowerShell for sharepoint

I want to supress displaying error messages on a certain bloc of code in powershell. I know that -ErrorAction SilentlyContinue supress error displaying, but it only goes with a cmd-let, in my case i ...
0
votes
1answer
40 views

Migrating user accounts from one AD domain to another AD Domain using Powershell

Is there any Powershell command to migrate all the 1000+ user accounts from old AD domain to new domain? If yes, what will be the possible powershell script? Any sample Powershell script or reference ...
1
vote
2answers
13 views

Can we use Powershell in SharePoint server 2007 platform

I want to use the Powershell capabilities for SharePoint Server 2007. Is that possible?
0
votes
1answer
22 views

Sharepoint2010 powershell assign unique permissions to files in a document library

I am trying to assign unique permissions to files in a document library using PowerShell. i.e. iterate through each file in a document library break its role inheritance and assign read permissions to ...
0
votes
2answers
25 views

Restore the root site as site collection with in the same web application using power shell?

we migrated the sites from 2003 to 2013,in 2013 i am having root site i want to move the root site to site collection with in the same web application using power shell. I used the command after taken ...
0
votes
0answers
22 views

How to retrieve BDC Identity from External List programmatically?

I need to do a lookup on an External List (in SharePoint Online - Office 365) to retrieve the value of the BDC Identity. BCS is talking to an OData web service. (I'm not a Visual Studio guy), so ...
0
votes
1answer
16 views

Unable to import multiple .cmp files

I have run the command Export-SPWeb -Identity $url -ItemUrl $largeList -CompressionSize 15 -Path "c:\itemFolder\backup.cmp" This results in 3 files. c:\itemFolder\backup.cmp ...
1
vote
3answers
53 views

How to find all empty folders within a document library, maybe with a PowerShell script?

We have discovered a library where a user has written script to create auto numbered folders, within a library... we now have 32000 of them!!? I need a powershell script that will list the folders, ...
0
votes
1answer
18 views

upload log file to sharepoint online - dummy

I have done a few hours of searching in Google I found this method to upload a file to SharePoint online as a tenant rather that the administrator. I can authenticate and it seems to me would work ...
0
votes
1answer
40 views

Importing 5002 users into SharePoint Online with a work email

I need to create a test to prove that the 5000 list item limit can be exceeded. More specifically Users. I have en Excel spreadsheet that contains 5002 users. I don't need the trivial data to be ...
3
votes
2answers
49 views

Can I suppress Import-SPWeb log created message

Using the SharePoint Administrator PowerShell command Import-SPWeb, I loop through many backup files, each generates the output: Log file generated: C:\somepath\backup.cmp.import.log With the ...
2
votes
1answer
33 views

Check If Document Library Already Exists Using Powershell

How can I perform a check if a document library already exists using Powershell in SharePoint 2010?
1
vote
1answer
26 views

Setting the default value for a taxonomy field

I have been creating a load of site columns with powershell from a .csv file. I am now trying to create new taxonomy or metadata field: $spField = ...
1
vote
2answers
35 views

How to archive the AuditData table on a contentDB?

I have a content db whose audit log is getting really big (60GB) and it's starting to effect the DB. I know I can go in and delete entries via Powershell, but I wanted to archive this table before I ...
1
vote
1answer
24 views

Cannot Call RemoveWorkflowFromListItem in Powershell

I got the following line of code: [Microsoft.SharePoint.Workflow.SPWorkflowManager]::RemoveWorkflowFromListItem($wf); I receive the error Method invocation failed because ...
1
vote
1answer
30 views

How to get access to SPServiceContext in powershell?

I'm having trouble getting Get-SPServiceContext to return a SiteSubscriptionId that is not a bunch of zeros. I'm using an account 'SP_Sync' and set permissions to Farm Administrators group User ...
1
vote
1answer
76 views

SharePoint 2013 Online: List of all suspended workflows

Is there a powershell script or service out there that gives you a list of all workflow statuses? Primarily we are looking for a way to get a list of all current suspended workflows. Update: Here ...
0
votes
1answer
28 views

When it is safe to delete entries from contentDB?

I have a file that is getting caught by the health analyzer ReportViewer.dwp as a missing setup file referenced [1] times in the database. I've tracked the file down to the web part gallery and ...
0
votes
1answer
44 views

Powershell - Change display format in SharePoint Site column from friendly to standard

How can I change the display format from friendly to standard? I want to change this on all lists in the solution $sites = Get-SPSite "http://company.com/sites/testdelete/" $created = "Created" ...
1
vote
1answer
32 views

Power shell script to convert csv to excel with out installing excel services

I have written the power shell script to export the view in to a CSV file. But I want the same data to be exported to EXCel. I don't have excel installed on my share point server and my client does ...
0
votes
1answer
19 views

A Usage Application already exists in this farm - PowerShell error

To enable develop dashboard we need to create the Usage and Health Data Collection Service Application. For that I use the below powershell command to create the service application. ...
-1
votes
1answer
44 views

“Sorry something went wrong with adding the app. Click to retry”

I am unable to remove the app, it is corrupted. Can any give example using PowerShell how to uninstall the app?
3
votes
0answers
35 views

Automated Quota report via Powershell

I am new to Powershell and have been using the following snippet of code to pull the site quota information from my farm $GetStorage = @{Name="Storage"; Expression={"{0:N2} MB" -f ...
1
vote
2answers
26 views

Sort results from get list items

I have write some PowerShell script to get double items in different lists. I would like to remove the oldest item. I will check this by the "modified" date. How can I sort the results by "modified" ...
1
vote
0answers
22 views

Powershell Script to Stopfollowing not work

I found this script at MSDN forum [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") $web = Get-SPWeb https://www.contoso.com/teams/yourteam $context = ...
1
vote
1answer
21 views

The local farm is not accessible

When I run SharePoint PowerShell on my SharePoint server I get the following error: Error: "The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered".
1
vote
1answer
20 views

How to move a library from one site to another and keep the ModifedBy field

I need to migrate one list from a site to another site, using Gary LaPoint cmdlets i could do something like this: `Get-SPList "http://mysourcedomain.com/sites/ict/list" | Copy-SPList -TargetWeb ...
1
vote
2answers
185 views

The term 'Get-SPBackupCatalog' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name

i am trying to run the following script using windows power shell ISE:- Add-PSSnapin Microsoft.SharePoint.PowerShell $cat = Get-SPBackupCatalog \\T01\Back Backup-SPFarm -Directory \\T01\Back ...
0
votes
1answer
92 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
85 views

Unable to perform A full Farm Backup

I have SharePoint 2013 server, containing one web application and three site collections. I want to perform my first full farm backup, so I wrote the following command inside SharePoint PowerShell: ...
1
vote
0answers
36 views

SharePoint 2010 Powershell unable to get the title of SSRS Report viewer webpart

In SharePoint2010, I dragged and dropped two webparts on the page "Performance point filter(PPS)" webpart and "SSRS Report viewer" webpart. I am trying to connect the two webparts programmatically. ...
1
vote
0answers
27 views

How can I retrieve permission levels for site and list using powershell?

Sharepoint 2007 Powershell. I have a powershell script that checks the permissions of a 2007 site collection and outputs it to an xml file. The script is taken and modified from here: ...
1
vote
0answers
28 views

How to Hide default Authentication Providers in SharePoint 2013

I am using Claim Provider authentication and I tried to hide default authentication provider based from People picker using powershell. I copied the following powershell script from Steve Peschka blog ...
1
vote
1answer
67 views

How to set a default value for Date column to “Today's Date”

I am writing a powershell script to add a date type column with "Today's Date" as the default value. How I can set it up? $list | new-spjfield "Date" -internalname "Date" -type DateTime -dateformat ...
0
votes
0answers
43 views

SharePoint 2010 Powershell script to loop thru all sites collections to swap AD groups

BASIC OBJECTIVE: Identify an AD group, where ever it exists, Update to a new AD group and keep the same permission level. I'm looking for a powershell script to loop thru a site collection (or all ...
1
vote
0answers
22 views

Unable to add the webpart in web part page in sharepoint 2013

I am Unable to add the webpart in web part page in sharepoint 2013 below is the error message: An unexpected error has occurred. Technical Details Troubleshoot issues with Microsoft SharePoint ...
0
votes
0answers
33 views

Additional SPUser properties - UserLogin, DisplayName?

The SPUser object has "LoginName" and "Name" as valid properties according to the technet documentation here. However when i get a list of all SPUser properties I notice two additional properties ...
0
votes
1answer
37 views

Add custom site template to Template library, sharepoint 2013

I have created a custom site template and saved it on my desktop. i want to use this template as a standard template when creating Site collection by powershell code. How to save this template the ...
0
votes
0answers
42 views

how to link site column title to a resorce file?

I would like to link a site column title to a resource file using Powershell. I am using Sharepoint 2010. Thanks in advance.