Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.
Showing posts with label Windows Server 2012 R2. Show all posts
Showing posts with label Windows Server 2012 R2. Show all posts

Monday, April 11, 2016

Powershell Script to Install a DLL into GAC on Windows Server 2012/ Windows Server 2012 R2 OS when there is no Visual Studio Installed on Web Server



Set-location "DLL Source Path"           
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")           
$publish = New-Object System.EnterpriseServices.Internal.Publish           
$publish.GacInstall("DLL Source Path\FileName.dll")           
iisreset

Example for Source Paths:-
            C:\DLLS

Wednesday, March 02, 2016

How to go to Print$ in Windows Server 2012 R2

  1. Login into the Box.
  2. Click on Server Manager.
  3. In server manager left hand side you will see file and storage services.
  4. Click on it.
  5. In that click on shares.
  6. There you will find Print$ in Windows Server 2012 Server.

Thursday, July 30, 2015

How to make all programs run as Admin by default in Windows8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2



Run PowerShell as Administrator and paste the following to disable UAC:

Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"
shutdown -r -t 0

The above commands will give you a full control on windows8/8.1/win 2012/win2012 R2 computer.