Instantly share code, notes, and snippets.

Embed
What would you like to do?
新しいNano Server Dockerイメージの情報

nanoserver-insider-powershellでいろいろ試した結果を記載する予定。

# ドライブ
PS C:\> Get-PSDrive -PSProvider FileSystem

Name           Used (GB)     Free (GB) Provider      Root
----           ---------     --------- --------      ----
C                   0.12         19.75 FileSystem    C:\
# コマンド
PS C:\> gcm -Type Application | select Name,Definition

Name                  Definition
----                  ----------
ARP.EXE               C:\Windows\system32\ARP.EXE
attrib.exe            C:\Windows\system32\attrib.exe
auditpol.exe          C:\Windows\system32\auditpol.exe
autochk.exe           C:\Windows\system32\autochk.exe
bcdedit.exe           C:\Windows\system32\bcdedit.exe
CertEnrollCtrl.exe    C:\Windows\system32\CertEnrollCtrl.exe
CExecSvc.exe          C:\Windows\system32\CExecSvc.exe
chkdsk.exe            C:\Windows\system32\chkdsk.exe
cmd.exe               C:\Windows\system32\cmd.exe
convertvhd.exe        C:\Windows\system32\convertvhd.exe
csrss.exe             C:\Windows\system32\csrss.exe
cupdate.exe           C:\Windows\system32\cupdate.exe
DeviceCensus.exe      C:\Windows\system32\DeviceCensus.exe
DiskSnapshot.exe      C:\Windows\system32\DiskSnapshot.exe
dllhost.exe           C:\Windows\system32\dllhost.exe
expand.exe            C:\Windows\system32\expand.exe
findstr.exe           C:\Windows\system32\findstr.exe
finger.exe            C:\Windows\system32\finger.exe
fltMC.exe             C:\Windows\system32\fltMC.exe
format.com            C:\Windows\system32\format.com
HOSTNAME.EXE          C:\Windows\system32\HOSTNAME.EXE
icacls.exe            C:\Windows\system32\icacls.exe
ipconfig.exe          C:\Windows\system32\ipconfig.exe
lodctr.exe            C:\Windows\system32\lodctr.exe
lsass.exe             C:\Windows\system32\lsass.exe
more.com              C:\Windows\system32\more.com
mountvol.exe          C:\Windows\system32\mountvol.exe
MRINFO.EXE            C:\Windows\system32\MRINFO.EXE
MuiUnattend.exe       C:\Windows\system32\MuiUnattend.exe
net.exe               C:\Windows\system32\net.exe
net1.exe              C:\Windows\system32\net1.exe
netsh.exe             C:\Windows\system32\netsh.exe
NETSTAT.EXE           C:\Windows\system32\NETSTAT.EXE
NIHOST.exe            C:\Windows\system32\NIHOST.exe
NSRC.exe              C:\Windows\system32\NSRC.exe
ntoskrnl.exe          C:\Windows\system32\ntoskrnl.exe
PATHPING.EXE          C:\Windows\system32\PATHPING.EXE
PING.EXE              C:\Windows\system32\PING.EXE
powershell.exe        C:\Program Files\PowerShell\powershell.exe
rdrleakdiag.exe       C:\Windows\system32\rdrleakdiag.exe
reg.exe               C:\Windows\system32\reg.exe
regsvr32.exe          C:\Windows\system32\regsvr32.exe
ROUTE.EXE             C:\Windows\system32\ROUTE.EXE
runexehelper.exe      C:\Windows\system32\runexehelper.exe
runscripthelper.exe   C:\Windows\system32\runscripthelper.exe
sc.exe                C:\Windows\system32\sc.exe
schtasks.exe          C:\Windows\system32\schtasks.exe
services.exe          C:\Windows\system32\services.exe
setx.exe              C:\Windows\system32\setx.exe
smss.exe              C:\Windows\system32\smss.exe
sort.exe              C:\Windows\system32\sort.exe
svchost.exe           C:\Windows\system32\svchost.exe
taskhostw.exe         C:\Windows\system32\taskhostw.exe
TCPSVCS.EXE           C:\Windows\system32\TCPSVCS.EXE
TRACERT.EXE           C:\Windows\system32\TRACERT.EXE
unlodctr.exe          C:\Windows\system32\unlodctr.exe
userinit.exe          C:\Windows\system32\userinit.exe
WerFault.exe          C:\Windows\system32\WerFault.exe
WerFaultSecure.exe    C:\Windows\system32\WerFaultSecure.exe
wermgr.exe            C:\Windows\system32\wermgr.exe
wevtutil.exe          C:\Windows\system32\wevtutil.exe
wininit.exe           C:\Windows\system32\wininit.exe
wpr.exe               C:\Windows\system32\wpr.exe
WUDFCompanionHost.exe C:\Windows\system32\WUDFCompanionHost.exe
WUDFHost.exe          C:\Windows\system32\WUDFHost.exe
xcopy.exe             C:\Windows\system32\xcopy.exe
# サービス
PS C:\> Get-Service | ft -AutoSize

Status  Name                DisplayName
------  ----                -----------
Running cexecsvc            Container Execution Agent
Running CryptSvc            Cryptographic Services
Running DcomLaunch          DCOM Server Process Launcher
Running Dhcp                DHCP Client
Running DiagTrack           Connected User Experiences and Telemetry
Running Dnscache            DNS Client
Running EventLog            Windows Event Log
Stopped KeyIso              CNG Key Isolation
Stopped LanmanServer        Server
Stopped LanmanWorkstation   Workstation
Stopped lmhosts             TCP/IP NetBIOS Helper
Stopped MpsSvc              Windows Defender Firewall
Stopped Netlogon            Netlogon
Stopped NetSetupSvc         Network Setup Service
Running nsi                 Network Store Interface Service
Stopped Power               Power
Running ProfSvc             User Profile Service
Running RpcEptMapper        RPC Endpoint Mapper
Running RpcSs               Remote Procedure Call (RPC)
Running SamSs               Security Accounts Manager
Running Schedule            Task Scheduler
Stopped seclogon            Secondary Logon
Running SystemEventsBroker  System Events Broker
Running TimeBrokerSvc       Time Broker
Stopped TrustedInstaller    TrustedInstaller
Running UserManager         User Manager
Stopped VaultSvc            Credential Manager
Stopped WerSvc              Windows Error Reporting Service
Stopped WinHttpAutoProxySvc WinHTTP Web Proxy Auto-Discovery Service
Stopped wisvc               Windows Insider Service
# ユーザーとグループ
# グループはエラーで見れなかった...
PS C:\> net localgroup
The Workstation service has not been started.

More help is available by typing NET HELPMSG 2138.

PS C:\> net user

User accounts for \\

-------------------------------------------------------------------------------
Administrator            DefaultAccount           Guest
WDAGUtilityAccount
The command completed with one or more errors.
# netshコマンド - サブコンテキストは少ない
PS C:\> netsh help

The following commands are available:

Commands in this context:
?              - Displays a list of commands.
add            - Adds a configuration entry to a list of entries.
delete         - Deletes a configuration entry from a list of entries.
dnsclient      - Changes to the `netsh dnsclient' context.
dump           - Displays a configuration script.
exec           - Runs a script file.
help           - Displays a list of commands.
interface      - Changes to the `netsh interface' context.
namespace      - Changes to the `netsh namespace' context.
netio          - Changes to the `netsh netio' context.
set            - Updates configuration settings.
show           - Displays information.

The following sub-contexts are available:
 dnsclient interface namespace netio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment