2016年6月28日 星期二

ServerCore

JOIN DOMAIN
netdom join na-st02 /domain:cch.org.tw /userd:gmail /passwordd:net111



netsh interface ipv4 show interfaces
DNS
netsh interface ipv4 add dnsserver name="乙太網路 2" address=172.28.25.5 index=1

IP
netsh interface ipv4 set address name="乙太網路" source=static address=172.28.26.122 mask=255.255.240.0 gateway=172.28.29.253
netsh interface ipv4 set address name="乙太網路 2" source=static address=172.28.26.152 mask=255.255.240.0 gateway=172.28.29.253


RemoteDesktop

Cscript %windir%\system32\SCRegEdit.wsf /ar

Cscript %windir%\system32\SCRegEdit.wsf /cs 

GUI 完整安裝

Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell -Restart

jump-lists-reset-clear-windows-8-

:: Created by: Shawn Brink
:: http://www.eightforums.com
:: Tutorial:  http://www.eightforums.com/tutorials/9611-jump-lists-reset-clear-windows-8-a.html


del /F /Q %APPDATA%\Microsoft\Windows\Recent\*

del /F /Q %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*

del /F /Q %APPDATA%\Microsoft\Windows\Recent\CustomDestinations\*

taskkill /f /im explorer.exe

start explorer.exe

Clear Read-Only flag on Disk in Windows 7 using Diskpart 

attributes disk clear readonly

san policy=onlineall

GoogleSearch

label:jmail@xxxx.tw from:Dxx8730 before:2012/11/30 after:2012/09/01

WSUS resetauthorization

wuauclt /reportnow
wuauclt /detectnow
wuauclt /resetauthorization /detectnow
C:\Windows\WindowsUpdate.log

teredo enterpriseclient


Restarted Machine

Ran ipconfig /alll the tunnel was still disconnected

Then I tried...

netsh interface ipv6 set teredo enterpriseclient

IIS TIMEOUT

%windir%\system32\inetsrv\appcmd set config /section:asp /session.timeout:00:15:00

OUTLOOK 無法XML

Windows10 開始失效 釘選失效

Get-AppxPackage | % { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml" -verbose }

Windows10 health Check

Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth

Dism /Online /Cleanup-Image /RestoreHealth

快速鍵

windows+Tab:開啟多重虛擬桌面功能

windows+Ctrl+D:開啟一個新的虛擬桌面

windows+Ctrl+F4:關閉虛擬桌面

windows+Ctrl+/右:切換虛擬桌面

windows+A:開啟重要訊息中心

windows+C:透過語音功能啟動 Cortana

 windows+D:顯示桌面

windows+E:打開檔案瀏覽器

windows+G:打開 Xbox 遊戲的錄製工具,讓你可以錄製遊戲或擷取遊戲畫面

windows+H:開啟 windows 10 app 的分享功能

windows+I:打開 windows 10 的設定功能

windows+K:啟動和無線顯示器或音響設備的連接功能

windows+L:鎖定螢幕畫面

windows+P:投影螢幕畫面

windows+R:開啟命令提示字元

windows+S:啟動 Cortana 功能

windows+Shift+/右:讓 app 在不同的顯示器之間移動


windows +///右方向鍵:把視窗貼齊到畫面邊緣

我的最愛Favorites Win10

C:\Users\Book\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\MicrosoftEdge\User\Default\Favorites

Windows Firewall




Import-Module NetSecurity

Set-NetFirewallRule -DisplayName “File and Printer Sharing (Echo Request – ICMPv4-In)” -enabled True



Import-Module NetSecurity
New-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping”  -Description “Packet Internet Groper ICMPv4” -Protocol ICMPv4 -IcmpType 8 -Enabled True -Profile Any -Action Allow

netsh advfirewall>FIREWALL add rule name=”KMS” dir=in action=allow protocol=tcp
localport=1688


2016年4月8日 星期五

disable OWA URL redirects in emails




 redir.aspx?REF=pq5G9nmgd7aSq8xaGpRVRztdi1S-1xbct4_CrLYu-1bT2zdyiF_TCAFodHRwOi8vd3d3Mi5jY2gub3JnLnR3L2Q4MzAwL3NlYXJjaC8.

 set my URL length to 6144 and query length to 4096 and have not had an issue with this since.

http://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits



2016年3月31日 星期四

重安裝 Uninstall Movies & TV


First, open PowerShell as administrator. Open the Start menu, search for “PowerShell,” right-click the PowerShell shortcut, and select “Run as administrator.” Agree to the UAC prompt.



 

Get-AppxPackage *zunevideo* | Remove-AppxPackage

 

Get-AppxPackage *zunevideo* | Add-AppxPackage

Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}

 

2016年3月9日 星期三

Microsoft.Exchange.RpcClientAccess.BufferTooSmallException


當使用MAPI Http來連接時
Address List 超過1400筆會使Exchange 2016無法連線,
停用MAPI Http只用RPC OVER HTTP就OK


將數量降到1355左右就都OK了

Microsoft.Exchange.RpcClientAccess.BufferTooSmallException

Manage MAPI over HTTP

  1. Set-CasMailbox <user or mailbox ID> -MapiHttpEnabled $true
  2. Test-OutlookConnectivity -RunFromServerId ContosoMail -ProbeIdentity OutlookMapiHttpSelfTestProbe
    
    A successful test returns output that's similar to the following example:

https://technet.microsoft.com/zh-tw/library/mt634322(v=exchg.160).aspx

2016年3月2日 星期三

UrlBlockedError.aspx

不符合與安全的 URL 標準的 Url 會取代用戶端存取伺服器上的 [UrlBlockedError.aspx] 頁面的連結




「 outlook Web Access 已停用這個連結,取得您的安全性 」 的錯誤訊息


這種會被OWA2010當做不安全的
https://doc.gogle.com/forms/d/1ErnfVoBf8yu7f8QKojmPN8Fdtqp_IHVtAfNFbkSG-bk/e


插入到超連結就OK了
222

2016年2月14日 星期日

Get-ReceiveConnector default value

[PS] C:\Windows\system32>Get-ReceiveConnector "XXX-MAIL02\Default XXX-MAIL02" |fl *connection*

ConnectionTimeout                       : 00:10:00
ConnectionInactivityTimeout             : 00:05:00
MaxInboundConnection                    : 5000
MaxInboundConnectionPerSource           : unlimited
MaxInboundConnectionPercentagePerSource : 100

2016年1月21日 星期四

clear-clusternode

clear-clusternode xxx-mail64



發生錯誤,因此作業不成功。您可以在 "XXX-MAIL" 上的記錄檔 "C:\ExchangeSetupLogs\DagTasks\dagtask_2016-01-20_00-26-22.046_add-databaseavailabiltygroupserver.log" 中找到更多詳細資料。
[2016-01-20T00:26:25] WriteError! Exception = Microsoft.Exchange.Cluster.Replay.DagTaskOperationFailedException: 伺服器端的資料庫可用性群組管理作業失敗。錯誤: 作業失敗。CreateCluster 錯誤可能是因靜態位址設定不正確所造成。錯誤: 嘗試叢集作業時發生錯誤。錯誤: 節點 XXX-MAIL64 已加入叢集。 ---> Microsoft.Exchange.Cluster.Shared.ClusterNodeJoinedException: 嘗試叢集作業時發生錯誤。錯誤: 節點 XXX-MAIL64 已加入叢集。
   於 Microsoft.Exchange.Cluster.ClusApi.AmCluster.AddNodeToCluster(AmServerName nodeName, IClusterSetupProgress setupProgress, IntPtr context, Exception& errorException, Boolean throwExceptionOnFailure)
   於 Microsoft.Exchange.Cluster.Replay.DagHelper.AddDagClusterNodeInternal(HaTaskStringBuilderOutputHelper output, AmServerName mailboxServerName, String& verboseLog)
   ---