Thursday, February 01, 2018
Tuesday, November 14, 2017
Net Use Command for Windows
The net use command is a Command Prompt command that's used to connect to, remove, and configure connections to shared resources, like mapped drives and network printers.
The net use command is one of many net commands like net send, net time, net user, net view, etc.
Net Use Command Availability
The net use command is available from within the Command Prompt in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP, as well as in older versions of Windows and in Windows Server operating systems. Recovery Console, the offline repair utility in Windows XP, also includes the net use command but it's not possible to use it within the tool.
Note: The availability of certain net use command switches and other net use command syntax may differ from operating system to operating system.
Net Use Command Syntax
List all active connection
Remove temp credential login
https://www.lifewire.com/net-use-command-2618096
The net use command is one of many net commands like net send, net time, net user, net view, etc.
Net Use Command Availability
The net use command is available from within the Command Prompt in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP, as well as in older versions of Windows and in Windows Server operating systems. Recovery Console, the offline repair utility in Windows XP, also includes the net use command but it's not possible to use it within the tool.
Note: The availability of certain net use command switches and other net use command syntax may differ from operating system to operating system.
Net Use Command Syntax
net use [{devicename | *}] [\\computername\sharename[\volume] [{password | *}]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | no}] [/smartcard] [/savecred] [/delete] [/help] [/?]
List all active connection
net use
Remove temp credential login
net use "\\10.158.252.100\xxx" /d
https://www.lifewire.com/net-use-command-2618096
Labels:
windows
Tuesday, November 07, 2017
vsftpd server not listing ( 425 Failed to establish connection)
Its kind of an off the wall solution but something I have run into on CentOS w/ vsftpd is problems with the ip_conntrack_ftp module not being loaded correctly causing this issue.
Try this:
https://www.linuxquestions.org/questions/linux-server-73/vsftpd-server-not-listing-425-failed-to-establish-connection-4175414488/
Try this:
modprobe ip_conntrack_ftp
https://www.linuxquestions.org/questions/linux-server-73/vsftpd-server-not-listing-425-failed-to-establish-connection-4175414488/
Saturday, October 28, 2017
Argument list too long error for rm, cp, mv commands
The reason this occurs is because bash actually expands the asterisk to every matching file, producing a very long command line.
Try this:
find . -name "*.pdf" -print0 | xargs -0 rmWarning: this is a recursive search and will find (and delete) files in subdirectories as well. Tack on -f to the rm command only if you are sure you don't want confirmation. If you're on Linux, you can do the following to make the command non-recursive:
find . -maxdepth 1 -name "*.pdf" -print0 | xargs -0 rmAnother option is to use find's -delete flag:
find . -name "*.pdf" -deleteAnother possible solution :
c=1; l=$(ls | wc -l); for i in *; do rm $i; echo "[$c / $l] $i"; c=$((c + 1));
Friday, September 29, 2017
IIS ftp server can't access from other machine
https://serverfault.com/questions/438314/iis-ftp-server-works-locally-but-cannot-connect-from-remote
Basically, you have to run:
sc sidtype ftpsvc unrestricted
And then restart the FTP service:
net stop ftpsvc & net start ftpsvc
From what I can tell, it's a bug in R2. Go figure.
Subscribe to:
Comments
(
Atom
)