Tuesday 22 December 2015

Unable to uninstall silverlight/ unable to install silverlight updates

Ever been unable to uninstall silverlight / unable to install silverlight updates?
Here's how to fix it.


  • Open notepad.
  • Copy the following into a notepad

reg delete HKLM\Software\Microsoft\Silverlight /f
reg delete HKEY_CLASSES_ROOT\Installer\Products\D7314F9862C648A4DB8BE2A5B47BE100 /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D7314F9862C648A4DB8BE2A5B47BE100 /f
reg delete HKEY_CLASSES_ROOT\TypeLib\{283C8576-0726-4DBC-9609-3F855162009A} /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\install.exe /f
reg delete HKEY_CLASSES_ROOT\AgControl.AgControl /f
reg delete HKEY_CLASSES_ROOT\AgControl.AgControl.5.1 /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00} /f
rmdir /s /q "%ProgramFiles%\Microsoft Silverlight"
rmdir /s /q "%ProgramFiles(x86)%\Microsoft Silverlight"

  • Save the file as silverlightfix.cmd



  • Then run the saved file with administrator rights twice. (The second time to confirm its removal)








source: https://support.microsoft.com/en-gb/kb/2608523#bookmark-letmefixitmyself

Monday 21 December 2015

Unable to uninstall Office 2013/365

So earlier on today in the office I was unable to remove Office 2013.

Thankfully Microsoft made a "Fix it" tool to remove office 2013 or office 365.

At the time of posting this is the direct link to the tool:
Microsoft link: http://go.microsoft.com/?linkid=9815935
third party link: https://mega.nz/#F!SkYCQIbK!tdXlxF8T9UXfyKZysdnKaw

Alternatively the source where I found this is:
https://support.office.com/en-us/article/Uninstall-Office-2013-Office-2016-or-Office-365-from-a-Windows-computer-9dd49b83-264a-477a-8fcc-2fdf5dbf61d8?ui=en-US&rs=en-US&ad=US

Friday 18 December 2015

"Your Automatic reply settings cannot be displayed" Outlook error in a multi-forest configuration of Exchange Server

After a small bit of research I found the fix to the error message.
"Your Automatic reply settings cannot be displayed"

Start Registry Editor.

  1. Locate and then click the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\Security
  2. On the Edit menu, point to New, and then click DWORD (32-bit) Value.
  3. Type WinhttpAuth, and then press ENTER.
  4. In the Details pane, right-click WinhttpAuth, and then click Modify.
  5. In the Value data box, type 2, and then click OK.
  6. Exit Registry Editor.

source:https://support.microsoft.com/en-us/kb/2963483


Thursday 17 December 2015

Disk Cleanup on Windows Server 2008 Without Installing Desktop Experience

Windows Server 2008 (64-bit)

Copy the following files:
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_c962d1e515e94269\cleanmgr.exe C:\Windows\System32\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_b9f50b71510436f2\cleanmgr.exe.mui C:\Windows\System32\en-US\
Run the cleanmgr.exe:
> cleanmgr.exe

Windows Server 2008 R2 (64-bit)

Copy the following files:
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe C:\Windows\System32\
> copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui C:\Windows\System32\en-US\
Run the cleanmgr.exe:
> cleanmgr.exe

Unable to change Windows Update settings: "SOME SETTINGS ARE MANAGED BY YOUR SYSTEM ADMINISTRATOR"

To change your settings on Windows Updates manualy, you need to delete added subkey under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU to leave only the "default" subkey.

Wednesday 9 December 2015

Unable to logon to ECP: Deleting and Creating ECP Virtual Directory in Exchange 2013

To do this open Exchange powershell.

Type:

Remove-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Default Web Site)" 

Then:

Remove-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Exchange Back End)" 

Then open command prompt.

Type: 

IISReset

------------------------------------
Then to create ECP.

Open exchange powershell and type:

New-EcpVirtualDirectory -WebSiteName "Default Web Site" -ExternalUrl "https://nameofserver/ecp" -InternalUrl "https://nameofserver/ecp"

Then type:

New-EcpVirtualDirectory -WebSiteName "Exchange Back End" -ExternalUrl "https://nameofserver/ecp" -InternalUrl "https://nameofserver/ecp"


Then open command prompt.

Type:

IISReset

-----------------------------------
IMPORTANT 

You need to make sure you put the correct permissions in place to assure you can login.

Type this into powershell:

Set-EcpVirtualDirectory -Identity "NAMEOFSERVER\ecp (Default Web Site)" -FormsAuthentication $true

Then open command prompt and type:

IISReset

Then open IIS:

Head to Application Pools under your exchange server name and recycle the following:

MSExchangeECPAppPool 
DefaultAppPool 
MSExchangeServicesAppPool

After this to confirm all the permissions are correct open Exchange Powershell and type:

Get-EcpVirtualDirectory -ShowMailboxVirtualDirectories : fl identifity,*url*,*auth*

Then confirm the following are correct:

NAMEOFSERVER\ecp (Default Web Site)
InternalAuthenitcationMethods{Basic, Fba}
BasicAuthentication: True
WindowsAuthentication:False
DigestAuthentication:False
FormsAuthentication:True
LiveIDAuthentication:False
AdfsAuthentication:False
OAuthAuthentication:False    
ExternalauthenitcationMethods:{Fba}

NAMEOFSERVER\ecp (Exchange Back End)
InternalAuthenitcationMethods{Ntlm,WindowsIntegrated}
BasicAuthentication: False
WindowsAuthentication:True
DigestAuthentication:False
FormsAuthentication:False
LiveIDAuthentication:False
AdfsAuthentication:False
OAuthAuthentication:False    
ExternalauthenitcationMethods:{Fba}

After confirming these are correct head to https://localhost/ecp and attempt to logon  


Tip:

*You can recycle an application by right clicking on the application and choosing recycle
*IF any of these are not the same on yours please comment   

 
 








Clear windows updates cache

From time to time, windows updates refuse to install correctly or download correctly.

Thankfully I came across this command for command prompt.

It simply erases the cache where windows updates are kept and starts fresh
(This does not erase already installed updates)

Anyways to do this.

Open Command Prompt with administrator rights and type:

net stop wuauserv       

This stops windows updates service, Then type

cd /d %windir%

This chooses the windows directory, Then type    

rd /s SoftwareDistribution

Then this will prompt you whether you want to remove those files. Choose Y, Then type.

net start wuauserv 

Then this starts windows updates service, type exit and you're done :)




Remove items from printer queue

To remove stuck items in the printer queue.

Open Command Prompt with administrator rights and type:

net stop spooler 

Then

del /F /Q %systemroot%\System32\spool\PRINTERS\*

Then

net start spooler

This will stop the service, delete the documents in the printer queue and restart the service

Change NTLM to Basic - Proxy Settings - Exchange 2013


I'll keep my posts nice and simple, no complex summaries. Just the answers to the questions.

If you ever come across in Outlook, the Proxy settings (aka Outlook anywhere) defaulting to NTLM.

This is how to change it.

Open your exchange server.

Open exchange powershell.

 For internal(in house):

Set-OutlookAnywhere -Identity: "nameofserver\rpc (Default Web Site)"-InternalClientAuthenticationMethod basic

For external:

Set-OutlookAnywhere -Identity: "nameofserver\rpc (Default Web Site)"-ExternalClientAuthenticationMethod basic

Finally open Command Prompt with administrator rights.

And type:

IISReset

To confirm the settings have gone through, reopen Exchange Powershell and type:

Get-OutlookAnywhere -Server NAMEOFSERVER

Then simply close outlook and reopen!
"You can if it doesn't force it change it manually in proxy settings and these settings above will keep it as Basic. Please make sure Outlook is closed before doing so."