Editing hosts file using cmd
Hey Guys, I started working with a new organization and they had very strict policies when it comes to system Security. Only 'cmd' or 'powershell' can be executed with elevated rights. My problem: I need to modify my hosts file which requires admin privileges. Solution: Start Powershell with elevated rights and type below Commands: PS C:\> $newProc = new-object System.Diagnostics.ProcessStartInfo "notepad" PS C:\> $newProc.Arguments = "notepad.exe" PS C:\> $newProc.Verb = "runas" ...