Showing posts with label Command. Show all posts
Showing posts with label Command. Show all posts

Friday, August 16, 2024

Deepin Package Update in Terminal

sudo su

apt-get update && apt-get upgrade

Print Friendly and PDF
Share/Bookmark

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

Thursday, September 28, 2017

Map network drive with different user by using command

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 Print Friendly and PDF
Share/Bookmark

Sunday, March 6, 2011

NET SEND alternatives in windows 7/Vista

1. msg.exe

2. sent Utility (http://www.winsentmessenger.com/sent/)

Print Friendly and PDF
Share/Bookmark

Friday, October 1, 2010

Delete Files Permanently with SDelete

SDelete v1.51

http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx

Print Friendly and PDF
Share/Bookmark

Thursday, September 9, 2010

How to login in UNC path to install a software

How to login in UNC path to install a software

Runas the administrator and run the following command:


Net use "\\abc\xxx.exe"

Print Friendly and PDF
Share/Bookmark

Saturday, June 19, 2010

3 geeky command for Windows XP/Vista/Win7

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.

Print Friendly and PDF
Share/Bookmark

Thursday, June 17, 2010

Delete files and folder more than 30 day

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_*

Print Friendly and PDF
Share/Bookmark

Run Windows Explorer as Another User

For IE 6

 

runas /user:domain or local\Administrator "explorer.exe"

 

For IE 7/8

 

runas /user:domain or local\Administrator "explorer.exe /separate"

Print Friendly and PDF
Share/Bookmark

Delete file sharing and file by command

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

Print Friendly and PDF
Share/Bookmark

FOR at console(command prompt) and in batch used differently

“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”)

Print Friendly and PDF
Share/Bookmark

Monday, May 24, 2010

run by admin for windows update (Runas in command)

wupdmgr.exe –z –q

Print Friendly and PDF
Share/Bookmark

Thursday, March 18, 2010

Runas替代方法CPAU 运行方式 不用输管理员用户名和密码

http://www.zhengda.me/index.php/archives/171

Print Friendly and PDF
Share/Bookmark

Monday, March 15, 2010

Microsoft Security Essentials signature update hourly

We can create a Schedule job to run the following command hourly:

 

“C:\Program Files\Microsoft Security Essentials\MpCmdRun.exe –SignatureUpdate”

Print Friendly and PDF
Share/Bookmark

Open multiple instances of excel 2007

Use command

"C:\Program Files\Microsoft Office\Office12\EXCEL.EXE" /e

Print Friendly and PDF
Share/Bookmark

Thursday, February 18, 2010

XP: kill a Windows process from the command line with taskkill

http://www.tech-recipes.com/rx/446/xp_kill_windows_process_command_line_taskkill/ Print Friendly and PDF
Share/Bookmark

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)

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"


Reference: http://www.workstationtalk.com/content/how-identify-installed-windows-patches-command-prompt-using-wmic


 

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

Tuesday, December 8, 2009

Using Netsh with Windows Firewall

http://www.windowsnetworking.com/articles_tutorials/Using-Netsh-Windows-Firewall.html Print Friendly and PDF
Share/Bookmark