This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem wsusサーバーの確認 | |
rem REG QUERY "HKLM¥Software¥Policies¥Microsoft¥Windows¥WindowsUpdate" /v "WUServer" | |
rem wsusサーバーの変更 | |
rem 例えばhttp://wsustok0201.service.softlayer.com tok02となっているところを変えればok | |
rem REG ADD "HKLM¥Software¥Policies¥Microsoft¥Windows¥WindowsUpdate" /v "WUServer" /t REG_SZ /d "http://wsustok0201.service.softlayer.com" /f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem コンピュータ名の変更 | |
powershell -Command Rename-Computer -NewName "win" -Force -restart | |
rem | |
rem 役割の追加 | |
powershell -Command Import-Module Servermanager | |
powershell -Command Install-WindowsFeature AD-Domain-Services,GPMC -IncludeManagementTools | |
rem | |
rem 周辺ツールの追加 | |
powershell -Command Add-WindowsFeature RSAT-ADDS | |
rem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem UserMetadataの確認 | |
powershell -Command Invoke-RestMethod -Uri "https://api.service.softlayer.com/rest/v3/SoftLayer_Resource_Metadata/UserMetadata.txt" -Method GET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem windows update の検出と適用 | |
wuauclt.exe /detectnow | |
PING 127.0.0.1 -n 10 | |
wuauclt.exe /updatenow | |
rem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem サーバーマネージャーをログオン時に起動しない設定 | |
rem REG QUERY "HKEY_LOCAL_MACHINE¥SOFTWARE¥Microsoft¥ServerManager" /v DoNotOpenServerManagerAtLogon | |
REG ADD "HKEY_LOCAL_MACHINE¥SOFTWARE¥Microsoft¥ServerManager" /v DoNotOpenServerManagerAtLogon /t REG_DWORD /d 1 /f | |
rem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem windowsのntpを「10.0.77.54」に設定 | |
sc config w32time start= delayed-auto | |
net start w32time | |
w32tm /config /update /manualpeerlist:10.0.77.54 /syncfromflags:manual | |
rem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem メモ帳のショートカットをデスクトップに作成 | |
powershell -Command "&{$WsShell = New-Object -ComObject WScript.Shell; $Shortcut = $WsShell.CreateShortcut('C:¥Users¥Administrator¥Desktop¥memo.lnk'); $Shortcut.TargetPath = 'C:¥Windows¥System32¥notepad.exe'; $Shortcut.IconLocation = 'C:¥Windows¥System32¥notepad.exe'; $Shortcut.Save()}" | |
rem | |
rem コマンドプロンプトのショートカットをデスクトップに作成 | |
powershell -Command "&{$WsShell = New-Object -ComObject WScript.Shell; $Shortcut = $WsShell.CreateShortcut('C:¥Users¥Administrator¥Desktop¥cmd.lnk'); $Shortcut.TargetPath = 'C:¥Windows¥System32¥cmd.exe'; $Shortcut.IconLocation = 'C:¥Windows¥System32¥cmd.exe'; $Shortcut.Save()}" | |
rem | |
rem コントロールパネルのショートカットをデスクトップに作成 | |
powershell -Command "&{$WsShell = New-Object -ComObject WScript.Shell; $Shortcut = $WsShell.CreateShortcut('C:¥Users¥Administrator¥Desktop¥control.lnk'); $Shortcut.TargetPath = 'C:¥Windows¥System32¥control.exe'; $Shortcut.IconLocation = 'C:¥Windows¥System32¥control.exe'; $Shortcut.Save()}" | |
rem | |
rem リソースモニターのショートカットをデスクトップに作成 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Chromeインストール | |
rem パブリックインターフェースの有効化 | |
netsh interface set interface name="PublicNetwork-A" admin=enabled | |
rem 10秒待機 | |
PING 127.0.0.1 -n 10 | |
rem クロームのオフラインインストーラーのダウンロード | |
powershell -Command Start-BitsTransfer -Source https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B9CBC3BA0-0B21-CE75-59A4-7C679C244042%7D%26lang%3Dja%26browser%3D3%26usagestats%3D1%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/dl/chrome/install/googlechromestandaloneenterprise64.msi -Destination C:¥Users¥Administrator¥Desktop¥ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dnf -y install chrony | |
sed -ri '/^(server|pool) / { x; /./ d; s/^.*$/server time.service.softlayer.com iburst/ }' /etc/chrony.conf | |
systemctl enable --now chronyd | |
timedatectl set-timezone Asia/Tokyo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"first": { | |
"href": "https://directlink.cloud.ibm.com/v1/ports?limit=100" | |
}, | |
"limit": 100, | |
"next": { | |
"href": "https://directlink.cloud.ibm.com/v1/ports?limit=100&start=aeef25be-1c7a-4ec2-a71b-9c20e3e12f40", | |
"start": "aeef25be-1c7a-4ec2-a71b-9c20e3e12f40" | |
}, | |
"total_count": 140, |
NewerOlder