skip to main | skip to sidebar
  • Home
  • Tutorials
  • Powershell
  • SharePoint Programming
  • Interview Questions
  • SharePoint Book
  • SharePoint2007
  • SharePoint2010
  • Sharepoint2013
Entries (RSS)

Dig SharePoint

Using PowerShell batch register the DLL to the GAC

3/13/2012 Date: 10:16:00 AM Posted By SharePoint

A small amount of code, registered the current directory of all the DLL to the GAC, please copy the gacutil.exe into the same directory.

$Path = Get-Location
$Dir = Get-ChildItem "$Path" -Recurse
$Dlls = $Dir | Where { $_.extension -eq ".dll" }
$Dlls | ForEach-Object { .\gacutil.exe -i $_.name }

Related Posts

  • The Solution of Online View Word or PPT throw wrong after Office Web App installed
  • Restore SharePoint 2010 Farm to another Farm and then Access Denied
  • Destination Folder field in site upgraded from MOSS 2007 to SharePoint Server 2010
  • How to Set the Shortened URL for the link in SharePoint
  • sharepoint 2010/moss2007 for the document library to upload files and new folder, files and folders to modify the default permissions (do not inherit the permissions of the document library)
  • How to deploy .wsp file using Visual Studio 2010 for SharePoint 2010
  • How to put people into the Site Permissions groups of SharePoint site
  • How to Create SharePoint permission group in SharePoint 2010
  • How to Restore a Site Collection in SharePoint 2010
  • SPSiteDataQuery for Cross-Site and Cross List Searches



Tag: SharePoint2007, SharePoint2010

Newer Post Older Post Home

Search

Popular Posts

  • SharePoint Interview Questions:Important Definations
  • How to Create KPI in Dashboard Designer sharepoint 2010
  • How to Custom search Results Web Part sharepoint 2010
  • Interview Questions Of SharePoint Programming
  • How to get All SharePoint 2010 Databases
  • The Advantages of using Windows PowerShell for Backup or Restore
  • Automate SharePoint 2010 Farm Backups with Powershell
  • How to: SharePoint 2010 User Name Displaying Incorrectly in Option Menu
  • Supply a doc template for a Content Type in a Feature in SharePoint
  • Retrieving Credentials from Secure Store Service in SharePoint 2010

Blog Archive

  • ► 2016 (1)
    • ► 01/10 - 01/17 (1)
  • ► 2013 (35)
    • ► 08/11 - 08/18 (1)
    • ► 07/28 - 08/04 (2)
    • ► 06/30 - 07/07 (1)
    • ► 06/16 - 06/23 (1)
    • ► 05/26 - 06/02 (4)
    • ► 04/14 - 04/21 (1)
    • ► 04/07 - 04/14 (1)
    • ► 03/03 - 03/10 (1)
    • ► 02/17 - 02/24 (5)
    • ► 02/03 - 02/10 (5)
    • ► 01/20 - 01/27 (5)
    • ► 01/06 - 01/13 (8)
  • ▼ 2012 (106)
    • ► 12/30 - 01/06 (5)
    • ► 12/23 - 12/30 (14)
    • ► 12/16 - 12/23 (36)
    • ► 11/04 - 11/11 (1)
    • ► 10/28 - 11/04 (4)
    • ► 10/14 - 10/21 (2)
    • ► 09/16 - 09/23 (1)
    • ► 09/09 - 09/16 (5)
    • ► 07/29 - 08/05 (1)
    • ► 03/18 - 03/25 (2)
    • ▼ 03/11 - 03/18 (7)
      • Several types of field assignment and getting valu...
      • How to Configuration incoming email in SharePoint ...
      • How to Install SharePoint 2010 using Least Privile...
      • Using PowerShell batch register the DLL to the GAC
      • The Solution of Online View Word or PPT throw wron...
      • How to Set the Shortened URL for the link in Share...
      • sharepoint 2010/moss2007 for the document library ...
    • ► 03/04 - 03/11 (7)
    • ► 02/26 - 03/04 (3)
    • ► 01/29 - 02/05 (16)
    • ► 01/15 - 01/22 (1)
    • ► 01/08 - 01/15 (1)
  • ► 2011 (238)
    • ► 12/25 - 01/01 (2)
    • ► 12/18 - 12/25 (3)
    • ► 12/11 - 12/18 (4)
    • ► 12/04 - 12/11 (9)
    • ► 11/27 - 12/04 (2)
    • ► 11/20 - 11/27 (1)
    • ► 11/13 - 11/20 (3)
    • ► 06/26 - 07/03 (1)
    • ► 06/12 - 06/19 (10)
    • ► 06/05 - 06/12 (9)
    • ► 05/29 - 06/05 (16)
    • ► 05/22 - 05/29 (14)
    • ► 05/15 - 05/22 (5)
    • ► 05/01 - 05/08 (11)
    • ► 04/24 - 05/01 (16)
    • ► 04/17 - 04/24 (8)
    • ► 04/10 - 04/17 (3)
    • ► 04/03 - 04/10 (7)
    • ► 03/27 - 04/03 (12)
    • ► 03/20 - 03/27 (34)
    • ► 03/06 - 03/13 (11)
    • ► 02/27 - 03/06 (57)
 
Copyright:Dig SharePoint