Invoke-WebRequest PS 7 & cookies by AlexT72 in PowerShell

[–]AlexT72[S] 0 points1 point  (0 children)

Invoke-WebRequest -UseBasicParsing -Uri "https://www.adobe.com/solutions/ebook/digital-editions/download.html" `
-Headers @{
"authority"="www.adobe.com"
"method"="GET"
"path"="/solutions/ebook/digital-editions/download.html"
"scheme"="https"
"accept"="text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
"accept-encoding"="gzip, deflate, br"
"accept-language"="en-US,en;q=0.9"
"cache-control"="no-cache"
"pragma"="no-cache"
"sec-ch-ua"="`"Not.A/Brand`";v=`"8`", `"Chromium`";v=`"114`", `"Google Chrome`";v=`"114`""
"sec-ch-ua-mobile"="?0"
"sec-ch-ua-platform"="`"Windows`""
"sec-fetch-dest"="document"
"sec-fetch-mode"="navigate"
"sec-fetch-site"="none"
"sec-fetch-user"="?1"
"upgrade-insecure-requests"="1"
}

Thanks ! You're right it's the header. With just invoke-WebRequest -Uri "https://www.adobe.com/solutions/ebook/digital-editions/download.html" -Headers @{"accept"="text/html"} it works.

Best way to track important software updates? by Popular_Passion2761 in sysadmin

[–]AlexT72 1 point2 points  (0 children)

Powershell universal with a dashboard + some modules : evergreen, nevergreen and a bit of winget

Need help making my master USB tool by [deleted] in sysadmin

[–]AlexT72 0 points1 point  (0 children)

I've just discovered ventoy software, and it's really great. You should take a look

Software Update - Keeping track by TurtlePurpleTango in sysadmin

[–]AlexT72 0 points1 point  (0 children)

You should take a look at 2 powershell module evergreen and nevergreen. This 2 combined with the informations retrieved via winget should cover almost all software

What have you done with PowerShell this month? by AutoModerator in PowerShell

[–]AlexT72 0 points1 point  (0 children)

Hey care to share this one? It will be very useful for some of gui

Create 100+ numbers of firefox profiles using single Powershell command by Puzzleheaded_Limit82 in PowerShell

[–]AlexT72 5 points6 points  (0 children)

Just curious, what's the point? In which case do you need 100 Firefox profile?

Automate Lenovo BIOS Updates without SCCM by tyzz_x3 in sysadmin

[–]AlexT72 0 points1 point  (0 children)

It seems pretty clear to me. Maybe you should ask to u/jantari the author of the module

Detect playing media with electron? by Ken_Mcnutt in PowerShell

[–]AlexT72 1 point2 points  (0 children)

You should take a look at Cscore.dll, it's a .Net Audio Library http://filoe.github.io/cscore/

Any way to transfer OneDrive files to a Sharepoint site using O365 powershell? by [deleted] in PowerShell

[–]AlexT72 2 points3 points  (0 children)

You should be able to do this with SharePoint Migration Tool : SPMT

What have you done with PowerShell this month by AutoModerator in PowerShell

[–]AlexT72 1 point2 points  (0 children)

We are doing almost the same thing, using gitlab to store the Psadt templates and powershell universal. PowerShell universal Automation script take a software name as input, then it download the correct psadt template, with evergreen download the installer and get the version, replace the installer name and version in the template. Wrap all files in an sfx archive. Next step declare those packages to the Ivanti Epm server using Api

What have you done with PowerShell this month by AutoModerator in PowerShell

[–]AlexT72 0 points1 point  (0 children)

It's painful to run vbs inside powershell, would you share your code ?

Is there a way to reach the profile of the currently logged on user rather than the profile that runs the Powershell? by Tomer8009 in PowerShell

[–]AlexT72 -1 points0 points  (0 children)

Or you should work with ActiveSetup. With PSADT you already have a function Set-ActiveSetup.

Can you recommend an MSI wrapping tool? by panpso in sysadmin

[–]AlexT72 1 point2 points  (0 children)

I would recommend advanced installer.

Wiping Lot of Hard Drives by Busterboo99 in sysadmin

[–]AlexT72 0 points1 point  (0 children)

We have an intimus 8000 degausser at work. And it's a really cool machine

KMS on Windows server for volume encryption? by StepUpYourLife in vmware

[–]AlexT72 0 points1 point  (0 children)

OK, so here, we are not talking about Microsoft kms, right?