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)

1
vote
3answers
267 views

error when executing update-spsolution

Im trying to update a web part that has been distibuted across our sharepoint intranet and im coming up with an error ive never seen before. Ive googled but cant find any info. Can someone help. ...
3
votes
1answer
66 views

how to access patches programatically

I know I can access the SharePoint-buildversion using (Get-SPFarm).buildversion in PowerShell. I also know that by accessing /_admin/PatchStatus.aspx from central administration I can view each ...
2
votes
1answer
561 views

Microsoft.FASTSearch.Powershell Snapin not available

On a Sharepoint 2010 Server, i tried running a script that needs to use Get-FASTSearchMetadataCategory. Add-PSSnapin "Microsoft.FASTSearch.Powershell" returns an error, that the snap-in is unknown. ...
1
vote
0answers
300 views

How do you Import a list item from a .cmp file using powershell?

I have implemented the code located at this link to export and import a list to a cmp file using powershell and the SPDeployment functions. While trying to better understand this code I came to the ...
0
votes
2answers
3k views

Sharepoint 2007 Powershell: $item.update() gives error that file has been modified

I am trying to programmatically update some metadata for a sharepoint item using powershell. Here is my code: $web = getWebByURL("http://test-site/spadmin/") $itm = $web.lists["Documents"].items[0] ...
1
vote
1answer
910 views

UpdateFarmCredentials: PowerShell command line error?

stsadm –o updatefarmcredentials –userlogin "[DOMAIN\USERNAME]" –password "[PASSWORD]" I've tried to run the above command with the " character and without, neither works. The error is 'Command line ...
2
votes
1answer
264 views

Is there a service that controls PSSnapin Microsoft.SharePoint.Powershell?

Got a service call yesterday that the backup hasn't been done for three months. Looking at the task scheduler history, there where no errors. So I run the PowerShell script myself, and got an exeption ...
2
votes
2answers
547 views

Is possible to rename a SPUser(IsDomainGroup) LoginName?

I want to rename SPPrincipals that are ADGroups. I've tried with $SPFarm = Get-SPFarm #$SPFarm.MigrateGroup("loginName", "newLoginName") $SPFarm.MigrateUserAccount("loginName", "newLoginName", ...
0
votes
2answers
145 views

How to properly dispose of sp 2007 object in powershell?

First and foremost I've done A LOT of googling and even went past the first page or 2 :) so feel free to direct me to the proper post if necessary. I am trying to loop through a bunch of webs and ...
1
vote
0answers
209 views

UPS Sync started from powershell script / web service

I have a web service that is kicked off from a workflow. The web service runs a powershell script that kicks off the User Profile Synchronization job. The powershell script works perfectly if I run ...
3
votes
3answers
3k views

How to import term set with Use this Term Set for Site Navigation property selected using PowerShell?

$session = Get-SPTaxonomySession -Site $sitename $termStore = $session.TermStores[“Managed Metadata Application”] $group = $termstore.CreateGroup(“My New Group”) $group.Description = "My Term Group" ...
2
votes
1answer
6k views

SharePoint 2013 Distributed Cache “cacheHostInfo is null” with “Remove-SPDistributedCacheServiceInstance”

I am attempting to remove a server as a cache host in my SharePoint 2013 environment. Currently the service shows as Stopped on the server that I am attempting to remove from the cache cluster. I ...
5
votes
3answers
8k views

Add group to Library permissions using powershell

I have written a script that created a document library called "Audit Logs" for every site collection in our environment. I then wanted to ensure that only Site Collection administrators and the ...
2
votes
2answers
8k views

Do I have to run Register-SPWorkflowService for each site collection?

As part of my SharePoint Server 2013 setup I sometimes need to integrate the new workflow infrastructure into the farm. I've followed the documentation starting from the SharePoint side of things: ...
1
vote
1answer
1k views

Restore Site Collection From Farm Backup

We are planning to implement a backup-restore process for our SharePoint farm and i have couple of questions and i would greatly appreciate if someone helps me with that Our Environment : I am ...
0
votes
2answers
933 views

Fixing programmatic alert URLs

Environment: SP2010 Enterprise, SQL2008R2, VS2012, full server access A while ago I created a massive amount of alerts using a c# console app I made in VS. The app ran on the server using SP ...
0
votes
1answer
915 views

Update custom property on listItem using -replace in powershell?

I have two different web application with one site collection each. One Site collection is privat and the other on is public inside the intranet. The public site links to the private site which link ...
0
votes
1answer
211 views

TargetInvocationException sitecollection “no access” quota

I am getting this error: + CategoryInfo: NotSpecified: (:) [CheckSiteCollection], TargetInvocationException + FullyQualifiedErrorId : System.Reflection.TargetInvocationException,CheckSiteCollection ...
0
votes
1answer
738 views

Powershell to list total objects, web page objects and web page objects that contain a particular string

I have a powershell script that list all webs, sites and subsites on a 2007 farm. I now know how to get last modified date of those subsites... ...
1
vote
1answer
3k views

Not able to delete site collection using powershell

I am trying to delete a just created site collection but it keep giving me this error, PS C:\Users\svc_spadmin> Remove-SPSite -Identity "http://intranet.sharepoint2010 .com/portalll/DeleteMe" ...
0
votes
1answer
2k views

Trying to create a Site Collection using PS but keep getting error

I am trying to create a site collection using powershell script but keep getting error even though I already created Managed Path I am referencing in cmdlet, PS C:\Users\svc_spadmin> ...
1
vote
3answers
1k views

How can I change Document library permissions for all site collections using powershell?

Total Powershell newbie here, but I have managed to write a couple scripts so far that have been working. We are using 2010 Enterprise edition, and I have been tasked with creating a script that will ...
1
vote
3answers
80 views

Powershell - call to document library does not have items

I am using Powershell to iterate through items in a document library and when I am running the ISE debugger there are no items in my list. I can see that the list is recognized, but I do not see any ...
1
vote
0answers
295 views

Edit UserProfileProperties in Sharepoint 2010 using PowerShell

As I mentioned above I want to modify given UserProfileProperties. http://www.c-sharpcorner.com/uploadfile/anavijai/modify-user-profile-properties-in-sharepoint-2010-using-powershell/ This is what I ...
0
votes
2answers
894 views

powershell - The user does not exist or is not unique

When I try to add user/group using SharePoint OM or Power Shell script I'm getting the following error. In this example S-9-9044-V is an AD Group. The user does not exist or is not unique $web ...
4
votes
1answer
468 views

Is VS 2010 needed to build a SharePoint 2010 project in Powershell?

Can you build a SharePoint Project without Visual Studio 2010/2012 being installed on the machine you are trying build it on using PowerShell? I have a PowerShell script the is working great. It ...
0
votes
1answer
604 views

send email to task assignee using powershell?

I want to send daily reminders to users who have tasks assigned to them. It seems like a simple way to do this would be to write a Powershell script that sends an email for each item, and set up a ...
0
votes
3answers
7k views

Add field to List Content Type using Powershell

I'm updating predefined content types with 2 new field, but I have to set the ContentType.Update(false,false). Which means that it will not propagate the changes to the list content type (instances ...
0
votes
1answer
369 views

How to find out if (and if possible how often) a term is used?

When using managed metadata, how can I find out, if a term is used (and if possible, how often it is used), without iterating all sites and lists/libraries on the sites?
3
votes
1answer
3k views

Delete sharepoint userprofile property using powershell

This is the script im using to delete the sharepoint userprofile property using powershell. #Load Sharepoint SnapIn if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction ...
1
vote
1answer
2k views

How can I add “All Authenticated users” (FBA) to a SharePoint Group using Powershell?

I have an FBA site and I need to add "all authenticated users" to a group using PowerShell. How can I do that?
3
votes
4answers
5k views

How to download a sharepoint aspx page from server using powershell

I made some changes to sp aspx pages on a environment. I want to move these changes to my TFS. Usually one takes the pages using designer, save it to the desktop, and save that to TFS. But is there ...
2
votes
1answer
73 views

Including Assembly in PowerShell Script

Apologies if I'm missing something really basic here but in all the tutorials I've read that discusses the use of set-fastsearchmetadatamanagedproperty, it mentions how it belongs to the ...
2
votes
3answers
4k views

How to connect to SharePoint online to run some PowerShell

How can connect to SharePoint online to run some PowerShell commands? It would be nice if someone has drilled down the steps for me :)
4
votes
1answer
698 views

Powershell scripts: Create user profile synchronization service using sharepoint active directory

In sharepoint 2013 I have to create user profile synchronization connection using sharepoint active directory through scripts. I have created the user profile service using powershell after that is ...
1
vote
1answer
743 views

How to use Power Shell cmdlets with batch file?

I have bit interesting requirements. My client want to develop the Sharepoint 2010 administration UI from Java application. So I suggest him to user Sharepoint web services. As we all know its good to ...
2
votes
1answer
195 views

Warm-Up Script not writing to log file

I have been working on implementing the warm-up script from Ingo Karstein Warm-Up Script The script runs without any issues, but the log file (.txt) is not being generated as expected. I have the ...
2
votes
1answer
2k views

How to import a library from Export-SPWeb outputs?

I am trying to understand how to restore an arbitrary library to an arbitrary site in an arbitary site collection - inspired by some future user announcing he accidentally deleted a document from the ...
1
vote
2answers
519 views

PowerShell cleaner script work badly after New Year?

I have strange situation with PowerShell script which delete older Backup Files in SharePoint Backup Folder. I use two PowerShell script, first make Backup Farm and second check Folder with Backup and ...
5
votes
1answer
687 views

What update I have to install in Foundation 2010 to run a backup that asks for version 4.1.13.0?

I'm trying to run a backup from a Sharepoint Server 2010 that runs a version 14.0.6101.5008: The version of my local Sharepoint Foundation 2010 server is 14.0.6114.5000: When I run the backup ...
3
votes
1answer
7k views

Powershell to List GUIDs of Lists and Libraries but how to seperate

Working on a script that will dump out all of the lists and libraries in a site, I found the script on Mike Smith's Blog: ...
3
votes
1answer
132 views

Hide SPContenType in use

I'm trying to hide (or remove it from the new button drop) a SPContentType that is already in use via Powershell scripting. Even if before: $SPContentType.Hidden = $true $SPContentType.Update() I ...
2
votes
1answer
2k views

Users cannot open workflow task (custom form) - Unexpected exception

I have created a custom approval task form for an approval workflow. It works fine for me as a site collection administrator, but for normal users (the users getting the task) there is an error ...
4
votes
1answer
120 views

Application DLL replaced sometimes in 14 Hives feature folder

I deploy Infopath forms using powershell script. After deployment, dlls of my deployed application appears in 14 hives/feature/guidfeaturefolder After some modifications when i deploy again the same ...
17
votes
5answers
31k views

Suddenly getting “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered.”

This morning all the development machines at the company I work at, couldn't manage SharePoint through Powershell. We were all getting the annoying "The local farm is not accessible. Cmdlets with ...
1
vote
1answer
211 views

Creating document sets from a spreadsheet

I have a list of offices that I need to create document sets for using a custom document set content type. Anyone have any idea how to create a Powershell script to read the spreadsheet and create the ...
2
votes
1answer
750 views

Creating SiteCollections using SharePoint Management Shell 2013

I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing ...
3
votes
1answer
5k views

creating site collections using SharePoint management shell 2013

I am creating Site Collections for Testing SharePoint. I am using Host Named Site Collection to do that instead of the path based site collection addressing. For that Got a reference to the HNSC ...
1
vote
1answer
909 views

Set-SPUser not adding SPUser

Adding a user trough the following PS command line works just fine: Set-SPUser -Identity "Domain\LoginName" -Web $Web.Url -Group "GroupName" The problem occurs when the user is deleted and then the ...
3
votes
1answer
416 views

Add Administrator to User Profile Server via Powershell

I was recently directed to an article that explains how to add a user to the permissions list for the User Profile Service using Powershell, which worked a treat. [My original question] I'm now ...