Saturday, July 21, 2018

[EX13] Enable log for OWA components



https://mail.domain.com/owa/?traceLevel=4&traceComponents=smime

[WSRV] Exporting VM settings



$FormatEnumerationLimit = -1

cd $HOME\Desktop
mkdir VM

Get-VM | ft -autosize > $home\Desktop\VM\Get_VM_ft.txt
Get-VM | fl > $home\Desktop\VM\Get_VM_fl.txt
Get-VM | Get-VMCheckpoint | ft -autosize > $home\Desktop\VM\Get_VMCheckpoint_ft.txt
Get-VM | Get-VMsnapshot | ft -autosize > $home\Desktop\VM\Get_VMsnapshot_ft.txt
Get-VM | Get-VMHardDiskDrive | fl > $home\Desktop\VM\Get_VMHardDiskDrive_fl.txt
Get-VM | Get-VMHardDiskDrive | ft -autosize > $home\Desktop\VM\Get_VMHardDiskDrive_ft.txt
Get-VMHost > $home\Desktop\VM\Get_VMHost.txt
Get-VM | Get-VMIdeController | ft -AutoSize > $home\Desktop\VM\Get_VMIdeController_ft.txt
Get-VM | Get-VMIntegrationService | ft -AutoSize > $home\Desktop\VM\Get_VMIntegrationService_ft.txt
Get-VM | Get-VMIntegrationService | sort enabled | ft -AutoSize > $home\Desktop\VM\Get_VMIntegrationService_sort.txt
Get-VM |  Get-VMMemory | ft -AutoSize > $home\Desktop\VM\Get_VMMemory_ft.txt
Get-VM | Get-VMNetworkAdapter | ft -AutoSize > $home\Desktop\VM\Get_VMNetworkAdapter_ft.txt
Get-VM | Get-VMNetworkAdapter | fl > $home\Desktop\VM\Get_VMNetworkAdapter_fl.txt
Get-VMNetworkAdapterIsolation > $home\Desktop\VM\Get_VMNetworkAdapterIsolation.txt
Get-VMNetworkAdapterVlan > $home\Desktop\VM\Get_VMNetworkAdapterVlan.txt
Get-VMSystemSwitchExtension > $home\Desktop\VM\Get_VMSystemSwitchExtension.txt
Get-VMSwitch > $home\Desktop\VM\Get_VMSwitch.txt
Get-VMSwitch | fl > $home\Desktop\VM\Get_VMSwitch_fl.txt

Thursday, February 8, 2018

[LY15] Remove user reference from Director



USE [rtc]
GO

DELETE FROM [dbo].[UserPolicy]
      WHERE ResourceId = '244'
GO




USE [rtc]
GO

DELETE FROM [dbo].[ResourceDirectory]
      WHERE ResourceId = '244'
GO





USE [rtc]
GO

DELETE FROM [dbo].[Resource]
      WHERE ResourceId = '244'
GO



[WSRV] Remove Server GUI



uninstall-windowsfeature server-gui-shell, server-gui-mgmt-infra

Wednesday, January 31, 2018

[WSRV] ADFS 3.0 Logs



Get-WinEvent -LogName "AD FS/Admin"

To set ADFS debug levels on federation servers and federation proxy servers

  1. Click Start, point to Administrative Tools, and then click Active Directory Federation Services.
  2. Right-click Federation Service or Federation Service Proxy, and then click Properties.
  3. On the Troubleshooting tab, select debug levels as appropriate, and then click OK.

wevtutil sl “AD FS Tracing/Debug” /L:5


In Event Viewer, highlight Application and Services Logs, right-click and select View > Show Analytics and Debug Logs. Navigate to AD FS Tracing – Debug, right-click and select “Enable Log” to start Trace Debugging immediately.

[EX2016] Enable HTTP Strict Transport Security (HSTS)



In IIS, we can add a new header for our site, though, we can also set the response header at the server or folder level if necessary.
  • Open IIS Manager and select the site
  • Double-click on the HTTP Response Headers
  • Click Add…
  • Set the name to: Strict-Transport-Security
  • Set the value to: max-age=10886400 then click OK

Sunday, January 7, 2018

[LY15] Cannot install KB2982006



Get-Hotfix KB2919442,KB2919355,KB2982006

Expand -F:* C:\UCLobby\Windows8.1-KB2982006-x64.msu C:\UCLobby\KB2982006

dism /Online /Add-Package /PackagePath:C:\UCLobby\KB2982006\Windows8.1-KB2982006-x64.cab

Get-Hotfix KB2919442,KB2919355,KB2982006