# adds all dll files from folders into GAC # **** Attention *** in case of permission/signature error Execute this command from powershell to allow run powershell files : Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass # load System.EnterpriseServices assembly [Reflection.Assembly]::LoadWithPartialName("System.EnterpriseServices") > $null # create an instance of publish class [System.EnterpriseServices.Internal.Publish] $publish = new-object System.EnterpriseServices.Internal.Publish Get-ChildItem "C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin" -Filter *.dll | Foreach-Object { $content = $_.FullName Write-Output "registering "+$content; $publish.GacInstall($content) }
Monday
register dlls into GAC on server 2012
You may noticed that gacutil is missing in on server 2012.There is no clear way to download and install gacutil or have portable gacutil.exe to deploy.
This powershell script will register multiple dlls from folder.
Change path if you have to do batch install dlls from another directory.
Subscribe to:
Post Comments (Atom)
test smtp server with powershell
Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...
-
Here is instruction how to make blinking text in rainmeter: 1.right click and select " Edit skin " 2.add following code to temp...
-
Error:The element 'Schedule' has invalid child element 'RecurrenceRule'. List of possible elements expected: 'Occurring...
-
If you use Visual Studio to open a Web project that was developed for the .NET Framework 2.0, the .NET Framework 3.0, or the .NET Framework...
No comments:
Post a Comment