Pages

GPO for delete files under specific folder and empty recycle bin when user logoff and machine reboot

Empty Recycle Bin

If you are machine running on PowerShell 5.0, you can use “Clear-RecycleBin” cmdlet.

https://blogs.technet.microsoft.com/heyscriptingguy/2016/03/30/use-powershell-5-to-empty-the-recycle-bin/

Since Windows 7 native PowerShell is 2.0 only, we cannot use the PowerShell 5.0 cmdlet to clear recycle bin, we change to use “Clear-RecycleBinItems.ps1”  (https://thinkpowershell.com/powershell-script-empty-recycle-bin-logoff/)

clip_image001

Then, we create a GPO under User Configuration and apply to user OU

clip_image002

Since the PowerShell from GPO cannot run if we did not change Windows PowerShell Policy by the following GPO, the fast way is change the execution policy to “allow local scripts and remote signed scripts” and apply to machine OU

clip_image003

https://docs.splunk.com/Documentation/MSApp/1.4.2/MSInfra/ConfigurePowerShellExecutionpolicyinActiveDirectory

Delete files under specific folder when logoff

Batch file for delete file and GPO apply to user OU

clip_image004

Example:


:echo off

cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Remove-item c:\Documents\*.* -Force"

cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Remove-item c:\Documents\MYMUSI~1\*.* -Force"

cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Remove-item c:\Documents\MYPICT~1\*.* -Force"

cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Remove-item c:\Documents\MYVIDE~1\*.* -Force"

cmd.exe /c "echo Y|PowerShell.exe -NoProfile -Command Remove-item c:\Documents\download\*.* -Force"

exit


Reference:

https://thinkpowershell.com/powershell-script-empty-recycle-bin-logoff/

https://www.jaapbrasser.com/clear-recyclebin-new-powershell-5-0-cmdlet-available-in-windows-10/

http://baldwin-ps.blogspot.hk/2013/07/empty-recycle-bin-with-retention-time.html

https://4sysops.com/archives/powershell-versions-and-their-windows-version/

Monday, December 25, 2017

Kaiwo MS-03 - Miracast (Enable it by click the "WPA" button)


image

image

image


image


By default it will running to provide DLNA and AIRPLAY

image

Click the "WPA" button, it will switch to Miracast

image


The Miracast work well on my Samsung Notes 2 (Android 4.4.2) and Microsoft Lumia 640 (Windows 10 Mobile 1703)

image

But not work on my Samsung Note 4 (Android 6), it seems that due to Google drop Android support Miracast since Android 6

Reference : https://www.pcworld.com/article/2907520/streaming-media/how-to-use-miracast-to-mirror-your-devices-screen-wirelessly-on-your-tv.html


I already try three laptop running on Windows 10 (1607) and (1709) but failed to use Miracast.... And also, my iPad running on iOS 10.3.3, the AirPlay should work with this device, but it still failed ......


I try to search any firmware upgrade of this device but no luck. My device is running on firmware 1.1.9


Reference:

https://www.hktvmall.com/hktv/zh/main/DayDayTouch/s/H5520001/%E6%95%B8%E7%A2%BC%E6%B6%88%E9%96%92/%E9%9B%BB%E5%AD%90-%E6%95%B8%E7%A2%BC-%E9%9B%BB%E5%99%A8/%E5%BD%B1%E9%9F%B3%E7%94%A2%E5%93%81/%E5%AE%B6%E5%BA%AD%E5%BD%B1%E9%9F%B3/%E9%9B%BB%E8%A6%96%E4%B8%B2%E6%B5%81%E6%8E%A5%E6%94%B6%E5%99%A8-MS03-%E6%9B%B4%E6%96%B0%E7%89%88-%E7%99%BD%E8%89%B2/p/H5520001_S_MS-03W

Canon CanoScan Life 120 support Adobe Photoshop CS6 (64bits) scanning

Windows 10 (1607) 64bits, no need install Canon driver, just use the windows WIA driver which is support by CS 6 - 64bits

image

image

Ecovacs DEEBOT M81Pro


image

image

image


image

image

image

image

Reference:

https://youtu.be/Kj5jRQTKH7k

https://m.price.com.hk/product.php?p=276204

https://www.hktvmall.com/hktv/zh/main/電器管家/s/H0696018/家居生活/電子-數碼-電器/家居電器/清潔機械人/智能吸塵機械人DEEBOT-M81-Pro-DB3G/p/H0696018_S_DB3G?gclid=CjwKCAiApJnRBRBlEiwAPTgmxIPMc-SPEyV-N_btZvjwEGeUtnu_6OEdPvWSzMyhpddXxE8zEj1FpBoCYwUQAvD_BwE

Wednesday, December 13, 2017

How to install Chinese Fonts offline on Windows 10 Enterprise 1709?

Go to Microsoft Volume Licensing Service Center (VLSC) and download the "Windows 10 Enterprise Features on Demand" ISO file (Disk 1)

image


1. Copy and mount to SW_DVD9_NTRL_Win_10_1709_64Bit_MultiLang_FOD_1_X21-50438

2. Run "DISM.EXE /Online /Add-Package /PackagePath:D:\Microsoft-Windows-LanguageFeatures- Fonts-Hant-Package.cab" under administrator privilege

3. Reboot the machine


Remark: If you upgrade your machine from 1607 to 1709, you also need to perform the above tasks to reinstall the missing Chinese Character.

If you are using IBM Notes 9.0.1 and you experience the email subject cannot display Chinese, install the missing Chinese Character also able to resolve the issue.


Reference:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/features-on-demand-v2--capabilities#span-idrelatedtopicsspanrelated-topics

https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install-winpc/download-cab-files-for-language-feature-es-mx-and/3f72d00a-6c27-497b-ac0c-2bad7a15423e

https://docs.microsoft.com/en-us/windows/deployment/windows-10-missing-fonts

https://answers.microsoft.com/en-us/windows/forum/windows_10-start-winpc/some-fonts-are-missing-after-upgrade/95839dfa-0df2-4bc0-875a-fd6b57e61fe4?auth=1

https://social.technet.microsoft.com/Forums/windows/en-US/4a1b0d78-bed3-465b-be38-859b4180a01b/missing-fonts-after-creators-update-installed?forum=win10itprogeneral