PowerShell

環境
Windows 10 Home 64bit
PowerShell

操作方法
PowerShellは、「管理者として実行」で起動します。

1.サービスを開始する
Start- ...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

操作方法
get-history
powershellで実行したコマンドのhistory(履 ...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

操作方法
複数のコマンドを一行で実行するには、「;」でコマンドを連結させて実行します。

...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

書式
New-Item ファイル名 -type file -Force
空のファイルを作成す ...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

書式
Get-NetAdapter
NICを一覧表示するには、上記のコマンドを実行します。 ...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

操作方法
1.Get-HostコマンドでPowerShellのバージョンを確認します
Get ...

PowerShell

環境
PowerShell 5.1.22621.963
Windows 10 Pro 64bit

書式
New-Item ファイル名 -type file
空のファイルを作成するには、「Ne ...

PowerShell

環境
Windows 11 Pro 64bit
powershell

書式
Stop-Process -Name プロセス名

操作例
1.Windowsキー + Rキーを同時に押 ...

PowerShell

環境
Windows 11 Pro 64bit
powershell

書式
Stop-Process -Id pid

操作例
1.Windowsキー + Rキーを同時に押します ...

PowerShell

環境
Windows 11 Pro 64bit
powershell

操作方法
現在いるフォルダを開くには、以下のコマンドを実行します。
> ii .
> start . ...

PowerShell

環境
Winodws 10 Home 64bit
Windows PowerShell 管理者権限

エラー現象

PS C:\WINDOWS\system32> Set-ExecutionPoli ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

書式
Get-CimInstance -ClassName Win32_Processor ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

操作方法
1.CPUの名前を確認します
以下のコマンドを実行します。
Ge ...

PowerShell

環境
Windows 10 Home 64bit
PowerShell 5.1.19041.2673

操作方法
1.管理者権限でPowerShellを起動します。

2.次のコマンドを入力 ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

操作方法
1.「スタート」を右クリックし「Windows ターミナル(管理者)をクリックし ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

操作方法
1.「スタート」を右クリックし「Windows ターミナル(管理者)をクリックし ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

操作方法
1.「スタート」を右クリックし「Windows ターミナル(管理者)をクリックし ...

PowerShell

環境
Windows10 Pro 20H2 64bit
PowerShell 5.1.19041.2673

操作方法
1.「スタート」を右クリックし「Windows ターミナル(管理者)をクリックし ...