【作成中】PowerShell のリンクのまとめ
作成中です。PowerShell 運用のリンクのまとめや作業のログです。
PowerShell でのキー入力
ソフトウェアのフォームに「ユーザID」と「パスワード」を入力してログインするスクリプトの書き方。
PowerShellでメッセージボックスを表示する方法。
各種まとめられたリンク集。
PowerShellによるウインドウ操作について
PowerShellでのマウス操作
PowerShell 実行時のセキュリティポリシーの変更
PoserShell のスクリプトを管理者として実行する
PowerShell でGUI Installer の処理
====================
Add-Type -AssemblyName System.Windows.Forms
#Start-Process -FilePath "C:\Users\user\Downloads\rufus-3.17.exe"
Start-Process -FilePath "C:\Users\user\Downloads\MPASetup_Chrome.exe"
Start-Sleep -m 1000
#Add-Type -AssemblyName System.Windows.Forms
#[System.Windows.Forms.SendKeys]::SendWait("%{TAB}")
Start-Sleep -m 1000
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
Start-Sleep -m 1000
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
Start-Sleep -m 1000
[System.Windows.Forms.MessageBox]::Show("コンテキスト1","キャプション",[System.Windows.Forms.MessageBoxButtons]::YesNo)
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
Start-Sleep -m 1000
[System.Windows.Forms.MessageBox]::Show("コンテキスト2","キャプション",[System.Windows.Forms.MessageBoxButtons]::YesNo)
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
====================