OS

cmd 系統腳本大全

修改電腦名稱

wmic.exe ComputerSystem Where Name=”%ComputerName%” Rename Name=”NewComputerName”

%ComputerName%改成舊的名稱

例如

set /p PCNAME=請輸入電腦編號 :
wmic.exe ComputerSystem Where Name="%ComputerName%" Rename Name=PC%PCNAME%

改dns

netsh interface ip set dns “區域連線" static 8.8.8.8
netsh interface ip add dns “區域連線" 168.95.1.1

 

簡易基本指令(點”執行”直接輸入就好)
gpedit.msc—–群組原則
sndrec32——-錄音機
nslookup——-IP位址偵測器
explorer——-開啟檔案總管
logoff———登出指令
tsshutdn——-60秒倒計時關機指令
lusrmgr.msc—-本地機用戶和組
services.msc—本機服務設定
oobe/msoobe /a—-檢查XP是否啟動
notepad——–開啟記事本
cleanmgr——-磁碟垃圾整理
net start messenger—-開始信使服務
compmgmt.msc—電腦管理
net stop messenger—–停止信使服務
vconf———–啟動 netmeeting
dvdplay——–DVD播放器
charmap——–啟動字元對應表
Kdiskmgmt.msc—磁牒管理實用程序
calc———–啟動電子計算器
dfrg.msc——-磁碟重組工具
chkdsk.exe—–Chkdsk磁牒檢查
devmgmt.msc— 裝置管理員
bFdrwtsn32—— 系統醫生
srononce -p —-15秒關機
dxdiag———檢查DirectX資訊
regedt32——-註冊表編輯器
YMsconfig.exe—系統配置實用程序
rsop.msc——-群組原則結果集
mem.exe——–顯示記憶體使用情況
regedit.exe—-註冊表
winchat——–XP自帶區域網路聊天
progman——–程序管理器
winmsd———系統資訊
perfmon.msc—-電腦效能監測程序
winver———檢查Windows版本
sfc /scannow—–掃瞄錯誤並復原
taskmgr—–工作管理器(2000/xp/2003)
eventvwr.msc————事件檢視器
secpol.msc—————-本機安全性設定
rsop.msc——————原則的結果集
ntbackup—————-啟動製作備份還原嚮導
mstsc———–遠端桌面
winver———檢查Windows版本
wmimgmt.msc—-開啟windows管理體系結構(WMI)
wupdmgr——–windows更新程序
wscript——–windows指令碼宿主設定
write———-寫字板
winmsd———系統資訊
wiaacmgr——-掃瞄儀和照相機嚮導
winchat——–XP原有的區域網路聊天
mem.exe——–顯示記憶體使用情況
sconfig.exe—系統配置實用程序
mplayer2——-簡易widnows media player
mspaint——–畫圖板
mstsc———-遠端桌面連接
mplayer2——-媒體播放機
magnify——–放大鏡實用程序
mmc————開啟控制台
mobsync——–同步指令
dxdiag———檢查DirectX資訊
drwtsn32—— 系統醫生
devmgmt.msc— 裝置管理員
dfrg.msc——-磁碟重組程式
diskmgmt.msc—磁牒管理實用程序
dcomcnfg——-開啟系統元件服務
ddeshare——-開啟DDE共享設定
dvdplay——–DVD播放器
net stop messenger—–停止信使服務
net start messenger—-開始信使服務
notepad——–開啟記事本
nslookup——-網路管理的工具嚮導
ntbackup——-系統製作備份和還原
narrator——-螢幕「講述人」
ntmsmgr.msc—-移動存儲管理器
ntmsoprq.msc—移動存儲管理員操作請求
netstat -an—-(TC)指令檢查連接
Usyncapp——–新增一個公文包
sysedit——–系統配置編輯器
sigverif——-文件簽名驗證程序
psndrec32——-錄音機
shrpubw——–新增共用資料夾
secpol.msc—–本機安全原則
syskey———系統加密,一旦加密就不能解開,保護windows xp系統的雙重密碼
services.msc—本機服務設定
Sndvol32——-音量控制程序
sfc.exe——–系統檔案檢查器
sfc /scannow—windows文件保護
tsshutdn——-60秒倒計時關機指令
tourstart——xp簡介(安裝完成後出現的漫遊xp程序)
taskmgr——–工作管理器
eventvwr——-事件檢視器
eudcedit——-造字程序
explorer——-開啟檔案總管
lpackager——-對像包裝程序
perfmon.msc—-電腦效能監測程序l
progman——–程序管理器
regedit.exe—-註冊表
rsop.msc——-群組原則結果集
rononce -p —-15秒關機
regsvr32 /u *.dll—-停止dll文件執行
regsvr32 /u zipfldr.dll——取消ZIP支持
cmd.exe——–CMD命令提示字元
chkdsk.exe—–Chkdsk磁牒檢查
certmgr.msc—-證書管理實用程序
calc———–啟動計算器
charmap——–啟動字元對應表
cliconfg——-SQL SERVER 客戶端網路實用程序
Clipbrd——–剪貼板檢視器
conf———–啟動netmeeting
compmgmt.msc—電腦管理
ciadv.msc——索引服務程序
osk————開啟螢幕小鍵盤
odbcad32——-ODBC資料來源管理器
oobe/msoobe /a—-檢查XP是否啟動
lusrmgr.msc—-本地機用戶和組
iexpress——-木馬元件服務工具,系統原有的
fsmgmt.msc—–共用資料夾管理器
utilman——–協助工具管理器

 

 

我的電腦
explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

網路芳鄰
explorer.exe ::{208D2C60-3AEA-1069-A2D7-08002B30309D}

資源回收桶
explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}

 

Disable UAC須重開

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Enable UAC須重開

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

http://www.symantec.com/connect/articles/list-run-commands-windows-7-and-8

可以翻譯的

Funzioni Comandi
Open Documents Folder documents
Open Videos folder videos
Open Downloads Folder downloads
Open Favorites Folder favorites
Open Recent Folder recent
Open Recent Folder logoff
Open Pictures Folder pictures
Windows Sideshow control.exe /name Microsoft.WindowsSideshow
Windows CardSpace control.exe /name Microsoft.cardspace
Windows Anytime Upgrade WindowsAnytimeUpgradeui
Taskbar and Start Menu control.exe /name Microsoft.TaskbarandStartMenu
Troubleshooting control.exe /name Microsoft.Troubleshooting
User Accounts control.exe /name Microsoft.UserAccounts
Adding a new Device devicepairingwizard
Add Hardware Wizard hdwwiz
Advanced User Accounts netplwiz
Advanced User Accounts azman.msc
Backup and Restore sdclt
Bluetooth File Transfer fsquirt
Calculator calc
Certificates certmgr.msc
Change Computer Performance Settings systempropertiesperformance
Change Data Execution Prevention Settings systempropertiesdataexecutionprevention
Change Data Execution Prevention Settings printui
Character Map charmap
ClearType Tuner cttune
Color Management colorcpl
Command Prompt cmd
Component Services comexp.msc
Component Services dcomcnfg
Computer Management compmgmt.msc
Computer Management compmgmtlauncher
Connessione proiettore di rete netproj
Connect to a Projector displayswitch
Control Panel control
Create A Shared Folder Wizard shrpubw
Create a System Repair Disc recdisc
Credential Backup and Restore Wizard credwiz
Data Execution Prevention systempropertiesdataexecutionprevention
Date and Time timedate.cpl
Default Location locationnotifications
Device Manager devmgmt.msc
Device Manager hdwwiz.cpl
Device Pairing Wizard devicepairingwizard
Diagnostics Troubleshooting Wizard msdt
Digitizer Calibration Tool tabcal
DirectX Diagnostic Tool dxdiag
Disk Cleanup cleanmgr
Disk Defragmenter dfrgui
Disk Management diskmgmt.msc
Display dpiscaling
Display Color Calibration dccw
Display Switch displayswitch
DPAPI Key Migration Wizard dpapimig
Driver Verifier Manager verifier
Ease of Access Center utilman
EFS Wizard rekeywiz
Event Viewer eventvwr.msc
Fax Cover Page Editor fxscover
File Signature Verification sigverif
Font Viewer fontview
Game Controllers joy.cpl
Getting Started gettingstarted
IExpress Wizard iexpress
Getting Started irprops.cpl
Install or Uninstall Display Languages lusrmgr
Internet Explorer iexplore
Internet Options inetcpl.cpl
iSCSI Initiator Configuration Tool iscsicpl
Language Pack Installer lpksetup
Local Group Policy Editor gpedit.msc
Local Security Policy secpol.msc
Local Users and Groups lusrmgr.msc
Location Activity locationnotifications
Magnifier magnify
Malicious Software Removal Tool mrt
Manage Your File Encryption Certificates rekeywiz
Math Input Panel mip
Microsoft Management Console mmc
Microsoft Support Diagnostic Tool msdt
Mouse main.cpl
NAP Client Configuration napclcfg.msc
Narrator narrator
Network Connections ncpa.cpl
New Scan Wizard wiaacmgr
Notepad notepad
ODBC Data Source Administrator odbcad32
ODBC Driver Configuration odbcconf
On-Screen Keyboard osk
Paint mspaint
Pen and Touch tabletpc.cpl
People Near Me collab.cpl
Performance Monitor perfmon.msc
Performance Options systempropertiesperformance
Phone and Modem telephon.cpl
Phone Dialer dialer
Power Options powercfg.cpl
Presentation Settings presentationsettings
Print Management printmanagement.msc
Printer Migration printbrmui
Printer User Interface printui
Private Character Editor eudcedit
Problem Steps Recorder psr
Programs and Features appwiz.cpl
Protected Content Migration dpapimig
Region and Language intl.cpl
Registry Editor regedit
Registry Editor 32 regedt32
Remote Access Phonebook rasphone
Remote Desktop Connection mstsc
Resource Monitor resmon
Resultant Set of Policy rsop.msc
SAM Lock Tool syskey
Screen Resolution desk.cpl
Securing the Windows Account Database syskey
Services services.msc
Set Program Access and Computer Defaults computerdefaults
Share Creation Wizard shrpubw
Shared Folders fsmgmt.msc
Snipping Tool snippingtool
Sound mmsys.cpl
Sound recorder soundrecorder
SQL Server Client Network Utility cliconfg
Sticky Notes stikynot
Stored User Names and Passwords credwiz
Sync Center mobsync
System Configuration msconfig
System Configuration Editor sysedit
System Information msinfo32
System Properties sysdm.cpl
System Properties (Advanced Tab) systempropertiesadvanced
System Properties (Computer Name Tab) systempropertiescomputername
System Properties (Hardware Tab) systempropertieshardware
System Properties (Remote Tab) systempropertiesremote
System Properties (System Protection Tab) systempropertiesprotection
System Restore rstrui
Task Manager taskmgr
Task Scheduler taskschd.msc
Trusted Platform Module (TPM) Management tpm.msc
User Account Control Settings useraccountcontrolsettings
Utility Manager utilman
Version Reporter Applet winver
Volume Mixer sndvol
Windows Action Center wscui.cpl
Windows Activation Client slui
Windows Anytime Upgrade Results windowsanytimeupgraderesults
Windows CardSpace infocardcpl.cpl
Windows Disc Image Burning Tool isoburn
Windows DVD Maker dvdmaker
Windows Easy Transfer migwiz
Windows Explorer explorer
Windows Fax and Scan wfs
Windows Features optionalfeatures
Windows Firewall firewall.cpl
Windows Firewall with Advanced Security wf.msc
Windows Journal journal
Windows Media Player wmplayer
Windows Memory Diagnostic Scheduler mdsched
Windows Mobility Center mblctr
Windows Picture Acquisition Wizard wiaacmgr
Windows PowerShell powershell
Windows PowerShell ISE powershell_ise
Windows Remote Assistance msra
Windows Repair Disc recdisc
Windows Script Host wscript
Windows Update wuapp
Windows Update Standalone Installer wusa
Versione Windows winver
WMI Management wmimgmt.msc
WordPad write
XPS Viewer xpsrchvw
WordPad write
修改電腦名稱 C:\Windows\System32\SystemPropertiesComputerName.exe

快速获取需要安装的补丁文件
运行 wuauclt.exe /detectnow
或 wuauclt.exe /resetauthorization /detectnow
可以结合 gpresult 和 gpupdate 命令使用。

3. wuauclt 命令还支持哪些参数?
WSUS 2.0 支持的参数:
/detectnow
/resetauthorization /detectnow
/RunHandlerComServer
/RunStoreAsComServer
/ShowSettingsDialog
/ResetEulas
/DemoUI
/FastCountdown
/FakeData
/FakeReboot
/SkipEulasWSUS

3.0 支持的参数:
/DetectNow     – Causes the client to communicate to the server, report to come in after
/ReportNow     – Causes the client to report status to the server
/RunHandlerComServer     – ?
/RunStoreAsComServer    – ?
/ShowSettingsDialog    – shows setting dialog for time and auto-installation
/ResetAuthorization   – resets keys for reporting with the server
/ResetEulas   – ?
/ShowWU   – shows windows update page
/ShowWindowsUpdate     – shows windows update page
/CloseWindowsUpdate   – closes windows update page?
/SelfUpdateManaged     – ?
/SelfUpdateUnmanaged     – ?
/UpdateNow     – ?
/DemoUI – shows balloon in corner and offers settings dialog when clicked.

 

透過系統管理員開啟控制台

runas /user:administrator control
One comment

netsh interface ip set dns “區域連線” static 8.8.8.8
netsh interface ip add dns “區域連線” 168.95.1.1
C:\Windows\explorer.exe c:\NUTC_MCCS6
cd C:\Users\User\Desktop
del 1.bat

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

(若看不到驗證碼,請重新整理網頁。)