雖然使用vSphere Clinet也可以連線至主機下的guest vm,但有時連線效果會不好,以下就改用vnc直接連線。
一、先使用vsphere client連線至主機
二、點選指定的VM,\\Edit VM Settings\Options\Advanced\General\Configurations Parameters
三、新增三筆記錄如下
remotedisplay.vnc.port="5900"
remotedisplay.vnc.enabled="true"
remotedisplay.vnc.password="password"
四、使用vncviewer連線並指定為 主機ip:5900
如還連不上,則需修改esxi本身的防火牆規則。
一、點選\\Configuration\Security Profile\Firewall\Properties..
二、將gdbserver打勾啟用(此方法較簡單),要個別開啟port參考以下連結。
https://www.netiq.com/documentation/cloudmanager22/ncm22_reference/data/bxzaz5n.html#bxzbk6j
2014年1月6日 星期一
2013年12月10日 星期二
好用的備份指令 Robocopy
當來源和目地的檔案有新舊不同步的情況時
可以使用以下指令來做(vista後有內建,xp和windows 2003需安裝Windows Server 2003 Resource Kit Tools)
robocopy 來源目錄 目地目錄 /MIR /R:0 /W:0
/mir 鏡像目錄
/r:0 重試次數=0
/w:0 等待重試時間=0
其餘參數可用 robocopy /? 來做查詢
可以使用以下指令來做(vista後有內建,xp和windows 2003需安裝Windows Server 2003 Resource Kit Tools)
robocopy 來源目錄 目地目錄 /MIR /R:0 /W:0
/mir 鏡像目錄
/r:0 重試次數=0
/w:0 等待重試時間=0
其餘參數可用 robocopy /? 來做查詢
2013年12月9日 星期一
2013年11月18日 星期一
開放網域伺服器匿名讀取權限
預設情況下伺服器的Guest帳號是停用的,此時連線至網芳上的共用資料夾,會出現要求輸入帳號密碼。但如果需要開放共用資料夾讓未加入網域的電腦讀取,就需要使用以下方式設定。
例如本機使用Administrator登入、伺服器Administrator也啟用但兩者密碼不一樣,
如有此情況,使用無重覆帳號登入即可。
一、於共用資料夾的共用→使用權限,加入 "Everyone" 帳號,設定(完全或讀取)如還是會出現要求帳號、密碼的視窗。請注意本機與伺服器帳號是否重覆且密碼不一樣。
二、於共用資料夾的安全性設定加入 "Everyone" 帳號,並設定為讀取
三、啟用該電腦上的Guest帳號
例如本機使用Administrator登入、伺服器Administrator也啟用但兩者密碼不一樣,
如有此情況,使用無重覆帳號登入即可。
2013年11月16日 星期六
非網域環境,遠端管理Hyper-V 2012 R2主機
當在非網域環境,遠端管理Hyper-V 2012 R2主機時,可能會出現
一、手機設定主機IP解析
二、使用hvermote工具,下載網址:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx?ReleaseId=1827
此時再使用Hyper-V管理員,應該就可以正確連上伺服器了。
參考來源:
http://www.askasu.idv.tw/index.php/2008/12/25/142/
http://blog.tenyi.com/2013/04/hyper-v-server-2012.html
Hyper-V 管理員發生 "您沒有完成此工作的必要使用權限" 錯誤
可經由以下方式解決一、手機設定主機IP解析
修改C:\Windows\System32\drivers\etc\hosts
加入 IP 主機名稱
例如:192.168.1.11 HV1
二、使用hvermote工具,下載網址:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx?ReleaseId=1827
1.以系統管理員身份開啟"命令提示字元"
2.執行:cscript //h:cscript
3.參考以下環境執行對應的指令
| Configuration | Where | Purpose | Commands |
| Client and Server both workgroup | Server | Create a local account (eg "john") | Use net user /? or Computer Management |
| Server | Grant the user access | hvremote /add:accountname *** | |
| Client | Allow Anonymous Logon remote DCOM access | hvremote /anondcom:grant | |
| Client | Logon with matching local account. | ||
| Client | If passwords do not match | cmdkey /add:servername /user:servername\account /pass | |
| Both | Verify configuration for errors | hvremote /show /target:othercomputername | |
| ------------------------- | |||
| Client workgroup, Server domain | Server | Grant domain account access | hvremote /add:domain\account *** |
| Client | Allow Anonymous Logon remote DCOM access | hvremote /anondcom:grant | |
| Client | Set credentials for domain account | cmdkey /add:servername /user:domain\account /pass | |
| Both | Verify configuration for errors | hvremote /show /target:othercomputername | |
| ------------------------- | |||
| Client domain, Server workgroup | Server | Create a local account (eg "john") | Use net user /? or Computer Management |
| Server | Grant the user access | hvremote /add:accountname *** | |
| Client | Allow Anonymous Logon remote DCOM access | hvremote /anondcom:grant | |
| Client | Set credentials for local account | cmdkey /add:servername /user:servername\accountname /pass | |
| Both | Verify configuration for errors | hvremote /show /target:othercomputername | |
| ------------------------- | |||
| Client and Server both domain | Server | Grant the non-admin user access | hvremote /add:domain\account *** |
| Both | Verify configuration for errors | hvremote /show /target:othercomputername |
此時再使用Hyper-V管理員,應該就可以正確連上伺服器了。
參考來源:
http://www.askasu.idv.tw/index.php/2008/12/25/142/
http://blog.tenyi.com/2013/04/hyper-v-server-2012.html
Windows,複製並保留權限設定
當我們從A電腦複製檔案到B電腦時,會套用B電腦的資料夾權限設定
可如果我們要保留在A電腦上的權限設定時,可用XCOPY加上參數來達成。
例
可如果我們要保留在A電腦上的權限設定時,可用XCOPY加上參數來達成。
例
xcopy X:\TEMP \\192.168.99.100\D$\TEMP\ /X /H /E /O /K
/E - 複製資料夾及子資料夾,就算是空的也照抄
/H - 複製隱藏檔案及系統檔案
/K - 複製後保留唯讀屬性(預設Xcopy後會重設唯讀屬性)
/O - 複製檔案擁有者及權限設定(ACL)
/X - 複製稽核設定(會一併啟用/O)
2013年10月29日 星期二
移除PowerPoint 2003 PPT檔 密碼保護
當有份PPS或PPT文件被設定了唯讀保護,而需要移除時又不知道密碼
除了可以透過"Advanced Office Password Recovery"這套付費軟體來移除外
另外還可以使用WPS OFFICE 這套軟體去唯讀開啟PPS、PPT檔,
然後另存新檔→"於存檔視窗"點選"Encrypt.."→將密碼欄位清空,確定後存檔即可。
除了可以透過"Advanced Office Password Recovery"這套付費軟體來移除外
另外還可以使用WPS OFFICE 這套軟體去唯讀開啟PPS、PPT檔,
然後另存新檔→"於存檔視窗"點選"Encrypt.."→將密碼欄位清空,確定後存檔即可。
訂閱:
文章 (Atom)