0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

身近な課題の自動化に挑戦 Power Automate DesktopでVPN接続の自動化に挑戦したが失敗した

Last updated at Posted at 2022-01-24

テレワーク時に社内イントラに接続したい場合、VPNを利用しなければならない。
毎日手動接続も億劫なのでPower Automate Desktopで作業の自動化に挑戦してみてみました。
結果は失敗に終わりましたが、ツールで自動化可能な範囲が少し見えてきました。

結果

windowsセキュリティウインドウへのキーの送信が動作せず断念

使用したRPAツール

  • Power Automate Desktop

作成したフロー

Flow.png

手順

Cisco AnyConnect

Cisco.png

  • Cisco AnyConnectを起動(以下AnyConeect)
  • AnyConnectが起動するまで待機
  • AnyConnectが起動したらフォーカスを合わせる
  • AnyConnectのConeectボタンをクリック

windowsセキュリティウインドウ①

winsec1.png

  • windowsセキュリティウインドウが起動するまで待機
  • windowsセキュリティウインドウが起動したらフォーカスを合わせる
  • windowsセキュリティウインドウの許可ボタンをクリック

windowsセキュリティウインドウ②

image.png

  • windowsセキュリティウインドウが起動したらフォーカスを合わせる
  • windowsセキュリティウインドウでCtrl + Alt + Delを押す
    ※ここが起動しない

うまく動かなかったアクション
image.png

対応案 レコーダー機能を利用して作業を記録する

記録された
windowsセキュリティウインドウにフォーカスを合わせる(或いはUI要素を取得する)
記録されなかった
windowsセキュリティウインドウでCtrl + Alt + Delを押す
結論
windowsセキュリティウインドウに対してのキー送信はレコーダー機能で記録されない。

まとめ

windowsセキュリティの画面に対しキー送信がうまくできず、自動化は失敗。
Power Automate Desktopで操作できない部分がwindowsの操作にはありそうだと考えてます。
今後はwindows側の設定へのアプローチも検討し、成功した際は記事を追加更新。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?