Jenkins-PowerShell 發生例外時回報失敗 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式 8月 03, 2017 Jenkins Power Shell Plug In 1.3版後的更新,由於使用非互動的方式執行,若script發生例外,會直接Bypass視為成功。 https://wiki.jenkins.io/display/JENKINS/PowerShell+Plugin 當發生錯誤時,要視為建置失敗,則要另外加上判斷,如下: 取得連結 Facebook Twitter Pinterest 以電子郵件傳送 其他應用程式
IIS 設定只允許特定IP進入 8月 09, 2018 公司有兩台Web Server,一台對外,一台對內,現在要合併在一起,。預設網站將針對特定IP開放,而某幾個網站則對外完全開放。 如何使用 1.新增功能- IP and Domain Restriction 安裝後,在IIS Root或各網站下可以看到功能圖示 2. 設定IIS Root的存取從Allow改成Deny 3.IIS Root針對特定IP或範圍打開,本例的Mask設為255.255.255.0 代表著192.168.2.0~255可以存取 4.將特定網站對外開放 由於在第2點的IIS Root已設為deny,所有網站會繼承這個設定,而子網站自行修改值的話,則會以子網站為主,這樣就達到預設是deny,而部份是Allow 所有的設定會儲存在IIS的組態內 %windir%\System32\inetsrv\config\applicationHost.config 上述的設定操作,也可以透過Power Shell 執行 $value = @{allowed = "true" ;ipAddress = "192.168.0.1" ;subnetMask = "255.255.255.0" } #1.Setting Root Site as deny Set-WebConfigurationProperty -Filter /system.webserver/security/ipsecurity -Name allowUnlisted -Value $false #1.1 Setting Root Site denyAction as NotFound Set-WebConfigurationProperty -Filter /system.webserver/security/ipsecurity -Name denyAction -Value 'NotFound' #2.Root Site add Allow Ip add-webconfiguration /system.webServer/s 繼續閱讀
WinDbg Debug Tool安裝記錄 3月 01, 2017 參考黑大最近一系列文後,自己個人的安裝備忘文 安裝WinDbg 安裝檔: https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit 進入網頁的下方,找到Window 10(WinDbg) 閱讀完整內容