Hello The files you’re referring to seem to be temporary files generated by PowerShell scripts. These files are usually created during the execution of scripts and are deleted once the script has finished running. However, if the script is interrupted or encounters an error, these files might not be deleted. To prevent the generation of these files, you could modify the scripts to avoid writing temporary files to disk, or ensure that they properly clean up these files even when an error occurs. However, this might not be feasible if you don’t have control over the scripts that are generating these files. [My computer keep on creating random .TMP on my desktop?? - Microsoft Community](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fwindows%2Fforum%2Fall%2Fmy-computer-keep-on-creating-random-tmp-on-my%2Fe6d9ed48-342d-454f-ad50-ae514bb9a231&data=05%7C02%7Cwesleyl%40wicresoft.com%7C59891454b3b046a9b7ff08dc38fa9fae%7Cb2ae8dd9097749768706861b488b1512%7C0%7C0%7C638447896288349691%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=skCrAGxrEHFB1DBGwf%2FBaOjFGHPyvQ24O34wHaagO14%3D&reserved=0"原始 URL: https://answers.microsoft.com/en-us/windows/forum/all/my-computer-keep-on-creating-random-tmp-on-my/e6d9ed48-342d-454f-ad50-ae514bb9a231。如果你信任此链接, 请单击或点击。") As for AppLocker, it’s a feature in Windows that helps you control which apps and files users can run. If you want to disable AppLocker, you can do so through the Local Security Policy. Here are the steps: Open Local Security Policy (secpol.msc). Navigate to Application Control Policies > AppLocker. Right-click and select “Clear Policy”. Reboot the machine.
Recurrent random files PolicyTest
Best regards Microsoft development team, Can you please tell us if there is a way to prevent the operating system from generating the following random files? How can we disable Windows 10 to check if applocker is enabled or not and not to generate these files?
- C:\Users\Belltech_config\AppData\Local\Temp__PSScriptPolicyTest_daimvjv3.trq.ps1
- C:\Windows\Temp__PSScriptPolicyTest_nyvqa3ov.2ay.ps1
Thank you very much for your help!
2 answers
Sort by: Most helpful
-
-
Wesley Li 8,345 Reputation points
2024-02-29T07:51:12.1266667+00:00 Hello The files you’re referring to seem to be temporary files generated by PowerShell scripts. These files are usually created during the execution of scripts and are deleted once the script has finished running. However, if the script is interrupted or encounters an error, these files might not be deleted. To prevent the generation of these files, you could modify the scripts to avoid writing temporary files to disk, or ensure that they properly clean up these files even when an error occurs. However, this might not be feasible if you don’t have control over the scripts that are generating these files. [My computer keep on creating random .TMP on my desktop?? - Microsoft Community](https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fwindows%2Fforum%2Fall%2Fmy-computer-keep-on-creating-random-tmp-on-my%2Fe6d9ed48-342d-454f-ad50-ae514bb9a231&data=05%7C02%7Cwesleyl%40wicresoft.com%7C59891454b3b046a9b7ff08dc38fa9fae%7Cb2ae8dd9097749768706861b488b1512%7C0%7C0%7C638447896288349691%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=skCrAGxrEHFB1DBGwf%2FBaOjFGHPyvQ24O34wHaagO14%3D&reserved=0"原始 URL: https://answers.microsoft.com/en-us/windows/forum/all/my-computer-keep-on-creating-random-tmp-on-my/e6d9ed48-342d-454f-ad50-ae514bb9a231。如果你信任此链接, 请单击或点击。") As for AppLocker, it’s a feature in Windows that helps you control which apps and files users can run. If you want to disable AppLocker, you can do so through the Local Security Policy. Here are the steps: Open Local Security Policy (secpol.msc). Navigate to Application Control Policies > AppLocker. Right-click and select “Clear Policy”. Reboot the machine.