@echo on
wmic ComputerSystem where Name="舊名稱(原本)" call Rename Name="新名稱"
@echo on
wmic ComputerSystem where Name="%COMPUTERNAME%" call Rename Name="新名稱"
2019年7月6日 星期六
2019年6月6日 星期四
安裝出現2503、2502問題?
安裝office 2003出現2503、2502錯誤,原因就是C:\Windows\Temp文件夾NTFS權限錯誤。只要將現有帳號加入授予完全控制即可。
參考:https://kknews.cc/zh-tw/tech/qenrey.html
參考:https://kknews.cc/zh-tw/tech/qenrey.html
2019年4月24日 星期三
做sysprep後,如何刪除之前的使用者?
1.在run完sysprep後,通常系統會要求再設置一個user
account,所以整個系統會有兩個
user
account,這對於工廠端人員是不想預見的,誰不想系統大量佈署後只有一個
account,直接就可以讓客戶直接使用呢?所以我在這要教授如何讓系統跑完sysprep後只
會產生一個user
account。
2.設定password
、product
key、安全設定、時間及日期和網路,設定完之後會產生使用者及使用者目錄。
3.在命令提示列裡輸入:sysprep
/audit /quiet /reboot
4.重開機後進入稽核模式,此時是以administrator的帳號登入,此時我們要砍掉我們剛剛建立的使用者帳號。
5.一樣在命令提示列裡執行:sysprep
/oobe /generalize /reboot /unattend:filename.xml
此時的再次執行sysprep才是真正的要做封裝動作,所以reboot也可以改成shutdown,
如果有應答文件要記得將應答文件跟sysprep.exe放在一起,這樣應答文件才有作用。此時
開機完之後就會以一個新的user
account進入到系統了。
2019年4月20日 星期六
啟用win10 1803以上的終極效能
使用系統管理員身分,在命令列上執行
c:\>powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
※完成後會冒出一個提示,"終極效能"表示開啟完成
在電源管理那找到"終極效能"模式
2019年4月17日 星期三
Can not Windows update?
- Click Start, and in the Search box on the start menu, type CMD, then press Ctrl+Shift+Enter (this will get you an elevation prompt for an Administrator command prompt)
- At the command prompt, type net stop wuauserv, then press Enter
- Type rmdir /s %windir%\softwaredistribution\DataStore, then press Enter. Type Y to acknowledge the command.
- Click Start, and in the Search box on the start menu, type regedit and press Enter
- Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ WindowsUpdate. Right-click on WindowsUpdate in the tree and choose Delete (confirm deletion). Close Regedit.
- At the command prompt, type net start wuauserv, press Enter and close the command prompt.
- Use the Windows Update again to install updates.
參考:https://www.windowsbbs.com/threads/can-not-download-updates.97594/
2019年4月8日 星期一
ESXi 5.5~6.5 指令
1.list the power on VMs:
esxcli vm process list --重要的是找到World ID
若用esxcli vm process list | grep <guest vm name>則只會列出名稱與config file位置
2.turn off the VM:
esxcli vm process kill --type=xxxx --world-id=yyyyy
例如:esxcli vm process kill --type=soft --world-id=60418
for -type=xxxx use: soft, hard or force
for world-id=yyyy(VM ID) use the World ID listed in the command above
(eg. World ID 39731 for the example VM "Cold")
Some information about the three possible shutdown methods:
soft = prefer this if you want to shut down "softly"
hard = equal to an immediate shutdown
force = hard kill of the VM
3.trun on the VM:
list the VM:
vim-cmd vmsvc/getallvms
power on the VM:
vim-cmd vmsvc/power.on <vmid>
Check the power state of the VM
vim-cmd vmsvc/power.getstate <vmid>
check VM status:
esxcli vm process list
4.reboot the VM:
vim-cmd vmsvc/power.restart (reboot)<vm-id>
5.shutdown the VM:
vim-cmd vmsvc/power.shutdown <vm-id>
esxcli vm process list --重要的是找到World ID
若用esxcli vm process list | grep <guest vm name>則只會列出名稱與config file位置
2.turn off the VM:
esxcli vm process kill --type=xxxx --world-id=yyyyy
例如:esxcli vm process kill --type=soft --world-id=60418
for -type=xxxx use: soft, hard or force
for world-id=yyyy(VM ID) use the World ID listed in the command above
(eg. World ID 39731 for the example VM "Cold")
Some information about the three possible shutdown methods:
soft = prefer this if you want to shut down "softly"
hard = equal to an immediate shutdown
force = hard kill of the VM
3.trun on the VM:
list the VM:
vim-cmd vmsvc/getallvms
power on the VM:
vim-cmd vmsvc/power.on <vmid>
Check the power state of the VM
vim-cmd vmsvc/power.getstate <vmid>
check VM status:
esxcli vm process list
4.reboot the VM:
vim-cmd vmsvc/power.restart (reboot)<vm-id>
5.shutdown the VM:
vim-cmd vmsvc/power.shutdown <vm-id>
2019年4月5日 星期五
vmware esxi6.5u1 update 6.5u2?
先下載update6.5u2及之後的Patches
update-from-esxi6.5-6.5_update02.zip
ESXi650-201903001.zip
1.請開啟瀏覽器後輸入 http://ESXi Server IP or FQDN/ui 登入VMware ESXi 6.5主控台
登入帳號:root
登入密碼:系統安裝時,所設定輸入密碼。
2.先準備上載更新檔案
點選:Navigator 導覽器➤Storage 儲存區➤Datastore browser 資料存放瀏覽器
(1).點選:Create directory 建立目錄
(2).命名目錄名稱,例如:Patches
(3).點選:Upload 上傳
(4).選擇已下載更新檔案:update-from-esxi6.5-6.5_update02.zip 上傳ESXi6.5 U2更新檔案
3.選擇:動作➤進入維護模式 Enter Maintenance Mode
4.確認維護模式變更,請點選:是
5.VMware ESXi 6.5 Host主控台可以看到系統已進入維護模式 Enter Maintenance Mode
6.選擇:動作➤服務➤啟用Secure Shell (SSH)服務
VMware ESXi 6.5 Host主控台可以看到系統已進入維護模式 Enter Maintenance Mode
※透過 PuTTY登入ESXi Host端 (需先啟用SSH)服務),執行進入「維護模式」指令:
#vim-cmd /hostsvc/maintenance_mode_enter
7.執行PuTTY登入ESXi 6.5 Host 主機(使用root帳號)
輸入更新指令與存放更新檔案儲存區位置,輸入完成請按下Enter進行系統更新:先更新到6.5U2(在跟目錄下以下指令)
esxcli software vib install -d /vmfs/volumes/vmstorage/Patches/update-from-esxi6.5-6.5_update02.zip
稍後一段時間,即可完成如下圖 ESXi 6.5 Update 2 Patches系統更新完成版本訊息
8.更新完成後,請將ESXi 6.5 Host 退出「維護模式」及「重新開機」。
也可執行PuTTY登入ESXi Host端,執行指令退出「維護模式、重新開機」:
# vim-cmd /hostsvc/maintenance_mode_exit
# reboot
9.再更新6.5U2之後的Patches,步驟與上面相同,只是指令為(在跟目錄下以下指令)
esxcli software vib install -d /vmfs/volumes/vmstorage/Patches/ESXi650-201903001.zip
參考:http://maxlabvm.blogspot.com/2018/05/how-to-install-latest-esxi-65-update-2.html
update-from-esxi6.5-6.5_update02.zip
ESXi650-201903001.zip
1.請開啟瀏覽器後輸入 http://ESXi Server IP or FQDN/ui 登入VMware ESXi 6.5主控台
登入帳號:root
登入密碼:系統安裝時,所設定輸入密碼。
2.先準備上載更新檔案
點選:Navigator 導覽器➤Storage 儲存區➤Datastore browser 資料存放瀏覽器
(1).點選:Create directory 建立目錄
(2).命名目錄名稱,例如:Patches
(3).點選:Upload 上傳
(4).選擇已下載更新檔案:update-from-esxi6.5-6.5_update02.zip 上傳ESXi6.5 U2更新檔案
3.選擇:動作➤進入維護模式 Enter Maintenance Mode
4.確認維護模式變更,請點選:是
5.VMware ESXi 6.5 Host主控台可以看到系統已進入維護模式 Enter Maintenance Mode
6.選擇:動作➤服務➤啟用Secure Shell (SSH)服務
VMware ESXi 6.5 Host主控台可以看到系統已進入維護模式 Enter Maintenance Mode
※透過 PuTTY登入ESXi Host端 (需先啟用SSH)服務),執行進入「維護模式」指令:
#vim-cmd /hostsvc/maintenance_mode_enter
7.執行PuTTY登入ESXi 6.5 Host 主機(使用root帳號)
輸入更新指令與存放更新檔案儲存區位置,輸入完成請按下Enter進行系統更新:先更新到6.5U2(在跟目錄下以下指令)
esxcli software vib install -d /vmfs/volumes/vmstorage/Patches/update-from-esxi6.5-6.5_update02.zip
稍後一段時間,即可完成如下圖 ESXi 6.5 Update 2 Patches系統更新完成版本訊息
8.更新完成後,請將ESXi 6.5 Host 退出「維護模式」及「重新開機」。
也可執行PuTTY登入ESXi Host端,執行指令退出「維護模式、重新開機」:
# vim-cmd /hostsvc/maintenance_mode_exit
# reboot
9.再更新6.5U2之後的Patches,步驟與上面相同,只是指令為(在跟目錄下以下指令)
esxcli software vib install -d /vmfs/volumes/vmstorage/Patches/ESXi650-201903001.zip
參考:http://maxlabvm.blogspot.com/2018/05/how-to-install-latest-esxi-65-update-2.html
訂閱:
文章 (Atom)