Skip to content

Commit 8f7a376

Browse files
committed
Changes from CMS
1 parent 053707f commit 8f7a376

5 files changed

Lines changed: 340 additions & 5 deletions

src/posts/20260407-runas-コマンドとは-ja.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ featured: false
55
oldUrl: []
66
lang: ja
77
id: 202509b-runas-command
8-
date: 2026-04-07T07:19:40.271Z
9-
last_modified: 2026-04-07T16:37:00.000Z
8+
date: 2026-04-08T01:29:00.000Z
9+
last_modified: 2026-04-08T10:30:00.000Z
1010
title: runas コマンドとは
1111
description: '普段は標準ユーザーで作業している方必見。Windowsのrunasコマンドで必要なときだけ管理者権限を使い、アプリや管理画面を起動する方法を解説。 '
1212
image: /uploads/blog-esolia-pro-default.png
@@ -26,7 +26,7 @@ comments: {}
2626
---
2727
社内でサポートしていると、よくこんな場面に出くわします。
2828
「普段は管理者権限を持たないユーザーアカウントで作業している。でも、ドライバのアンインストールや管理者権限が必要なWeb管理画面を開くときは権限が足りない…」
29-
管理者でログオフ/ログオンするのは手間。そこで役立つのが Windows 標準の runas コマンド です。
29+
管理者でログオフ/ログオンするのは手間。そこで役立つのが Windows 標準の **runas コマンド** です。
3030
必要なときだけ管理者アカウントでアプリを起動できる、便利な仕組みです。
3131

3232
<!--more-->
@@ -35,13 +35,15 @@ comments: {}
3535
* 「別のユーザーとしてプログラムを実行する」ためのWindows標準コマンド
3636
* 標準ユーザーでログオンしていても、管理者アカウントのIDとパスワードを入力すれば、管理者権限のプログラムを起動できる
3737
* イメージ:普段は自分の鍵で部屋に入るけど、必要なときだけ管理者の鍵を借りて別の部屋に入る感じ
38-
※注意:runas は「別ユーザーで実行」するもので、すべてのケースでUAC昇格を自動化するわけではありません。場合によっては cmd.exe /c を中継する必要があります。
38+
※注意:runas は「別ユーザーで実行」するもので、すべてのケースでUAC昇格を自動化するわけではありません。場合によっては cmd.exe /c を中継する必要があります。
3939

4040
## 実務例1:デバイスマネージャーを管理者権限で開く
4141
私の場合、社内ユーザーPCをサポートするときに デバイスマネージャーからドライバーをアンインストールして、再起動して再インストール することがあります。
4242
デバイスの無効化・アンインストールには管理者権限が必要なため、runas で管理者アカウントを使って開きます。
4343

44-
runas /user:DOMAIN\AdminAccount "cmd.exe /c mmc devmgmt.msc"
44+
```cmd
45+
runas /user:DOMAIN\AdminAccount "cmd.exe /c mmc devmgmt.msc"
46+
```
4547

4648
* runas /user:DOMAIN\AdminAccount:管理者アカウント(ローカルなら PC名\Administrator)
4749
* コマンド実行後にパスワード入力
@@ -52,3 +54,28 @@ runas /user:DOMAIN\AdminAccount "cmd.exe /c mmc devmgmt.msc"
5254
5355
## 実務例2:Chrome を管理者アカウントで開く
5456
たまに、Exchange Admin CenterやIntune コンソールなど管理者権限が必要なWeb管理画面を開くときにもrunasを使います。
57+
58+
```cmd
59+
runas /user:admin_account@example.com "C:\ProgramFiles\Google\Chrome\Application\chrome.exe"
60+
```
61+
62+
* パスワード入力後、そのChromeセッションは管理者権限で動作
63+
* 注意:Chrome の保存場所(C:\Program Files\Google\Chrome\Application\)は端末によって異なる場合があります。実際の環境に合わせてパスを確認してください
64+
65+
こうすると、普段は標準ユーザーで作業しつつ、必要なときだけ管理者権限で管理画面にアクセスできます。
66+
67+
## よくある疑問・注意点
68+
* パスワードをバッチに書くのはNG → 漏洩リスク大
69+
* /savecred オプションはセキュリティリスクがある → 使用は企業ポリシーを確認
70+
* UAC との関係 → runas は昇格コマンドではないため、740エラーが出た場合は cmd.exe /c などの工夫が必要
71+
72+
## 便利な運用アイデア
73+
* よく使うコマンドは バッチ化 → ダブルクリックで起動(パスワードは入力)
74+
* タスクスケジューラ で管理者権限タスクを作成 → ワンクリック実行
75+
* 外部ツール(PsExecなど) は便利だが管理には注意
76+
77+
## まとめ
78+
* runas は「別ユーザーとしてプログラムを実行」できる標準コマンド
79+
* デバイスマネージャー起動では cmd.exe /c を中継するのが実務でのコツ
80+
* Chrome などのアプリも管理者権限で起動可能
81+
* パスワード自動化は危険。運用ルールを守って活用
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
draft: true
3+
hot: false
4+
featured: false
5+
oldUrl: []
6+
lang: en
7+
id: 202509c-email-attachment
8+
date: 2026-04-08T02:10:47.259Z
9+
last_modified: 2026-04-08T11:22:00.000Z
10+
title: Email Attachment
11+
description: >-
12+
Explains the risks of ZIP bombs and macro viruses hidden in email attachments.
13+
Provides easy-to-understand guidance for beginners on how to identify them and
14+
practical countermeasures.
15+
image: /uploads/blog-esolia-pro-default.png
16+
image_top: /uploads/blog-esolia-pro-default-top.png
17+
author: SK
18+
category: Security
19+
tags:
20+
- Zipfile
21+
- Cybersecurity
22+
- Corporate Security
23+
- Macro
24+
- Macrovirus
25+
comments: {}
26+
---
27+
Have you ever opened an email attachment without thinking twice?
28+
Files labeled “Invoice”, “Report”, or “Meeting materials” may look routine -but some are cleverly disguised traps that can cause system failures or data breaches.
29+
This post highlights two common threats in corporate environments. ZIP bombs and macro viruses.
30+
31+
<!--more-->
32+
33+
## ZIP Bombs: When You Unzipping Crashes Your System
34+
A zip bomb is a maliciously compressed file that expands into gigabytes - or even terabytes – of date when extracted. This overloads your PC or antivirus software, potentially causing a system freeze or crash.
35+
36+
**What to watch for:**
37+
* Suspiciously small ZIP files (e.g., just a few KB)
38+
* Generic names like “Invoice.zip”, “Report.zip”
39+
* Unexpected behavior after extraction (e.g., freezing, antivirus shutdown)
40+
41+
> [!NOTE]
42+
> **What to do:**
43+
> ・Never unzip files from unknown senders
44+
> ・Check file properties before extracting (right-click → Properties)
45+
> ・Keep real-time protection enabled in your antivirus software
46+
47+
## Macro Viruses: Hidden Code in Office Documents
48+
Macro viruses are embedded in Word or Excel files and activate when the document is opened -especially if you click “Enable Content”. These scripts can perform unauthorized actions like sending data externally or modifying files.
49+
50+
**What to watch for:**
51+
* File extensions like “.docm” or “.xlsm” (macro-enabled formats)
52+
* Prompts to “Enable Content” upon opening
53+
* Unexpected behavior after enabling macros
54+
55+
> [!NOTE]
56+
> **What to do:**
57+
> ・Avoid clicking “Enable Content” unless you trust the sender
58+
> ・Only open macro-enabled files from verified internal access
59+
> ・Set office to “Disable VBA macros with notification” in your setting.
60+
> (File >Options > Trust Center > Trust Center Settings) > Macro setting
61+
62+
## Share and Report
63+
Attachment-based attacks don’t just affect individuals – they can compromise entire departments. Early detection and communication are key.
64+
* If something feels off, consult your IT team before opening
65+
* If you’ve already opened a suspicious file, report it immediately
66+
* Share alerts with colleagues -similar email may be circulating
67+
68+
## Think Before You Click
69+
Attachments are useful, but they come with risks.
70+
Before opening any file, ask yourself: “Who sent this?”,” What format is it?”, “Do I really need to open it?”
71+
A moment of caution can protect your data and your team.
72+
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
draft: true
3+
hot: false
4+
featured: false
5+
oldUrl: []
6+
lang: en
7+
id: 202509b-runas-command
8+
date: 2026-04-08T01:10:46.910Z
9+
last_modified: 2026-04-08T10:27:00.000Z
10+
title: >-
11+
Understanding the runas Command - Running Apps with Another Account Without
12+
Logging Off
13+
description: >-
14+
Learn how to use the Windows runas command to run apps or admin consoles with
15+
admin rights only when needed, while working mainly as a standard user.
16+
image: /uploads/blog-esolia-pro-default.png
17+
image_top: /uploads/blog-esolia-pro-default-top.png
18+
author: Kabaya
19+
category: Windows
20+
tags:
21+
- Runas
22+
- AdminRights
23+
- ITSupport
24+
- BeginnerFriendly
25+
- DeviceManager
26+
- Chrome
27+
- BusinessEfficiency
28+
- InternalIT
29+
comments: {}
30+
---
31+
In day-to-day IT support, situations often come up like:
32+
“I normally work with a standard user account, but sometimes I need admin rights to uninstall drivers or access admin web consoles.”
33+
Logging off and switching accounts every time is tedious. That’s where the built-in Windows **runas command** comes in handy.
34+
It lets you run programs using an admin account only when needed, without changing your main login.
35+
36+
<!--more-->
37+
38+
## What is runas
39+
* runas is a Windows command that allows you to run a program as a different user.
40+
* Even if you’re logged in as a standard user, you can launch a program with admin privileges by entering the admin username and password.
41+
* Think of it like having your own key for normal tasks, but borrowing an admin key to access a locked room when necessary.
42+
43+
> [!NOTE]
44+
> runas runs the program as another user. It does not automatically handle UAC elevation in all cases. Sometimes you need to use cmd.exe /c as an intermediary.
45+
46+
## Example 1: Opening Device Manager as an Admin
47+
In my daily IT support, I sometimes uninstall and reinstall drivers on user PCs.
48+
To uninstall a device, admin rights are required, so I use runas to open Device Manager:
49+
50+
```cmd
51+
runas /user:DOMAIN\AdminAccount "cmd.exe /c mmc devmgmt.msc"
52+
```
53+
* DOMAIN\AdminAccount = your admin account (or PCName\Administrator for local accounts)
54+
* After entering the password, Device Manager opens with admin rights
55+
56+
Why it’s useful: You don’t need to log off and log on as an admin every time, saving time and effort.
57+
58+
## Example 2: Opening Chrome as an Admin
59+
Sometimes, I need to access admin web consoles like Exchange Admin Center or Intune.
60+
In those cases, I use runas to launch Chrome with my admin account:
61+
62+
```cmd
63+
runas /user:admin_account@example.com "C:\ProgramFiles\Google\Chrome\Application\chrome.exe"
64+
```
65+
66+
* After entering the password, that Chrome session runs with admin privileges
67+
* Important: The Chrome installation path (C:\Program Files\Google\Chrome\Application\) may vary depending on the device. Adjust the path as needed.
68+
69+
This lets you stay logged in as a standard user while accessing admin tools only when necessary.
70+
71+
## Common Questions / Tips
72+
* Can I store the password in a script? → Not recommended. Storing in plain text is a security risk.
73+
* Can I use /savecred? → Possible, but it has security risks. Always follow your company policy.
74+
* What about UAC? → runas doesn’t handle all UAC prompts. If you get a 740 error, use cmd.exe /c or consider alternatives like Task Scheduler.
75+
76+
## Practical tips
77+
* Batch files: Create a .bat for frequently used commands. Double-click and enter the password.
78+
* Task Scheduler: IT can pre-create admin tasks. Users can run them with a single click.
79+
* Third-party tools (e.g., PsExec): Useful, but be cautious with passwords and logs.
80+
81+
## Summary
82+
* runas lets you run programs as another user without logging off.
83+
* For Device Manager, use cmd.exe /c to avoid the 740 error.
84+
* Apps like Chrome can also run with admin privileges via runas.
85+
* Avoid storing passwords in scripts. Follow safe operational rules.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
draft: true
3+
hot: false
4+
featured: false
5+
oldUrl: []
6+
lang: ja
7+
id: 202509d-remote-environment
8+
date: 2026-04-08T02:42:57.480Z
9+
last_modified: 2026-04-08T11:54:00.000Z
10+
title: 在宅勤務で集中力を保つ!快適デジタル環境の整え方
11+
description: '在宅勤務で目や肩の疲れ、集中力の低下に悩んでいませんか?モニター環境の工夫や昇降デスク、ポモドーロ法など、IT視点で「疲れない」働き方を紹介します。 '
12+
image: /uploads/blog-esolia-pro-default.png
13+
image_top: /uploads/blog-esolia-pro-default-top.png
14+
author: Shiori
15+
category: 周辺機器
16+
tags:
17+
- 在宅業務
18+
- 在宅型テレワーカー
19+
- テレワーク
20+
- デジタル疲れ
21+
- 作業環境改善
22+
- モニター
23+
- ポモドーロテクニック
24+
- Windows11便利機能
25+
comments: {}
26+
---
27+
この頃は在宅勤務が一般化し、通勤がなくなったことで時間に余裕が生まれ、ワークライフバランスをとりやすくなったと感じる方も多いのではないでしょうか。仕事へのモチベーションが上がった、という声もよく聞かれます。
28+
その一方で、「目が疲れる」「肩がこる」「集中力が続かない」「情報が多すぎて疲れる」といった、在宅勤務ならではの“デジタル疲れ”に悩む人も少なくありません。
29+
そこで今回は、ITの視点から、在宅勤務を快適にし、できるだけ「疲れない」環境を整える方法をまとめてみました。
30+
31+
<!--more-->
32+
33+
## 画面環境を整える
34+
長時間の作業では、モニターの位置や明るさが体への負担を大きく左右します。目線と同じ高さに画面を合わせることで、首や肩のこりを軽減できます。
35+
外部モニターを使用していない場合は、ぜひこの機会に導入検討をおすすめします。
36+
ノートPCだけで作業すると、どうしても前かがみの姿勢になりやすく、体に負担がかかります。外付けモニターを使うことで、姿勢が自然と改善され、作業効率も大きく向上します。
37+
38+
モニターのサイズは 24インチ前後 が一般的に使いやすくおすすめです。デスクのスペースに余裕がある場合は 27インチ を選ぶと、複数のウィンドウを並べて作業しやすくなります。フルHD(1920×1080)以上の解像度を選ぶと文字も見やすく、快適に作業できます。
39+
40+
また、モニターの色味や明るさを調節したり、PCやスマホの「ナイトライト」やブルーライトカット機能を活用すると、目の疲れをやわらげられます。
41+
42+
## 姿勢と周辺環境を工夫する
43+
椅子や机の高さ、キーボードやマウスの形状など、ちょっとした調整で体の疲れは大きく変わります。人間工学に基づいた製品を選ぶと、長時間の作業も快適になります。部屋の明るさや空調を整えることも、集中力アップに効果的です。
44+
45+
私自身、よく立ち姿勢を取り入れています。家の中で立てる場所を見つけて作業してみると、集中力が高まるのを実感できます。気分転換にもなりますし、ずっと座っているより体が楽に感じられます。
46+
47+
最近は昇降デスクの種類も増えてきていますが、「そこまで導入するのは気が引ける」という方は、まずはご自宅で立ち姿勢がとれる場所を探してみるのがおすすめです。小さな工夫でも、作業環境がずいぶん変わります。
48+
49+
また、クライアント先のオフィスでは、バランスボールに座って作業している方を見かけることもあります。私自身はまだ試したことがありませんが、一定数の方が取り入れているのを見るときっと効果があるのだろうな、と感じます。ぜひ今度試してみたいです。
50+
51+
## デジタル休憩を取り入れる
52+
集中して作業すると、つい休憩を忘れてしまいがちですよね。
53+
おすすめなのが、**ポモドーロ・テクニック**です。これは「25分作業+5分休憩」を1セットとして繰り返す時間管理法で、短時間の集中と小休憩を交互に行うことで疲れをためにくくします。4セット終わったら15〜30分の長めの休憩を取るのが基本です。
54+
55+
Windows11の**フォーカスセッション機能**を使うことで、効率よくポモドーロタイマーを設定できます。
56+
57+
1. **フォーカスセッションを開く**
58+
スタートメニューを開く
59+
「クロック」アプリを検索して起動
60+
左メニューから「フォーカスセッション」を選択
61+
62+
2. **セッションの時間を設定する**
63+
画面中央にある時間設定で、作業時間を入力
64+
(例:25分に設定 → ポモドーロの作業時間に)
65+
66+
3. **休憩(ブレイクタイム)の設定**
67+
デフォルトでは「作業時間+短い休憩」で構成されています。
68+
設定アイコン(⚙) → フォーカスセッション → 休憩時間で調整可能
69+
作業 25分 → 休憩 5分
70+
4回繰り返したら長めの休憩(15〜30分)も設定可能
71+
72+
4. **セッション開始**
73+
「開始」をクリックするとカウントダウンが始まります。
74+
作業終了後、自動的に休憩時間に切り替わります。
75+
76+
動作している間は集中モードとなり、通知が遮断されます。「25分+5分」を1セットとし、4セットごとに長い休憩を入れると、典型的なポモドーロ法になります。慣れてきたらご自身に合う時間を調整してみてください。
77+
78+
## おわりに
79+
在宅勤務を「疲れない」ものにするコツは、環境と習慣の見直しです。
80+
無理なくできることから始めて、快適なワークスタイルを作っていきましょう。

0 commit comments

Comments
 (0)