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

What is the proper method for installation of a team site with custom solutions?

What is the proper method for installation of a team site that has parts and webparts configured using PowerShell as well as six custom C#.NET applications for select webparts? Should I make a ...
2
votes
4answers
2k views

PowerShell Error, Invalid URI: The format of the URI could not be determined

i have typed the following inside PowerShell:- PS C:\Windows\system32> Restore-spsite ? cmdlet Restore-SPSite at command pipeline position 1 Supply values for the following parameters: Path: "C:\...
2
votes
1answer
2k views

how to delete sharepoint workflow from powershell

hi guys i need a help to get easy way to delete work flow from sub site level . its a pain to load it to SPD and do for there since site have lot of work flows . this Poweshell i got the work flow ...
1
vote
1answer
104 views

Are there operations affected by installing PowerShell v3 with SharePoint 2010?

We currently run SharePoint 2010 Enterprise in our production environment and are looking at updated our build and deploy framework that is written in PowerShell. It would be nice to take advantage ...
2
votes
1answer
8k views

Backup Sharepoint 2013 site using powershell or stsadm

I am trying to take backup of of my sharepoint 2013 site http://something1:6060/ using powershell or stsadm but getting some errors. Using Powershell command:Backup-SPSite "http://something1:6060/" -...
1
vote
2answers
1k views

Removing field via powershell

A custom solution was installed at one point, and was removed do to it not functioning as expected. after the solution was removed several fields remained, and I'm trying to remove them with the ...
8
votes
2answers
30k views

Powershell command to find active features for site collection

Im trying to find active futures for my site from below script but im prompt with error ( cannot call a method on a null-valued expression) Appreciate your help $activeFeatures = Get-SPFeature -...
1
vote
1answer
410 views

Activate Content Organizer feature from code

how to activate content organizer feature from c# code or by powershell script. I want to activate this feature on my subsite from my code ?
1
vote
1answer
279 views

Outputting Folder Column Defaults in a List

I have folders in a library which have default values set for certain folders through the library settings I know the values are their because I can see them and they get applied to documents. I was ...
1
vote
3answers
7k views

How to upgrade one specific feature only with powershell

I created a farm feature and then I upgraded it. According to the documentation, the upgrade-spfeature -scope farm will upgrade all features requiring upgrade. Feature upgrade (part 5) – using ...
0
votes
1answer
1k views

List attachment details

I have a SharePoint application with many users. Is it possible to get list of all attachments in a list item with user name and date time when the attachment was added using PowerShell commands?
0
votes
1answer
307 views

Create link “node” instead of “NavigationNode”

I'm able to create subtitles in my sites. I create title under others, this create subtitles. I use New-Object Microsoft.SharePoint.Navigation.SPNavigationNode which create titles, but what the object ...
0
votes
1answer
322 views

Sharepoint 2010 site collection back up content only no permissions required

Ive a requirement to back up a site collection from dev environment and use it to provisivion a an exact copy as a new site collection in UAT. I understand that we can use the following PowerShell ...
1
vote
2answers
382 views

Site Definition not available from Powershell

Using SP 2013. I have created a site definition in Visual Studio 2012. Deployed that as a solution. From the UI I can create a site and select the template I created. However when I go into ...
0
votes
1answer
46 views

Configuration details

I just inherited a SharePoint farm and am trying to sort through everything and figure out whats going on. Are there any tools built-in or 3rd party that can show me the current configuration details? ...
3
votes
2answers
410 views

Add AD user to sharepoint site

Please help me about adding new AD users, AD groups with Permission to sharepoint site. I can do it for lists and document libararys but adding to site seems to be different. This is what i do for ...
0
votes
1answer
545 views

Delete permissions from site with powershell

I know how to delete permissions from lists and document libraries. Simply I can use the BreakRoleInheritance, and I can remove every user. But I couldn't find a way to do this with a site. Like this:...
3
votes
1answer
3k views

Need to kill all Workflows on a list in Sharepoint 2010

Can someone explain to me how to do this using Powershell?
1
vote
2answers
3k views

Trouble using PowerShell cmdlet

I try and run this Script using Powershell ISC run as Admin: #Site URL $web = Get-SPWeb "http://cgprojects/sites/tfs"; $web.AllowUnsafeUpdates = $true; #List Name $list = $web.Lists["...
1
vote
2answers
428 views

SP_Admin SQL Permissions

I'm trying to create a web application using powershell and I'm getting a log in error with the SP_Admin account. I'm not sure if I've made a mistake when I was setting up the environment, I might ...
1
vote
1answer
554 views

Is there a powershell command to wait for the App uninstall job?

I have the following script to update my SharePoint app with the latest version but it always fails with the error: Install-SPApp : An instance of this App already exists at the specified when ...
0
votes
1answer
465 views

Restore from Production to Development

I have two different servers with Sharepoint 2010 standard edition setup. I have two different SQL database servers(DEV_Content and PROD_Content) for these two environments. I would like to create ...
1
vote
1answer
3k views

Can't create User Profile AD mapping using PowerShell in 2013

Using PowerShell, I want to add properties to the user profile in 2013 and map those properties to be synchronized with Active Directory. I can create the properties fine as well as the ...
4
votes
2answers
1k views

SPSiteDataQuery for Documents using caml query

I am tring to query an entire site collection for all the documents where a certain field is equal to something. For example where LoanCategory = Insurance. I am trying to do this using an ...
2
votes
1answer
2k views

How to embed javascript code in a page using Powershell?

I have a powershell script that creates article pages in a publishing portal site collection. As part of that script I insert the content for each page by setting the value of the $item["Page Content"]...
0
votes
0answers
377 views

Problems after import-spweb

I have used export-spweb and import-spweb to move multiple sites around in SP2010. After import-spweb I notice that some libraries are really messed up. When I try to add an item to the announcements ...
0
votes
1answer
1k views

SharePoint 2013 - Edit TopNavigationBar

I want to edit an item in the TopNavigationBar with a PowerShell script. I´m using a Windows Server 2008 R2 (English) with SharePoint 2013 (German). My PowerShell script says that the Title is ...
2
votes
1answer
200 views

SP2010 - Scopes.GetDisplayGroup error, page visit required first?

I'm having a very strange problem with the Scopes.GetDisplayGroup() method returning a "Specified cast is not valid" error. This is a cut-down version of the code I've been using: $SPWebApp = Get-...
1
vote
1answer
81 views

Powershell-registered Managed Accounts not showing up in Central Admin

I'm trying to set up a work laptop for SharePoint development. To get it up and running quickly, I used my corporate domain user account as the first managed account. Now, I want to use a local ...
1
vote
1answer
493 views

Every SPFile is null in a document library using PowerShell?

What the crap is this about? I whipped up a fairly simple run-once and discard PowerShell script to iterate through all of the files in a list and make a simple change. The problem is every SPFile I ...
1
vote
1answer
983 views

How create an index based on an internal list field?

I have a huge library and its documents don't have any metadata. They have only the name (FileLeafRef) filled (and FileRef -> file's path automatically filled). I'm trying to update their metadata (...
0
votes
1answer
260 views

Updating a username in a List - false positive

In my portal I have a list with a "person" field that contains usernames. I am using a powershell script to update this field. You can see my function below. I've already loaded the list, and am ...
0
votes
2answers
474 views

Upload a Web part to All Site Collections

We have designed a custom Content editor web part and we exported the dwp file and added it in an site collection (Web part gallery ) and the web part is working fine when we add in any sub site in ...
1
vote
1answer
160 views

Using PowerShell, how can I compare User Profile Properties to a list

For this example, I have a list of first names Fred Mark Tony Alisa Todd Emily I would like to compare them to profiles in the user profile service Fred Greg Tony Alisa John And get output ...
1
vote
1answer
14k views

Export And Import of Subsites Using PowerShell Script

I am using SharePoint 2013. The problem is as follows: There are two Site Collections in a single Web Application. With the following Paths: /sites/Site1/Subsite1/ & /sites/Site2/Subsite2 Using ...
1
vote
1answer
1k views

Fetch Username from Lookup-Column using Powershell

In my powershell script, I have a method that fetches a username from a sharepoint list. This works fine - my problem is that field is from a lookup column. The user chooses the username from a ...
2
votes
1answer
830 views

Passing special characters in SharePoint Powershell

I need to add "Français" to search scope form the power shell to perform this task I'm using the xml to pass the values. But after it is added to the scope "Français" looks like "Français". the ...
3
votes
1answer
3k views

Unable to upgrade WSS_Search_ServerName database

I have got the following error in SharePoint 2010 Central Admin: The following databases require upgrade because their versions are older than the backwards compatible range: ...
4
votes
3answers
7k views

Powershell to view last login date for users?

I tried Googling this, but had no success. Is there a PowerShell script, or would it be possible to write one to show the last login date of each user into the SharePoint environment?
3
votes
2answers
2k views

How to disable anonymous access for SharePoint WebApplication with powershell

I need to create a PowerShell script that will disable anonymous access to the given SharePoint web application. However, I have thus far been unsuccessful. All scripts have been run under the "...
0
votes
0answers
75 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
2answers
652 views

Error while deleting keys from SPWebConfigModification

I got following error when I tried to remove item from the WebConfigModification. Exception calling "Remove" with "1" argument(s): "Object reference not set to a n instance of an object." I ...
0
votes
1answer
141 views

why I cant get a list item that exists?

Is there a difference between checking a pages library and a list in terms of powershell commands? The following cmdlet is not returning me an item, and when I checked the browser I see the list item ...
0
votes
1answer
984 views

All workflows stay on starting mode

We installed Sharpeoint 2010 SP2 and then suddently all workflows stopped working, they are all in start mode. According to this thread, it should be fixed with June CU, we installed it, but this ...
0
votes
0answers
160 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 ...
2
votes
2answers
820 views

Activate webfeatures on all SharePoint online webs

I want to activate a webfeature on all subsites of a sitecollection in Office 365 / SharePoint online. I thought i can do the actions in a SiteCollection Feature, but that's throwing a timeout error. ...
2
votes
2answers
11k views

Activating Site Collection Level Feature with PowerShell Script

I am trying to activate a Site scoped feature using a powershell script. I have another scrip which deploys my solution and I see my feature is installed correctly in Site Collection feature gallery. ...
0
votes
1answer
167 views

Update List Item with Powershell Begets Strange Return

On my portal I have a list with columns for First Name Last Name and Account where Account contains usernames. So I have this function which reads through my list (it connects fine, it reads the list ...
1
vote
1answer
53 views

How to move alist with powershell from one site to a subsite?

I havent found how to move or at least copy a list with its content from one site to a subsite. The copy/move needs to copy with versioning included. No clue where/how should I start Thanks
0
votes
1answer
153 views

How to traverse all columns of type Choice with powershell?

I need to traverse all columns in one list of type choice only, I really know how to iterate over a list, and even on columns, but I only need to see choice columns in my script any idea?