Skip to content

Instantly share code, notes, and snippets.

View GER-NaN's full-sized avatar

Gerald Eckert GER-NaN

View GitHub Profile
@GER-NaN
GER-NaN / PSAutomation_More.ps1
Created September 11, 2019 13:15
More powershell automation of the IE web browser. These are specific to my app and stand as an example only.
#Needs to be ran as administrator
#Logs in as user and creates a generic listing
##hacker-line that causes this script to run in a new session as administrator if not already elevated
#if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator"))
#{
# Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs;
# exit
#}