For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoke-WebPSScript

Executes a PowerShell script from a URL.

Property
Value

Module

OSD

Platform

WinPE (amd64 / arm64)

Description

Downloads and executes a PowerShell script from a URL.

Syntax

Invoke-WebPSScript [-Uri] <Uri> [-ProgressAction <ActionPreference>] [<CommonParameters>]

Parameters

Parameter
Type
Required
Description

-Uri

Uri

True

The URL of the PowerShell script to execute. Redirects are not allowed.

Examples

Example

Invoke-WebPSScript -Uri 'https://example.com/script.ps1'

Last updated

Was this helpful?