qshinoの日記

Powershell関係と徒然なこと

Servercore commands, hostname etc.

Commands

hostname

Rename-Computer -ComputerName NAME

ライセンス認証

slmgr.vbs -ipk PRODUCTKEY
slmgr.vbs -ato

proxy

netsh winhttp set proxy=PROXY bypass-list="LIST"

network

get-netipconfiguration

get-netipaddress

get-netipinterface

new-netipaddress -interfaceindex INDEX -ipaddress IP -prefixlength LENGTH -DefaultGateway GW

set-dnsclientserveraddress -interfaceindex INDEX -ServerAddresses SV,SV,SV

user/grouo追加

net user USER /add

net localgroup GROUP /add

net localgroup administrators /delete USER

net localgroup administrators /add USER