Showing posts with label Windows command. Show all posts
Showing posts with label Windows command. Show all posts

Tuesday, October 3, 2017

Using Windows 10 command to check Wi-Fi channel and signal

Run the following command in the command prompt:


netsh wlan show networks mode=bssid |^
findstr /I /R "^ssid | channel | signal"
 
If you are using Windows 10 in Chinese language or the command prompt using Chinese language, please use the following command:

 
netsh wlan show networks mode=bssid |^
findstr /I /R "^ssid | 通道 | 訊號"


image


Reference:

http://www.walkernews.net/2016/02/22/using-windows-10-built-in-program-to-check-wi-fi-channel-and-signal/

Print Friendly and PDF
Share/Bookmark

Friday, February 19, 2010

Copy all Filenames in a Directory to a Text File

C:\Program Files>dir /a /b /-p /o:gen /s >filelisting.txt

C:\Program Files>dir /a /-p /o:gen /s >list.txt

Print Friendly and PDF
Share/Bookmark

Monday, December 28, 2009

Opening Explorer shell with admin privileges on XP

Open a network share with different credential


runas /u:domain\username "explorer \\server\share, /separate"



 


running the application in user profile by different credential


runas.exe /noprofile /user:administrator cmd

Print Friendly and PDF
Share/Bookmark

Open My Computer using keyboard with quick run command

Quick Run command to Open My Computer



1. Press Win + R keys to open Run box (or Click Start > Run).
2. Type "…"  and press Enter key.
Print Friendly and PDF
Share/Bookmark

Monday, November 16, 2009

Command prompts for Windows (From: http://en.kioskea.net/faq/sujet-403-command-prompts-for-windows)

Some of these command below can cause harmful an undesirable functions, leading to the formatting of your hard disk and data loss, while others will not run under Windows XP. As for Windows Vista the Run Tab is not visible in the start up menu. Windows Vista specific command prompts are not included.


 Here is a list of commands you can use under Microsoft Windows prearranged depending of their functionality :


 





  1. Control Panel


  2. Windows utility and applications


  3. Disk management


  4. Connection management


  5. Miscellaneous commands


Control Panel


CONTROL: opens the control panel window


CONTROL ADMINTOOLS: opens the administrative tools


CONTROL KEYBOARD: opens keyboard properties


CONTROL COLOUR: opens display properties.Appearance tab


CONTROL FOLDERS: opens folder options


CONTROL FONTS: opens font policy management


CONTROL INTERNATIONAL or INTL.CPL: opens Regional and Language option


CONTROL MOUSE or MAIN.CPL: opens mouse properties


CONTROL USERPASSWORDS: opens User Accounts editor


CONTROL USERPASSWORDS2 or NETPLWIZ: User account access restrictions


CONTROL PRINTERS: opens faxes and printers available


APPWIZ.CPL: opens Add or Remove programs utility tool


OPTIONALFEATURES: opens Add or Remove Windows component utility


DESK.CPL: opens display properties. Themes tab


HDWWIZ.CPL: opens add hardware wizard


IRPROPS.CPL: infrared utility tool


JOY.CP: opens game controllers settings


MMSYS.CPL: opens Sound and Audio device Properties. Volume tab


SYSDM.CPL: opens System properties


TELEPHON.CPL: Opens phone and Modem options


TIMEDATE.CPL: Date and Time properties


WSCUI.CPL: opens Windows Security Center


ACCESS.CPL: opens Accessibility Options


WUAUCPL.CPL: opens Automatic Updates


POWERCFG.CPL: opens Power Options Properties


AZMAN.MSC: opens authorisation management utility tool


CERTMGR.MSC: opens certificate management tool


COMPMGMT.MSC: opens the Computer management tool


COMEXP.MSC or DCOMCNFG: opens the Computer Services management tool


DEVMGMT.MSC: opens Device Manager


EVENTVWR or EVENTVWR.MSC: opens Event Viewer


FSMGMT.MSC: opens Shared Folders


NAPCLCFG.MSC: NAP Client configuration utility tool


SERVICES.MSC: opens Service manager


TASKSCHD.MSC or CONTROL SCHEDTASKS: opens Schedule Tasks manager


GPEDIT.MSC: opens Group Policy utility tool


LUSRMGR.MSC: opens Local Users and Groups


SECPOL.MSC: opens local security settings


CIADV.MSC: opens indexing service


NTMSMGR.MSC: removable storage manager


NTMSOPRQ.MSC: removable storage operator requests


WMIMGMT.MSC: opens (WMI) Window Management Instrumentation


PERFMON or PERFMON.MSC: opens the Performance monitor


MMC: opens empty Console


MDSCHED: opens memory diagnostics tools


DXDIAG: opens DirectX diagnostics tools


ODBCAD32: opens ODBC Data source Administrator


REGEDIT or REGEDT32: opens Registry Editor


DRWTSN32: opens Dr. Watson


VERIFIER: opens Driver Verifier Manager


CLICONFG: opens SQL Server Client Network Utility


UTILMAN: opens Utility Manager


COLORCPL: opens color management


CREDWIZ: back up and recovery tool for user passwords


MOBSYNC: opens Synchronization center


MSCONFIG: opens System Configuration Utility


SYSEDIT: opens System Configuration Editor (careful while using this command)


SYSKEY: Windows Account Database Security management (careful while using this command)


 


Windows utility and applications


EPLORER: Opens windows Explorer


IEXPLORER: Opens Internet explorer


WAB: opens Contacts


CHARMAP: opens Character Map


WRITE: opens WordPad


NOTEPAD: opens Notepad


CALC: opens Calculator


CLIPBRD: opens Clipbook Viewer


WINCHAT: opens Microsoft Chat Interface


SOUNDRECORDER: opens sound recording tool


DVDPLAY: run CD or DVD


WMPLAYER: opens Windows Media Player


MOVIEMK: Opens untitled Windows Movie Maker


OSK: opens on-screen Keyboard


MAGNIFY: opens Magnifier


WINCAL: opens Calendar


DIALER: opens phone Dialer


EUDCEDIT: opens Private Character Editor


NDVOL: opens the mixer volume


RSTRUI : opens Tool System Restore (For Vista only)


%WINDIR%\SYSTEM32\RESTORE\rstrui.exe: opens Tool System Restore (for XP only).


MSINFO32: Opens the System Information


MRT : launches the utility removal of malware.


Taskmgr : Opens the Windows Task Manager


CMD: opens a command prompt


MIGWIZ: Opens the tool for transferring files and settings from Windows (Vista only)


Migwiz.exe: Opens the tool for transferring files and settings from Windows (for XP only)


SIDEBAR: Open the Windows (Vista only)


Sigverif : Opens the tool for verification of signatures of files


Winver : Opens the window for your Windows version


FSQUIRT: Bluetooth Transfer Wizard


IExpress opens the wizard for creating self-extracting archives. Tutorial HERE


MBLCTR: opens the mobility center (Windows Vista only)


MSRA : Opens the Windows Remote Assistance


Mstsc : opens the tool connection Remote Desktop


MSDT: opens the diagnostic tools and support Microsoft


WERCON: opens the reporting tool and solutions to problems (for Vista only)


WINDOWSANYTIMEUPGRADE: Enables the upgrade of Windows Vista


WINWORD : opens Word (if installed)


PRINTBRMUI : Opens migration wizard printer (Vista only)


 


Disk management


DISKMGMT.MSC: opens disk management utility


CLEANMGR: opens disk drive clean up utility


DFRG.MSC: opens disk defragmenter


CHKDSK: complete analysis of disk partition


DISKPART: disk partitioning tool


 


Connection management


IPCONFIG: list the configuration of IP addresses on your PC (for more information type IPCONFIG/? in the CMD menu)


INETCPL.CPL: opens internet properties


FIREWALL.CPL: opens windows firewall


NETSETUP.CPL: opens network setup wizard


 


Miscellaneous commands


JAVAWS: View the cover of JAVA software (if installed)


AC3FILTER.CPL: Opens the properties AC3 Filter (if installed)


FIREFOX: Mozilla launches Firefox (if installed)


NETPROJ: allow or not connecting to a network projector (For Vista only)


LOGOFF: closes the current session


SHUTDOWN: shut down Windows


SHUTDOWN-A: to interrupt Windows shutdown


%WINDIR% or %SYSTEMROOT%: opens the Windows installation


%PROGRAMFILES%: Opens the folder where you installed other programs (Program Files)


%USERPROFILE%: opens the profile of the user currently logged


%HOMEDRIVE%: opens the browser on the partition or the operating system is installed


%HOMEPATH%: opens the currently logged user C: \ Documents and Settings \ [username]


%TEMP%: opens the temporary folder


VSP1CLN: deletes the cache for installation of the service pack 1 for Vista


System File Checker (Requires Windows CD if the cache is not available):


SFC / scannow: immediately scans all system files and repairs damaged files


SFC / VERIFYONLY: scans only those files system


SFC / Scanfil = "name and file path": scans the specified file, and repaired if damaged


SFC / VERIFYFILE = "name and file path": Scans only the file specified


SFC / scanonce: scans the system files on the next restart


SFC / REVERT: return the initial configuration (For more information, type SFC /? In the command prompt CMD.


 


http://en.kioskea.net/faq/sujet-403-command-prompts-for-windows

Print Friendly and PDF
Share/Bookmark

Wednesday, November 11, 2009

(轉貼) Terminal Services Command Line Administration

Terminal Services Command Line Administration


Managing your Windows 2003 Terminal Server can be done faster and easier with a few simple command line tools. There are a lot of them so hang on!


Change User - When installing applications on a terminal server you must be in Install Mode. To toggle the system between Install and Execute Modes, you can use the Change User commands.


To switch to Install Mode: CHANGE USER /install


To switch to Execute Mode: CHANGE USER /execute


Change Logon - To quickly disable or enable the ability to logon to the terminal server you can use the Change Logon command. This will not affect currently logged on users.


To enable new logons: CHANGE LOGON /enable


To disable new logons: CHANGE LOGON /disable


Query TermServer - Lists all terminal servers in the current domain.


QUERY TERMSERVER [/domain:domain] [/address][/continue]




  • /domain:domain - specifies the domain (current logged on domain is default)

  • /address - lists the IP address of the terminal server

  • /continue - removes the pause between ouput screens


Query Session - Lists all current sessions running on a terminal server.


QUERY SESSION [sessionname | username | sessionid][/server:servername] [/mode] [/flow] [/connect] [/counter]




  • sessionname is the name of the session that you want to query

  • username is the name of the user you want to query

  • sessionid is the ID of the session you want to query

  • /server:servername is the name of the server you are querying

  • /mode outputs the current line settings

  • /flow outputs the current flow control settings /connect outputs the current connection settings

  • /counter outputs the counter information for the server


Query User or Quser - Lists all current users on a terminal server


QUERY USER [username | sessionname | sessionid] [/server:servername]




  • sessionname is the name of a specific session that you want to query

  • username is the name of the specific user you want to query

  • sessionid is the ID of the specific session you want to query

  • /server:servername is the name of the server you are querying


Query Process - Lists all processes running on the terminal server.


QUERY PROCESS [ x | processid | username | sessionname | /id:nn | programname] [/server:servername] [/system]




  • x lists information on all processes (note - replace x with an asterisk)

  • processid lists information about only the specific process ID

  • username lists processes running under the context of a specific user

  • sessionname lists processes running under the context of a specific session

  • /ID:nn lists processes running in the session with the specified session ID number

  • programname lists all processes started by the specified executable

  • /server:servername is the name of the server you are querying—the default is the server you are logged on to

  • /system lists processes running under the system context


TSShutdn - Will shutdown/reboot the terminal server after a specified delay.


TSSHUTDN [wait_time] [/server:servername] [/reboot] [/powerdown] [/delay:logoffdelay] [/v]




  • wait_time is the number of seconds to wait after notifying the users that the terminal server is about to shut down before forcibly logging them off (the default is 30 seconds)

  • /server:servername is the name of the server to reboot/shutdown (the default is the server to which you are connected)

  • /reboot reboots the server

  • /powerdown powers down the server after Windows has shutdown; the servers BIOS must support this command

  • /delay:logoffdelay the number of seconds to wait after logging out all users before shutting down the system (the default is 30 seconds)

  • /v displays verbose information about actions being performed


Logoff - Will logoff the specified user off the terminal server and close the session. Caution, if you don't specify a user it will log you off!


LOGOFF [sessionid | sessionname] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


Reset Session - Will kill the specified users session without warning which can be useful when a users session is stuck. Caution, if you don't specify a user it will kill your session!


RESET SESSION [sessionname | sessionid] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


MSG - Will popup a message on the specified user(s) terminal server session.


MSG [username | sessionname | sessionid | @filename | x ][/server:servername] [/time:seconds] [/v] [/w] message




  • username is the name of the user to whom you are sending the message

  • sessionname is the session name to which you want to send the message

  • sessionid is the ID number of the session to which you want to send the message

  • @filename is the name of a text file containing usernames, sessionnames, or session IDs to which you want to send the message

  • x sends the message to all users on the current or specified server (note - replace x with an asterisk)

  • /server:servername specifies the server where recipients of the message are connected

  • /time:seconds the number of seconds to display the message before the popup closes itself

  • /v displays information about the message as it is sent

  • /w causes the popup window to wait for the user to click OK before closing message is the text of the message to send


Shadow - Will allow you to shadow or take control of a users session.


SHADOW [sessionname | sessionid] [/server:servername] [/v]




  • sessionid is the ID of the session you want to logoff

  • sessionname is the name of the session you want to logoff

  • /server:servername specifies the name of server on which the session you want to logoff is running

  • /v displays verbose information about actions being performed


TSProf - Will update, copy or display the Terminal Server users profile path and/or data.


TSPROF /update [/domian:domainname | /local] /profile:path username TSPROF /copy [/domian:domainname | /local] [/profile:path] src_user dest_user TSPROF /q [/domian:domainname | /local] username




  • /update populates the user domainname\username’s Terminal Services profile path

  • /copy copies the Terminal Services profile from the source (src_user) to a different user (dest_user)

  • /q displays the Terminal Services Profile path for the specified user



原文網址:


http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/06/24/Terminal-Services-Command-Line-Administration.aspx

Print Friendly and PDF
Share/Bookmark

command open IE

Run - > start "" /b "C:\Program Files\Internet Explorer\iexplore.exe" %* Print Friendly and PDF
Share/Bookmark

Sunday, October 11, 2009

Eventcreate - Enables an administrator to create a custom event in a specified event log.


Eventcreate





Enables an administrator to create a custom event in a specified event log.

Syntax


eventcreate [/s Computer [/u Domain\User [/p Password]] {[/l {APPLICATION|SYSTEM}]|[/so SrcName]} /t {ERROR|WARNING|INFORMATION|SUCCESSAUDIT|FAILUREAUDIT} /id EventID /d Description

Parameters


/s Computer : Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.

/u Domain \ User : Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.

/p Password : Specifies the password of the user account that is specified in the /u parameter.

/l { APPLICATION | SYSTEM } : Specifies the name of the event log where the event will be created. The valid log names are APPLICATION and SYSTEM.

/so SrcName : Specifies the source to use for the event. A valid source can be any string and should represent the application or component that is generating the event.

/t { ERROR | WARNING | INFORMATION | SUCCESSAUDIT | FAILUREAUDIT } : Specifies the type of event to create. The valid types are ERROR, WARNING, INFORMATION, SUCCESSAUDIT, and FAILUREAUDIT.

/id EventID : Specifies the event ID for the event. A valid ID is any number from 1 to 65535.

/d Description : Specifies the description to use for the newly created event.

/? : Displays help at the command prompt.

Remarks



  • Custom events cannot be written to the security log.


Examples


The following examples show how you can use the eventcreate command:

eventcreate /t error /id 100 /l application /d "Create event in application log"
eventcreate /t information /id 1000 /so winmgmt /d "Create event in WinMgmt source"
eventcreate /t error /id 2001 /so winword /l application /d "new src Winword in application log"
eventcreate /s server /t error /id 100 /l application /d "Remote machine without user credentials"
eventcreate /s server /u user /p password /id 100 /t error /l application /d "Remote machine with user credentials"
eventcreate /s server1 /s server2 /u user /p password /id 100 /t error /so winmgmt /d "Creating events on Multiple remote machines"
eventcreate /s server /u user /id 100 /t warning /so winmgmt /d "Remote machine with partial user credentials"


Formatting legend
































FormatMeaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...)Parameter that can be repeated several times in a command line
Between brackets ([])Optional items
Between braces ({}); choices separated by pipe (|). Example: {even|odd}Set of choices from which the user must choose only one
Courier fontCode or program output







Print Friendly and PDF
Share/Bookmark