Dig SharePoint

3/13/2012

Using PowerShell batch register the DLL to the GAC

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



SharePoint Date: 10:16:00 AM
Share
‹
›
Home
View web version
Powered by Blogger.