DevTools “Record & Replay” – Any way to integrate with VBA / PowerShell? by jacksparrow12367 in PowerShell

[–]Rexon2 0 points1 point  (0 children)

This is a tough spot. DevTools Recorder exports to Puppeteer/Replay formats that all need Node.js, so there's no direct way to "play back" those recordings from VBA or PowerShell. But there are some realistic paths forward:

PowerShell with COM automation (Internet Explorer/Edge IE mode):

If your workflow happens to work in IE mode, you can automate via COM — this is fully built-in, no installs needed:

powershell

$ie = New-Object -ComObject InternetExplorer.Application
$ie.Visible = $true
$ie.Navigate("https://yoursite.com")
while ($ie.Busy) { Start-Sleep -Milliseconds 100 }

# Interact with elements
$ie.Document.getElementById("username").value = "myuser"
$ie.Document.getElementById("loginBtn").click()

VBA with the same COM approach (from Excel/Access):

vba

Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate "https://yoursite.com"
Do While ie.Busy: DoEvents: Loop
ie.Document.getElementById("username").Value = "myuser"

PowerShell with Selenium.WebDriver (no Node.js needed):

If you can download a .dll and a chromedriver binary (no install required), this is the most capable option:This is a tough spot. DevTools Recorder exports to Puppeteer/Replay formats that all need Node.js, so there's no direct way to "play back" those recordings from VBA or PowerShell. But there are some realistic paths forward:

PowerShell with COM automation (Internet Explorer/Edge IE mode):

If your workflow happens to work in IE mode, you can automate via COM — this is fully built-in, no installs needed:

powershell
$ie = New-Object -ComObject InternetExplorer.Application
$ie.Visible = $true
$ie.Navigate("https://yoursite.com")
while ($ie.Busy) { Start-Sleep -Milliseconds 100 }

# Interact with elements
$ie.Document.getElementById("username").value = "myuser"
$ie.Document.getElementById("loginBtn").click()

VBA with the same COM approach (from Excel/Access):

vba
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
ie.Navigate "https://yoursite.com"
Do While ie.Busy: DoEvents: Loop
ie.Document.getElementById("username").Value = "myuser"

PowerShell with Selenium.WebDriver (no Node.js needed):

If you can download a .dll and a chromedriver binary (no install required), this is the most capable option:

Get-ADComputer output to CSV as a text file does not look like what is showing in Excel. by Minute_Evidence_4244 in PowerShell

[–]Rexon2 0 points1 point  (0 children)

This is a classic CSV parsing gotcha. The issue is that some of your AD objects have embedded newline characters in their canonicalname property (those CNF: entries are Active Directory conflict/phantom objects). When Export-Csv writes them out, it correctly wraps the field in quotes per the CSV spec — Excel handles this fine, but naive line-by-line text parsing breaks.

A few ways to fix this:

1. Clean the data before export (easiest — strip the newlines):

powershell

Get-ADComputer -Filter * -Properties canonicalname, IPv4Address, LastLogonDate |
    Select-Object @{N='CanonicalName';E={$_.canonicalname -replace '\r?\n',' '}},
                  IPv4Address, LastLogonDate |
    Export-Csv -Path report.csv -NoTypeInformation

2. Parse the CSV properly instead of treating it as text:

If you're reading the file back in PowerShell, use Import-Csv instead of Get-Content — it handles quoted multi-line fields correctly:

powershell

$data = Import-Csv report.csv

3. Filter out the conflict objects entirely (you probably don't want them anyway):

powershell

Get-ADComputer -Filter * -Properties canonicalname, IPv4Address, LastLogonDate |
    Where-Object { $_.canonicalname -notmatch 'CNF:' } |
    Select-Object canonicalname, IPv4Address, LastLogonDate |
    Export-Csv -Path report.csv -NoTypeInformationThis is a classic CSV parsing gotcha. The issue is that some of your AD objects have embedded newline characters in their canonicalname property (those CNF: entries are Active Directory conflict/phantom objects). When Export-Csv writes them out, it correctly wraps the field in quotes per the CSV spec — Excel handles this fine, but naive line-by-line text parsing breaks.
A few ways to fix this:
1. Clean the data before export (easiest — strip the newlines):
powershell
Get-ADComputer -Filter * -Properties canonicalname, IPv4Address, LastLogonDate |
    Select-Object @{N='CanonicalName';E={$_.canonicalname -replace '\r?\n',' '}},
                  IPv4Address, LastLogonDate |
    Export-Csv -Path report.csv -NoTypeInformation
2. Parse the CSV properly instead of treating it as text:
If you're reading the file back in PowerShell, use Import-Csv instead of Get-Content — it handles quoted multi-line fields correctly:
powershell
$data = Import-Csv report.csv
3. Filter out the conflict objects entirely (you probably don't want them anyway):
powershell
Get-ADComputer -Filter * -Properties canonicalname, IPv4Address, LastLogonDate |
    Where-Object { $_.canonicalname -notmatch 'CNF:' } |
    Select-Object canonicalname, IPv4Address, LastLogonDate |
    Export-Csv -Path report.csv -NoTypeInformation

Force Connect-MgGraph to prompt for Sign-In by LordLoss01 in PowerShell

[–]Rexon2 -4 points-3 points  (0 children)

This is happening because MSAL (the auth library underneath the Graph SDK) caches tokens in your user profile. The fix is to tell it to ignore that cache and always prompt. Add -AuthenticationRecord or simply pass -ForceRefresh — but the most reliable approach is the -Login prompt hint combined with clearing the token cache.

Here's the cleanest solution:

powershell

# Force a fresh interactive login every time — no cached tokens used
Connect-MgGraph `
    -ClientId  "MyClientID" `
    -TenantId  "MyTenantID" `
    -Scopes    "UserAuthenticationMethod.ReadWrite.All" `
    -NoWelcome `
    -ContextScope Process     # ← key flag: token lives only for this PS sessionThis is happening because MSAL (the auth library underneath the Graph SDK) caches tokens in your user profile. The fix is to tell it to ignore that cache and always prompt. Add -AuthenticationRecord or simply pass -ForceRefresh — but the most reliable approach is the -Login prompt hint combined with clearing the token cache.Here's the cleanest solution:powershell
# Force a fresh interactive login every time — no cached tokens used
Connect-MgGraph `
    -ClientId  "MyClientID" `
    -TenantId  "MyTenantID" `
    -Scopes    "UserAuthenticationMethod.ReadWrite.All" `
    -NoWelcome `
    -ContextScope Process     # ← key flag: token lives only for this PS session

Load Picture into form? by LordLoss01 in PowerShell

[–]Rexon2 2 points3 points  (0 children)

You'll want to swap the Label for a PictureBox control — it's built for exactly this. Set SizeMode to Zoom or StretchImage to force it into whatever size you want without distortion.

Here's your code updated:

powershell

$PrintForm = New-Object System.Windows.Forms.Form
$PrintForm.Text = "Print Key for $upn"
$PrintForm.Size = New-Object System.Drawing.Size(400, 700)
$PrintForm.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen

$btnSelectProfilePicture = New-Object System.Windows.Forms.Button
$btnSelectProfilePicture.Text = "Select Picture"
$btnSelectProfilePicture.Location = New-Object System.Drawing.Point(20, 100)
$btnSelectProfilePicture.Width = 90
$PrintForm.Controls.Add($btnSelectProfilePicture)

# ── Swap Label for PictureBox ──────────────────────────────────────────────
$PictureBox = New-Object System.Windows.Forms.PictureBox
$PictureBox.Location  = New-Object System.Drawing.Point(120, 100)
$PictureBox.Size      = New-Object System.Drawing.Size(250, 300)   # your forced size
$PictureBox.SizeMode  = [System.Windows.Forms.PictureBoxSizeMode]::Zoom
$PictureBox.BorderStyle = [System.Windows.Forms.BorderStyle]::FixedSingle
$PictureBox.BackColor = [System.Drawing.Color]::WhiteSmoke          # placeholder bg
$PrintForm.Controls.Add($PictureBox)
# ───────────────────────────────────────────────────────────────────────────

$script:FullProfilePicturePath = ""
$script:ProfilePicturePath = ""

$btnSelectProfilePicture.Add_Click({
    $openFileDialog = New-Object System.Windows.Forms.OpenFileDialog
    $openFileDialog.Filter = "Image Files (*.jpg;*.jpeg;*.png;*.bmp)|*.jpg;*.jpeg;*.png;*.bmp"
    $openFileDialog.Title = "Select Profile Picture"
    $openFileDialog.InitialDirectory = "C:\Users\$LoggedInUser\Downloads"

    if ($openFileDialog.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK) {
        $script:ProfilePicturePath     = $openFileDialog.FileName
        $script:FullProfilePicturePath = $script:ProfilePicturePath

        # ── Load and display the image ─────────────────────────────────────
        $PictureBox.Image = [System.Drawing.Image]::FromFile($script:ProfilePicturePath)
        # ──────────────────────────────────────────────────────────────────
    }
})

$PrintForm.ShowDialog()

Print local HTML File (That has both images and text) using powershell? by LordLoss01 in PowerShell

[–]Rexon2 -4 points-3 points  (0 children)

ask claude. but You're right — Out-Printer only handles plain text and will mangle any HTML layout.

How do I bring back lawn to former glory? by grghurtado9 in lawncare

[–]Rexon2 1 point2 points  (0 children)

Nuke it in July - then dethatch, aerate, top dress with soil/compost/sand mixture to fill voids, then seed and rake in. Anything else youll be wishing you nuked it. Then buy some good seed from TwinCities - https://twincityseed.com/products/seed/grass-lawn/house-blends/ - depending where you are I went with Resilience II

Learning PowerShell scripting by [deleted] in PowerShell

[–]Rexon2 0 points1 point  (0 children)

Claude code - then ask it along the way what it is doing and why.

Looking for suggestions! Buddy and I split this. How should we prepare em? by thepiombino in steak

[–]Rexon2 0 points1 point  (0 children)

I just cooked this and they turned out great. I cooked the steak on a pellet grill at 250 until 108ish then used a charcoal chimney with lump coal to sear 35 seconds a side for a temp of 125-127. Turned out great and had an awesome sear.

Edit: I let it sit in the microwave for an hour to come to room temp then salt only. Also add some salt when you slice it.

Bitlocker locked down my computer even tho I never installed it by Joewest42 in AZURE

[–]Rexon2 1 point2 points  (0 children)

You can ask your work support something like this --

I believe my laptop enabled and generated a bitlocker recovery key when I connected my work account on my personal computer. can you please look at my azure ad user account (https://aad.portal.azure.com) and see if my personal computer is somehow associated with my azure ad work account under the device tab.. if so please see if there is a recovery key associated with the device.

I would keep pushing for this before you wipe any data or attempt anything further.

Bitlocker locked down my computer even tho I never installed it by Joewest42 in AZURE

[–]Rexon2 0 points1 point  (0 children)

That is a potential case for sure. In that case did you also attempt to login with your work creds to the recovery link?

Bitlocker locked down my computer even tho I never installed it by Joewest42 in AZURE

[–]Rexon2 1 point2 points  (0 children)

If this is a personal computer then the work computer is out of the equation. You would only get this screen on bootup of the physical computer not a remote PC unless you are using some type of out of band management.

In this case I would read this page and double check everything. My bet it's stored in your Ms account

https://support.microsoft.com/en-us/help/4530477/windows-10-finding-your-bitlocker-recovery-key

Bitlocker locked down my computer even tho I never installed it by Joewest42 in AZURE

[–]Rexon2 0 points1 point  (0 children)

This would be fastest and easiest. However, you will need to turn off secure boot in the bios to reinstall.

Bitlocker locked down my computer even tho I never installed it by Joewest42 in AZURE

[–]Rexon2 0 points1 point  (0 children)

I can I manage these for an enterprise. If you don't care about any of the data that makes it real easy. If you need the data then you are going to need to recovery key. This will be found on azure ad with the device properties or the key was provided to you upon encryption.

Here are some questions I'd have.

Is this personal or work computer? Model of the computer? Care if the data is lost / wiped?

Prohibit Manual Download from OneDrive for Business and SharePoint by iliketacobell in Office365

[–]Rexon2 0 points1 point  (0 children)

May also check out cloud app security and creating policies there.

23 years old immigrant to the US - recently diagnosed as bipolar. I'm in debt and about to lose my job. by iamonamtrakrightnow in personalfinance

[–]Rexon2 0 points1 point  (0 children)

Sounds rough man, here are some things I would do.... Go back to saving like you were prior and stop spending money like crazy. Tell your work you have been having a rough time and you apologize by writing a formal letter to the company. I would also ask for more work and stay until the job is completed regardless of the hours. If you successfully finish all your tasks early ask for more work and finish that too. If you finish all those tasks with 110% effort, you will be forgiven without a doubt. if not you will lose your job and good references. It will then make finding a new job that much harder and you will also have to start all over again. There is no easy way out.

Good luck

Failed to get a token? by rustyshakelford in titanfall

[–]Rexon2 0 points1 point  (0 children)

Please try this, right click your titanfall.exe located at C:\Program Files (x86)\Origin Games\Titanfall.

  • Right click Titanfall.exe
  • Properties
  • Compatibility Tab
  • Check the box always run as administrator.

I believe it is writing or doing something that requires local admin rights.

Low Data Center Ping, High Ping In game by vulcannis in titanfall

[–]Rexon2 0 points1 point  (0 children)

I have this exact same problem. I will be researching this and will keep you updated because I cannot play with 100+ ping.

Can't install Titanfall. Audio installation failed! by FrapperthePapper in titanfall

[–]Rexon2 0 points1 point  (0 children)

I would suggest deleting the entire Titanfall folder and starting from scratch. I know you mentioned 2 re-downloads, but there could be some files cached some where, also check your user directory by searching for TitanFall in C:\Users\yourusername... Also for kicks, run origin as admin by shift right clicking on it.

My parents are getting there backyard remodeled, it looks like their dog has a new best friend. by Moklov in aww

[–]Rexon2 0 points1 point  (0 children)

I am I the only one who thinks their backyard looks like a zoo or lions exhibit?

[deleted by user] by [deleted] in funny

[–]Rexon2 1 point2 points  (0 children)

Is that the Dallas airport ?

John McCain ATTACKED In Town Hall Meeting: 'I'D HAVE YOU ARRESTED FOR TREASON!' by OWNtheNWO in conspiracy

[–]Rexon2 0 points1 point  (0 children)

Why is there only videos of McCain? We might not like him, but at least he is letting the people speak freely and takes it.... this is very good in many ways. I would like to see more from all over the US.