sudo su
apt-get update && apt-get upgrade
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 | 通道 | 訊號"
Reference:
Using Windows 10 command to check Wi-Fi channel and signal
net use * \\servernam or IP address\sharefoldername password /user:domain\username /persistent:yes
e.g. net use * \\fileserver\sharefolder abcd /user:xxx\alan /persistent:yes
Map network drive with different user by using command
1. msg.exe
2. sent Utility (http://www.winsentmessenger.com/sent/)
NET SEND alternatives in windows 7/Vista
SDelete v1.51
http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx
Delete Files Permanently with SDelete
How to login in UNC path to install a software
Runas the administrator and run the following command:
Net use "\\abc\xxx.exe"
How to login in UNC path to install a software
First open the Run box by pressing Win+R keys.
1. Now to open your System Drive, simply type ‘\‘ and hit OK.
2. To open the Username’s folder, type ‘.‘ and hit OK.
3. To open the Users folder, type ‘..‘ and hit OK.
3 geeky command for Windows XP/Vista/Win7
Delete files and folder more than 30 day
forfiles /p "c:\temp\abc" /s /c "cmd /c rmdir /s/q @path" /d -30
forfiles /p "c:\temp\ghj" /s /c "cmd /c if @isdir==FALSE echo del @file & del @file" /d -30
forfiles /p "c:\temp\xyz" /s /c "cmd /c rmdir /s/q @path" /d -30 /m xyz_*
Delete files and folder more than 30 day
For IE 6
runas /user:domain or local\Administrator "explorer.exe"
For IE 7/8
runas /user:domain or local\Administrator "explorer.exe /separate"
Run Windows Explorer as Another User
To delete the share (Not file only the sharing to become unshared):
net share backup$ /Delete
To delete the data of the backup folder
rmdir X:\backup /s/q
Delete file sharing and file by command
“FOR” at console(command prompt) and in batch used differently
This error is being caused by the FOR command. Your command is correct when typed at the console, but when using this command in a batch file you need to precede your % variables with a double %.
To Create folder and grant permission to user to access this folder and his/her own folder:
Batch to create folder name from a name list:
@echo off
for /f %%i in (C:\temp\file.txt) do mkdir %%i
(Remark: if running in console/command prompt it should be “for /F %i in (C:\temp\file.txt) do mkdir %i”)
FOR at console(command prompt) and in batch used differently
We can create a Schedule job to run the following command hourly:
“C:\Program Files\Microsoft Security Essentials\MpCmdRun.exe –SignatureUpdate”
Microsoft Security Essentials signature update hourly
Use command
"C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e
Open multiple instances of excel 2007
XP: kill a Windows process from the command line with taskkill
wmic qfe list full /format:htable >C:\WindowsPatches.htm
Wait for few seconds, and then open the 'C:\WindowsPatches.htm' file which contains the list of patches installed on your computer.
To list the IDs of all the patches/hotfix installed:
wmic qfe get Hotfixid
If you want to search for a particular hotfix is installed on the local machine:
wmic qfe | find "977346"
How to identify the installed Windows Patches from Command Prompt using WMIC? (refer:http://www.workstationtalk.com/content/how-identify-installed-windows-patches-command-prompt-using-wmic)
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
Opening Explorer shell with admin privileges on XP
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.
Open My Computer using keyboard with quick run command
Using Netsh with Windows Firewall