Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
Powershell Automation help
Post Flair (click to view more posts with a particular flair)
Post Body

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}')

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
188
Link Karma
116
Comment Karma
72
Profile updated: 2 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago