Hot answers tagged

244

Based on my own experience and what I encountered while Googling, here are some things to try: 1. Did you check that it works correctly? Changes to hosts should take effect immediately, but Windows caches name resolution data so for some time the old records may be used. Open a command line (Windows+R, cmd, Enter) and type: ipconfig /flushdns To drop the ...


220

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 user may press, except an explicit ...


218

You can use the Resource Monitor for this which comes built-in with Windows 7, 8, and 10. Open Resource Monitor, which can be found By searching for Resource Monitor or resmon.exe in the start menu, or As a button on the Performance tab in your Task Manager Go to the CPU tab Use the search field in the Associated Handles section See blue arrow in screen ...


217

Absolutely you should. It's not just common sense from a security POV, it should also be practice as matter of business ethics. Let's imagine the following scenario: Alice leaves, and her computer is transferred to Bob. Bob didn't know it, but Alice was into illegal shota porn and left several files tucked away outside of her profile. IT wipes her profile ...


160

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 ...


110

There are several fairly easy options available for remotely managing a remote Windows Server using a command line, including a few native options. Native Options: WinRS/WinRM Windows Remote Shell/Management tool is the easiest way to remotely manage a remote Windows server in a command line utility, and as with most Windows command line utilities, ss64 ...


104

You can use Docker Desktop for Windows as the engine and Docker for Linux as the client in WSL on Ubuntu / Debian on Windows. Connect them via TCP. Install Docker Desktop for Windows: https://hub.docker.com/editions/community/docker-ce-desktop-windows If you want to use Windows Containers instead of Linux Containers both type containers can be managed by ...


101

These are dynamically configured link-local addresses. They are only valid on a single network segment and are not to be routed. Of particular note, 169.254.169.254 is used in Amazon EC2 and other cloud computing platforms to distribute metadata to cloud instances.


95

Open up "Control Panel | System and Security | System" In the dialog click on "Advanced system settings" (requires Admin rights) The "System Properties" dialog will be displayed Make sure you are in the "Advanced" register In the "User Profiles" section click on "Settings" The "User Profiles" dialog is displayed Select the account. Hit Delete. Faster: ...


92

There are only two correct answers to this question. An unused sub-domain of a domain that you use publicly. For example, if your public web presence is example.com your internal AD might be named something like ad.example.com or internal.example.com. An unused second-level domain that you own and don't use anywhere else. For example, if your public web ...


89

Or with the net user command... net user /domain username


82

runas /u:yourdomain\a_test_user notepad.exe The utility will prompt for the password, if the right password has been provided, notepad will launch, if not it will produce error 1326: the username or password is incorrect


80

yes, you can try ( it is built in~ ) : CertUtil -hashfile yourFileName MD5 EDIT But Wait, There's More! I know that this is above and beyond the simple and elegant answer, but because this page is the FIRST result when doing the google search how do i get the md5 of a file on windows and because this answer is preferable to me and MANY others being ...


77

You almost certainly have set the wrong character set in your PuTTY settings. Verify the character set on the remote system by running the command: locale This should return something like: LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" ...


76

Not natively but check out: http://mridgers.github.io/clink/ , makes cmd.exe much more productive. Quoting features from the project page: Powerful Bash-like line editing from GNU's Readline library. Superior path completion (TAB). Paste from clipboard (Ctrl-V). Support for the completion of executables/commands, and environment variables. Undo/Redo (Ctrl-_ ...


75

You need VS C++ 2012. Go here: http://www.microsoft.com/en-us/download/details.aspx?id=30679 You need to download the x86 version if you install the 64bit version it will give the same error.


73

In a command prompt type: runas /user:yourusername@yourdomain cmd It will open up a new cmd prompt, then type: taskkill /f /im explorer.exe Then type: explorer.exe Now after closing all command prompts, you will see that the PATH variable has been truly updated. All command prompts must be closed. Reopen a new command prompt, type path and you will see the ...


73

You can modify the timeout value in the registry. 1. Click Start, click Run, type regedit, and then click OK. 2. Locate and then click the following registry subkey: - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control 3. In the right pane, locate the ServicesPipeTimeout entry. **Note**: If the ServicesPipeTimeout entry does not exist, you must create it....


68

In the CMD window type: SYSTEMINFO You will find a line with the following text (or similar): System Manufacturer: VMware, Inc. System Model: VMware Virtual Platform


68

To delete all network authentication C:\> net use * /d To view current network connection C:\> net use IMPORTANT NOTE I tested in Windows 7 SP1 64 Bits, 100% WORK After run the command, you need to go to task manager delete the explorer.exe , then reopen the application again. To open the application, go to RUN, enter explorer.exe Now you are ...


67

Which version of Windows? For Windows 8/Server 2012 and later, the following works in PowerShell: Test-NetConnection 128.159.1.1 -Port 80 Some Googling will also turn up alternatives which use the .NET Framework directly (since PowerShell lets you do that) for systems running lower versions of Windows that won't have Test-NetConnection available. If you'...


65

When you have IIS Manager open, you can click Help -> About to see the version.


65

You can use the built-in netsh portproxy. In your case: netsh interface portproxy add v4tov4 listenport=80 connectaddress=ip-of-server-on-internet connectport=23 listenaddress=ip-of-windows-machine protocol=tcp You'll need Administrator privileges. No need to install additional software! You are required to install IPv6 on your operating system before ...


65

This behavior can also be caused by a system administrator who configures the computer to use Windows Server Update Services (WSUS) instead of the Microsoft Windows Update server for servicing. http://support.microsoft.com/kb/2734782 This worked for me. Windows has to download the 3.5 installation files, but the server is configured not to use Windows ...


62

This used to be true, but is no longer exclusively true. What they are referring to is Strict Co-Scheduling. Most important of all, while in the strict co-scheduling algorithm, the existence of a lagging vCPU causes the entire virtual machine to be co-stopped. In the relaxed co-scheduling algorithm, a leading vCPU decides whether it should co-stop ...


60

The off-line installers at http://oracle.com/technetwork/java/javase/downloads/index.html do not include bundled software.


58

32-bit can be slightly faster in certain use cases -- the smaller addresses means sightly more compact code, which means greater cache efficiency. In the benchmarks I've seen, that efficiency tends to be be overshadowed by 64-bit's greater computational efficiency in heavy-computation environments. But 32-bit does in fact occasionally win on some benchmarks. ...


58

There is no "patch". It's a vulnerability in the protocol, not a bug in the implementation. In Windows Server 2003 to 2012 R2 the SSL / TLS protocols are controlled by flags in the registry set at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Protocols. To disable SSLv3, which the POODLE vulnerability is concerned with, ...


57

You don't have to restart immediately after renaming the machine... just don't expect every service and function to pick up on the new name. Things such as system environment variables are read once, at system startup. If you change those variables, the various components of Windows won't pick up on them until they're restarted. Some of those components are ...


55

You can use Group Policy to prevent the installation of new network devices. You'll find an option in Administrative Templates \ System \ Device Installation \ Device Installation Restrictions \ Prevent installation of devices using drivers that match these driver setup classes. From its description: This policy setting allows you to specify a list of ...


Only top voted, non community-wiki answers of a minimum length are eligible