3テラバイト

プログラム関連備忘録サイト。主にゲーム。

PowerShell

PowerShellでWebリクエストを実行するコマンドレットInvoke-WebRequestの使い方

投稿日:

こんにちは、今日はPowerShellでWebリクエストを実行するコマンドレットInvoke-WebRequestの使い方についてまとめていきます。

確認環境

PSVersion 5.1.18362.1110

Invoke-WebRequestの使い方

以下のようにUriオプションにリクエストしたいURIを指定して実行します。

PS C:\Users\santerabyte> Invoke-WebRequest -Uri "http://XXX.XXX"

リンク

Invoke-WebRequest (Microsoft.PowerShell.Utility) – PowerShell | Microsoft Docs
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest?view=powershell-5.1

-PowerShell


comment

メールアドレスが公開されることはありません。 が付いている欄は必須項目です


reCaptcha の認証期間が終了しました。ページを再読み込みしてください。

関連記事

no image

PowerShellでトースト通知を送る

確認環境 PSVersion 5.1.18362.1110 トースト通知を送る [Windows.UI.Notifications.ToastNotificationManager, Win …

no image

PowerShellで右寄せ左寄せする方法

こんにちは、今日はPowerShellで右寄せ左寄せする方法についてまとめていきます。 確認環境 PSVersion 5.1.18362.1110 右寄せ "{0,5}" -f 1 …

no image

PowerShellで画像ファイルのExif情報を取得する

こんにちは、今日はPowerShellで画像ファイルのExif情報を取得するほうほうについてまとめていきます。 確認環境 PSVersion 5.1.18362.1110 Exif情報を取得する Ad …

no image

PowerShellで文字列の置換をする方法

確認環境 PSVersion 5.1.18362.1171 文字列の置換 -replace 以下のように置換したい文字列のあとに-replaceとカンマの前に置き換えたい文字列を、カンマの後に置き換え …

no image

PowerShellでWindows Management Instrumentation (WMI)オブジェクトを取得するコマンドレットGet-WmiObjectの使い方

こんにちは、今日はPowerShellでWindows Management Instrumentation (WMI)オブジェクトを取得するコマンドレットGet-WmiObjectの使い方についてま …