This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi All,
I have a bit of an issue that i have been looking into but only have basic experience with powershell. So my company uses "SiteKiosk" to lock down a PC but when it boots they have a VBS script which runs a PS script (as SiteKiosk doesn't run PS scripts). It then opens Monitoring software, however we have changed the browser from IE to Edge and Edge will no longer auto login into the software, so i am reaching out hoping someone understand Edge better than me. Below is the PS script that opens Edge, for security purposes i have replaced the links and software with generic names.
Please note, i did not write this.
start microsoft-edge:"Weblink Here"
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate("Weblink Name - Profile 1 - Microsoft​ Edge")
$abc = Get-Process | Where-Object { $_.MainWindowTitle -like '*Weblink Name*' }
Sleep 5
[void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
#$a = Get-Process | Where-Object {$_.Name -like "powershell"}
#[Microsoft.VisualBasic.Interaction]::AppActivate($abc.ID)
$wshell.AppActivate('Weblink Name - Profile 1 - Microsoft​ Edge')
Sleep 2
$wshell.SendKeys('{F11}')
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/PowerShell/...