![]() ![]() ![]() Just so we are clear, the line was: period – space – period – forward slash – the file name. In the PowerShell shell environment, browse to the location where you saved this file. In this case, we want to use dot sourcing to this function to keep it memory. When you execute a PowerShell script, once it is completed, all the functions and variables are removed from memory. We need to Dot Source this script into the shell. Let’s say you used the file name IEZone.ps1. We now need to load the function into memory. Replace with either Unrestricted or RemoteSigned. ![]() Type Set-ExecutionPolicy to set the policy if needed. Type Get-Execution Policy and press Enter to see your current policy. Your execution policy will need to be either Unrestricted or Remotesigned. Below is a PowerShell function that will allow you to use a text file to manage the Internet Explorer Security Zones in a Group Policy.Ĭopy the function and place it into the Windows PowerShell ISE. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |