Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Security Apps
Kaspersky
How to set PS script to TRUSTED but only let it access ETC_Hosts file in system32?
Message
<blockquote data-quote="Andy Ful" data-source="post: 1118644" data-attributes="member: 32260"><p>If you prevent changing the PowerShell script content it will access only Windows_System32_Drivers_etc_hosts.</p><p>I am not sure if you asked the right question. Do you want to:</p><ul> <li data-xf-list-type="ul">restrict a concrete PowerShell script (PS1 file) to access the Hosts file, but allow others to do anything,</li> <li data-xf-list-type="ul">restrict all PowerShell script files from accessing the Hosts file, except one particular PS1 script,</li> <li data-xf-list-type="ul">restrict powershell.exe to use only a specific CmdLine to access the Hosts file, but allow powershell.exe to do anything in other locations,</li> <li data-xf-list-type="ul">block powershell.exe except using only a specific CmdLine to access the Hosts file,</li> </ul></blockquote><p></p>
[QUOTE="Andy Ful, post: 1118644, member: 32260"] If you prevent changing the PowerShell script content it will access only Windows_System32_Drivers_etc_hosts. I am not sure if you asked the right question. Do you want to: [LIST] [*]restrict a concrete PowerShell script (PS1 file) to access the Hosts file, but allow others to do anything, [*]restrict all PowerShell script files from accessing the Hosts file, except one particular PS1 script, [*]restrict powershell.exe to use only a specific CmdLine to access the Hosts file, but allow powershell.exe to do anything in other locations, [*]block powershell.exe except using only a specific CmdLine to access the Hosts file, [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Top