Skip to main content

Posts

Showing posts from October, 2023

LỖI Hyper-V encountered an error trying to access an object on computer ‘localhost’ because the object was not found

 Hyper-V gặp lỗi trống giao diện quản lý VM dù rằng các service và VM vẫn start lên bình thường. Run the following command from an Elevated (Administrator) command prompt or PowerShell.  Winkey+X >>  Windows PowerShell ( A dmin) MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof Nguyên nhân: có thể do install hoặc remove 1 phần mềm nào đó gây ra hư hỏng Source: https://shauncassells.wordpress.com/2018/05/24/fix-hyper-v-encountered-an-error-trying-to-access-an-object-on-computer-localhost-because-the-object-was-not-found-the-object-might-have-been-deleted-verify-that-the-virtual-machine-managemen/

SHRINK Ổ ĐĨA VMWARE

  SHRINK Ổ ĐĨA VMWARE Source:  https://kingtam.win/archives/vmdk-shrink.html Dùng lệnh  cd  vào thư mục chứa file ví dụ:  cd  /vmfs/volumes/652a35e3-852aa600-7ec9-d4f5ef622278/PC-TEST1 Vào phần quản lý datastore tìm đường dẫn chính xác như hình bên dưới, lưu ý có  phân biệt chữ hoa chữ thường Dùng lệnh  vi  để edit file ổ cứng ví dụ:  vi PC-TEST1.vmdk Để ý phần con số sau chữ RW, đây là dung lượng tính theo bit 167.772.160  =  80  * (2 * 1.024 * 1024)  => ổ 80GB Để giảm còn 60GB, nghĩa là:  167.772.160  -  20  * (2 * 1.024 * 1024) =  125.829.120 Cập nhật số này vào file, save lại là xong. Tìm hiểu thêm bộ lệnh vi editor $ vi <filename> — Open or edit a file. i — Switch to Insert mode. Esc — Switch to Command mode. :w — Save and continue editing. :wq or ZZ — Save and quit/exit vi. :q! — Quit vi and do not save changes. yy — Yank (copy) a line of text. p — Paste a line of yanked text be...

Dùng GPO tự động backup folder Document, Desktop ... vào One Drive

  Silently move Windows known folders to OneDrive Source:  https://learn.microsoft.com/en-us/sharepoint/use-group-policy  Use this setting to redirect and move your users' Documents, Pictures, and/or Desktop folders to OneDrive without any user interaction.  Note We recommend deploying the silent policy for existing devices and new devices while limiting the deployment of existing devices to 1,000 devices a day and not exceeding 4,000 devices a week. We also recommend using this setting together with  Prompt users to move Windows known folders to OneDrive . If moving the known folders silently doesn't succeed, users will be prompted to correct the error and continue.  See all our recommendations for configuring the sync app. You can move all folders at once or select the folders you want to move. After a folder is moved, this policy won't affect that folder again, even if you uncheck the checkbox for the folder. If you enable this setting and provide your t...