Tagged Questions
0
votes
0answers
12 views
How can I get the date of the last Full Crawl in Sharepoint 2010 using Powershell?
I can run the following to get the current crawls and from there determine the last crawl completed date.
# Get the Search App from Sharepoint
$searchApp = Get-SPEnterpriseSearchServiceApplication ...
0
votes
0answers
55 views
Powershell command for getting Sharepoint deployment path
I'm using PowerShell to deploy a service to SharePoint. These are my commands so far:
Add-PSSnapin Microsoft.Sharepoint.Powershell -EA 0
Add-SPSolution "c:\SPService.wsp"
Install-SPSolution ...
1
vote
3answers
807 views
cannot get basic sharepoint powershell script to run
I have a simple powershell script intended to manipulate Sharepoint 2010. I have stripped it down to the minimum to illustrate the problem.
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction ...
1
vote
0answers
59 views
Can't Uninstall Sharepoint Application - Invalid State
Our Sharepoint 2013 Application failed to install and is stuck in a odd state. I followed the recommended approach for deleting the application using powershell commands on the hosted Sharepoint ...
2
votes
1answer
6k views
Powershell script to list all sharepoint 2010/2007 pages and their layouts
I'm trying to write a powershell script which will run all over my sharepoint 2010/2007 pages and will list their page layout and will save the results into a text file.
while running the following ...
3
votes
3answers
2k views
PowerShell 3.0 Sharepoint scripts not working
Today my powershell updated to version 3.0. This version is build against and uses .NET runtime 4.0. The Sharepoint 2010 cmdlets require .NET 3.5 and don't work under 4.0. Anyone has an idea how to ...
0
votes
0answers
90 views
How do I copy my master page up to SharePoint 2013 file system using PowerShell?
I guess I should ask if it's even possible, but I would like to be able to author my master page (and corresponding files) locally, and copy it up to the hosted SharePoint 2013 site using a PowerShell ...
0
votes
1answer
1k views
Enabling Sharepoint Features With Powershell
I am new to PowerShell and have been asked to modify a script that is used to activate features on a site. The script has some latency issues between the two feature activations, so I decided to make ...
0
votes
1answer
59 views
Proper disposal of powershell pipeline objects
This script snippet is accessing a SharePoint site (web) within a function. It creates a SPWeb object that should get disposed of by the end of the function to avoid a memory leak. Usually the way to ...
0
votes
3answers
150 views
how to convert filenames with special characters to valid filenames?
I would like to know whether it is possible to REMOVE special characters recursively in powershell from all files in an entire directory structure?
for example if I have a file called:
my ...
0
votes
1answer
169 views
PowerShell: Exception calling “GetListItems” with “7” argument(s)
Attempting to Get List Items from Sharepoint using PowerShell.
So I used the example from here Windows Powershell Blog, modified it for use with my site. Now I get the following error:
Exception ...
1
vote
0answers
84 views
why the powershell does not work if I use winrs
I have a test.ps1 and content is as below
$getRSDBName =
{
Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$rsdb = Get-SPRSDatabase
return $rsdb
}
$rsdb = ...
0
votes
1answer
232 views
Create a 'Link to a Document' in a SharePoint Shared Document List using PowerShell
I'm trying to create a link to a document in SharePoint 2010 using PowerShell 2.0. I've already enabled other content types and added the 'Link to a Document' content type to the document library in ...
0
votes
1answer
178 views
Powershell Script to Find SharePoint Groups with [No Access]
Our company is running into an issue post-upgrade with (some) custom SharePoint groups being appended with [No Access] that is throwing group members Access Denied messages when they try to access the ...
0
votes
2answers
73 views
Is it possible to run multiple powershell scripts, in order, with waiting for completion before launching next?
I have 3 Powershell ISE scripts.
Script1.ps1, Script2.ps1, Script3.ps1
Is it possible to run all scripts, in the order given? When i am asking this i am not suggesting parallel behaviour, but rather ...