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 ...
0
votes
0answers
51 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 ...
1
vote
0answers
205 views
Remote PowerShell Script
I have server 1 (application that the script) (dax-sp) and server 2 (sharepoint) (sp-sp)
Script on server 1 (ScriptStart.ps1)
Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 2000
$pwd = ...
0
votes
1answer
156 views
Output powershell caml query to table
This has to be real easy but I just cant find an answer on google that will work in my case. I am running a ps1 file that caml queries a document library. I just want to organize these results into a ...
0
votes
1answer
126 views
Creating New-SPWeb from PowerShell & WebProvisioned Event Receiver?
I have a WebProvisioned event receiver and i do some work in this event receiver. When i create new webs from powershell, it seems the event receiver does not fire? Is this an expected situation? How ...
2
votes
1answer
332 views
Remove app from SharePoint with PowerShell
I have deployed an app to SharePoint 2013, but something went wrong during deployment. Now I cannot remove or redeploy this app.
Can I force remove this app with powershell or STSADM, like you can ...
1
vote
1answer
116 views
SharePoint list updation using powershell script from sql trigger
I need to update a SharePoint list whenever a datachange happens in the sql cuastom table. I am trying achieve this by writting a trigger in the sqltable and calling PowerShell script to update list ...
0
votes
1answer
505 views
Changing the order of columns in a list view - Powershell
I am trying to add a new column called "REF" to all existing views using powershell which I have succeeded in doing, however when adding the column it is automatically added to the end of the array ...
0
votes
1answer
117 views
Restore-SPSite time scale to restore?
I am trying to restore the main site at the root of our SharePoint server after an accidental deletion using the following code:
Restore-SPSite -Identity http://server -Path "B:\SharePoint\11-12-2012 ...
1
vote
4answers
382 views
Advantages/disadvantages of Timer Jobs vs. PowerShell scripts
I've worked with several examples of both SharePoint Timer Jobs and PowerShell scripts, some of them doing the same things as the other. In my experience, PowerShell scripts are far more flexible, ...
0
votes
1answer
90 views
How do I run the social timer jobs in powershell?
As title says. I've applied ratings to documents and they, obviously, haven't appeared yet. Is it possible to use powershell to explicitly force these timer jobs to run immediately?
I believe the ...
1
vote
1answer
126 views
Exception Error When Running Basic PowerShell Script in SharePoint 2010
I have been doing some testing in our labs for some new features we are working on. I purposely created some orphaned sites using a scenario I found in a blog and I ran into a strange side effect. ...
1
vote
2answers
27 views
How to know the root web memory size in a site colelction
I need to get the memory consumed by the root web of the site collection.
How could we know this using powershell scripting?
Any ideas, please share me.
Note- My farm is running on MOSS 2007.
1
vote
1answer
82 views
Unable to add webpart to page from script, but successfull from command line using same code
I am writing a script that will allow us to build an entire SharePoint environment, add solutions and implement web parts on particular pages from scratch. Nearly the entire script works except the ...
2
votes
1answer
455 views
How to change name and description website?
I need to create a script that creates a page based on a tamplate.
New-SPWeb -url http://site/project/project01 -template OFFILE#1 -name "01"
Import-SPWeb http://site/project/project01 -Path ...
0
votes
1answer
359 views
Powershell error while iterating through sites quicklaunch and deleting a specific node
Hi I've put this question up here : http://stackoverflow.com/questions/13130785/delete-navigation-node-with-powershell-from-sharepoint-quicklaunch-in-all-sites but no answer yet so posting here too.
...
1
vote
1answer
705 views
How to insert data into Managed Metadata field of any Document Set using PowerShell?
I am creating a Document Set for a library using powershell and that document set contains some mandatory managed metadata fields. I am able to create document set but how can I insert data into those ...
0
votes
1answer
132 views
How to send mail in powershell based on exception count?
im trying to set up a Powershell script, which backs up a specific SiteCollection and sends an email afterwards, stating if the backup was successfully or not.
I'm stuck at the point where I need to ...
0
votes
3answers
163 views
cannot find User after runing new-spuser
I have used following PS Script to add a user to a group on a web. I didn't any error but I cannot find the user in the group or anywhere else. Thanks for your advice.
New-SPUser "wm\test2" -Web ...
1
vote
2answers
3k views
How to add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010
How I can add Add-PSSnapin Microsoft.SharePoint.PowerShell to machine without SharePoint 2010?
I try to run PowerShell script to Backup Farm on Windows Server 2008 R2 without Sharepoint but while I ...
2
votes
1answer
96 views
Programatically update field/column name in a list on all sub sites [Powershell]
What I want to do is with a Powershell script programatically go through all subsites in a site collection and change a column name in a list from "Web" to "Site".
So in easier words:
Go through ...
1
vote
1answer
453 views
automatically create subfolder and save the file in sharepoint using powershell
I am new in powershell, i want to save a file which powershell will automatically create new subfolder in sharepoint 2010 and save it ( the subfolder named should be todayname i.e. 25Oct2012) :
here ...
0
votes
1answer
373 views
SPFolder.Item does not return SPListItem associated with SPFolder in Powershell
I have following powershell:
$webUrl = 'http://demo2010a:90/sites/Contracts'
$web = Get-SPWeb $webUrl;
$lists = $web.GetListsOfType($SPBaseTypeDocumentLibrary);
foreach ($list in ...
0
votes
0answers
86 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 ...
2
votes
1answer
227 views
Problem with PowerShell script in Tasks Sheduler Windows Server 2008 R2 - SharePoint Shell Access?
I have a problem with PowerShell script in Tasks Sheduler in Windows Server 2008 R2. I try to run Sheduler Tasks which run batch file which run PowerShell script to Backup Farm and while I choose "Run ...
0
votes
1answer
152 views
Improve performance of powershell script
I am using following Powershell script to break the folder permissions inside the Record Libraries:
$webUrl = 'http://intranet'
$web = Get-SPWeb $webUrl;
$SPBaseTypeDocumentLibrary = ...
0
votes
2answers
302 views
Powershell Get Replacement info from User Profile for all users
I want to extract info regarding Username and Replacements from the users profile properties for all users and have it written to a csv file.
Maybee through a powershell script so it can run in a ...
0
votes
1answer
146 views
Restore-SPSite running forever
I'm trying to restore SPSite from backup.
But powershell Restore-SPSite command keeps running forever.
What can be the reason for this?
1
vote
3answers
1k views
Trying to save a file to SharePoint library via Powershell, but it doesnt work
Im trying to upload a file to a document library in SharePoint 2010 via powershell. Ive followed about 5 different blog posts, most recently the one found here - ...
0
votes
0answers
83 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
2answers
444 views
ProcessBatchData CAML Mass Delete SPListItems
Attempting to bulk delete List Item using ProcessBatchData in a PowerShell script. Here is a command that my code is generating but I am getting an error when it executes. I have been unable to find ...
1
vote
2answers
340 views
Error Handling with Powershell Scripts for SharePoint 2010
I am very new to writing PS scripts for deploying solutions and activating features. In my current scripts I get errors some time like feature not activated or deactivated properly. I am looking ...
1
vote
1answer
341 views
How to modify sealed columns (Powershell)?
I'm trying to build and customize a group calendar list created with "Group work site" template. I have stumbled upon some sealed columns, like "All day event". I need to modify them, therefore I need ...
1
vote
2answers
278 views
SharePoint 2010 Record Declaration Settings via Powershell
I have 200 site collections that need to perform the following tasks:-
A. At the Site Collection Administration - Record Declaration Settings
Set Record Restriction to Block Delete
Set Record ...
0
votes
3answers
183 views
Set Refresh All Published Content Types via Poweshell
To do the above task manually we can go to the Site Actions -> Site Settings -> Site Collection Administration -> Content Type Publishing and checked the Refresh all published content types on next ...
0
votes
0answers
373 views
Workflow failed to run after pause - SP2010
I am trying to fix a paused workflow issue following this KB Article from Microsoft.
http://support.microsoft.com/kb/2674684
However, when I try to run the powershell command I get this error as ...
1
vote
1answer
716 views
Export-SPWeb with Where Clause to filter List Items?
I am trying to export list items to a local folder but I only want certain items, not the complete list.Is this possible?
I have tried to iterate through the SPListCollection with the "Modified" ...
0
votes
0answers
119 views
appying permissions using powershell on Project Server 2010
We have a PWA that has 100 project sites, each with broken permissions, on the root site there is a sharepoint group with 4 users, named "Admins (Microsoft Project Server)". Some how the Admins group ...
0
votes
1answer
31 views
Issue in creating New_SPProfileapplication
I am Trying to create the "New SP Profile Service Application" using Powershell command
New-SPProfileServiceApplication -Name SharedServices1 –ApplicationPool "SharePoint Web Services" –ProfileDBName ...
0
votes
1answer
206 views
Deploy with PowerShell issue
When I deploy my project from visual studio everything is fine, I have a module with some pictures in it and a stylesheet that get replaced on deployment, from the output window:
Retracting ...
1
vote
2answers
70 views
Error while updating SiteLogoUrl with Powershell
I am trying to update the Site Logo Url for all the sites in my web application with powershell. The script executes correctly in my dev environment but fails to execute in production and gives an ...
1
vote
1answer
1k views
how to Update/Add list items via New-WebServiceProxy in powershell?
Over View:
I’m trying to automate updates to a SharePoint list using PowerShell via the Web service object.
The end goal is to remove items all from the list, then import new data via a csv file.
...
3
votes
4answers
326 views
How to programmatically determine which application pool a service application is using?
Is there a way to programmatically determine which application pool a service application is using?
Further i would like to get the information about the service account the app pool is using.
0
votes
0answers
94 views
Finding which site collection has output cache enabled through powershell
I have a SharePoint 2010 production farm where a Web Application running on port 90 always ends up with heavy memory usage , even during non-peak hours. My guess is some site has output cache enabled ...
0
votes
1answer
73 views
Is it possible to Enable SP SessionStateService for “a specific” SP Web application?
I have a SP2010 Server (enterprise edition) that hosts many web applications. Only one application requires a SQL Session State service.
The Powershell command Enable-SPSessionStateService does not ...
0
votes
1answer
128 views
Error on Feature Deactivation with Power Shell Script
I have written some code in my feature receivers on feature activation and deactivation for my SharePoint 2010 site.
Basically some contents are added on feature activation and same are deleted when ...
1
vote
1answer
413 views
Get Identity of my Service Application
I have written following powershell code
$list = Get-SPServiceApplication | ?{$_.DisplayName -eq "AmOwaWordSvcApp"}
| %{$_.ServiceInstances} | ?{$_.Status -eq "Online"}
For these 2 online ...
0
votes
1answer
245 views
Why are my list.view.query changes not being committed?
I'm using powershell to try to change the query for every view called either 'View Title 1' or 'View Title 2' in every list called 'News' in every subsite.
The script doesn't throw any errors but the ...
1
vote
0answers
321 views
Why is my SPD 2010 workflow running twice?
I've got a support case for a client, and they have a super simple workflow on a list. It simply sends an email to a user from a person field, whenever an item is added to the list. The client ...
1
vote
1answer
56 views
Need help with the powershell script
I need some help with a power shell script. That is
using a power shell I need to activate all the features of all the site collections by iterating each site collections in a web application.
0
votes
1answer
314 views
Power Shell List Item Copy
I am trying to copy a list from one web app to another web application .All the list items are copying fine except for Contact Details (which is column of type person).This column is showing empty . ...
