Does Windows have a built-in ZIP command for the command line?

It’s not built into Windows, but it’s in the Resource Kit Tools as COMPRESS, C:\>compress /? Syntax: COMPRESS [-R] [-D] [-S] [ -Z | -ZX ] Source Destination COMPRESS -R [-D] [-S] [ -Z | -ZX ] Source [Destination] Description: Compresses one or more files. Parameter List: -R Rename compressed files. -D Update compressed files … Read more

In Windows, using the command line, how do you check if a remote port is open?

I found a hiddem gem the other day from Microsoft that is designed for testing ports: Portqry.exe “Portqry.exe is a command-line utility that you can use to help troubleshoot TCP/IP connectivity issues. Portqry.exe runs on Windows 2000-based computers, on Windows XP-based computers, and on Windows Server 2003-based computers. The utility reports the port status of … Read more

What is Active Directory Domain Services and how does it work?

What is Active Directory? Active Directory Domain Services is Microsoft’s Directory Server. It provides authentication and authorization mechanisms as well as a framework within which other related services can be deployed (AD Certificate Services, AD Federated Services, etc). It is an LDAP compliant database that contains objects. The most commonly used objects are users, computers, … Read more

Run a .bat file in a scheduled task without a window

You could run it silently using a Windows Script file instead. The Run Method allows you running a script in invisible mode. Create a .vbs file like this one Dim WinScriptHost Set WinScriptHost = CreateObject(“WScript.Shell”) WinScriptHost.Run Chr(34) & “C:\Scheduled Jobs\mybat.bat” & Chr(34), 0 Set WinScriptHost = Nothing and schedule it. The second argument in this … Read more

How to sleep in a batch file?

The correct way to sleep in a batch file is to use the timeout command, introduced in Windows 2000. To wait somewhere between 29 and 30 seconds: timeout /t 30 The timeout would get interrupted if the user hits any key; however, the command also accepts the optional switch /nobreak, which effectively ignores anything the … Read more

How to refresh hosts file without rebooting

You don’t need to reboot. Any changes you make to the hosts file are immediate. You used to need to reboot for changes to take effect in Windows 9x. That is no longer the case. However, you may need to restart any applications that do internal hostname or DNS caching, such as web browsers.