Find Windows System Uptime from the Command Line

by File in: Windows

Here’s a quick and easy way of checking how long a Windows server or workstation has been up, via the command line.  It pipes the results of Net Statistics Workstation into find.  Run the following from a command prompt: net statistics workstation | find /i “statistics since” The results will look like Statistics since MM/DD/YYYY […]

Fix: “The IP address you have entered for this network adapter is already assigned to another adapter…”

by File in: Windows

I brought up a snapshot of a Windows Server 2003 R2 guest today and could not login to the domain.  After further review I found the server had lost its static TCP/IP settings – both NICs were set to DHCP (they had previously been statically set).  When I attempted to add the TCP/IP addresses back to […]

Howto: Delegate the Enable/Disable Accounts Permission in Active Directory

by File in: Windows

To delegate the ability to enable and disable user accounts in Active Directory: Launch Active Directory Users and Computers with administrative credentials Right click on the OU where you want to delegate the ability to enable and disable user accounts Select the Active Directory security group that you want to delegate the ability to and […]

HowTo: Export a List of All Computers in an AD OU

by File in: Windows

To export a list of all computers and non domain controller servers in an Active Directory OU, use dsquery.exe.  For example, to export all computers in mydomain.com’s servers OU to machines.txt : DSQUERY COMPUTER “OU=servers,DC=mydomain,DC=com” -o rdn -limit 1000 > c:\machines.txt Use -limit when you want to return more than the default 100 results.  Note that […]

Fix: Blank Screen When using Windows XP Telnet Client

by File in: Windows

Today when I established a telnet session to a host on port 80 from my Windows XP machine, I was unable to see any commands I typed echoed on the screen.  I knew I had to enable local echo, but always seem to forget how to do it. KB196748 describes how to enable local echo […]

The Best MSI Extractor

by File in: Utilities

I’ve written in the past about how to extract MSI files at the Windows command prompt, and how to extract the .msi files and edit them using UniExtract and Orca. I think I now have a new favorite tool for extracting .MSI files, and it’s called Less MSIerables (lessmsi) by Scott Willeke.  It can be […]

Fix: Userenv event 1521 and Userenv 1511 errors in Windows Server 2003 Application log

by File in: Windows

The following events were listed in the Windows 2003 event log when one of our second level help desk staff connected to the server console via RDP: Event 1521 Source Userenv  Windows cannot locate the server copy of your roaming profile and is attempting to log you on with your local profile. Changes to the […]

Fix: rdpclip.exe Won’t Run on Windows Server

by File in: Fixes

I had two identically configured Windows servers, one that would allow remote copy/paste from the server to the client via RDP, and one that wouldn’t.  I finally took the time today to resolve the issue once and for all. First thing I verified was that in the Local Resources tab of Remote Desktop Connection (mstsc.exe)  […]

Howto: Do not display the name of the user who has locked a Windows computer or server

by File in: How-To

Normally when a Windows workstation or server is locked, you’ll see something similar to the following Windows Security message: This computer is in use and has been locked. Only DOMAIN\USER (user name) or an administrator can unlock this computer. To not show the name of the user who has locked a computer, the following can […]

Fix: 0×80070005: Access is denied when running scheduled task as a non-administrator

by File in: Windows

I was running a scheduled task on a Windows 2003 server that called a script that ran as a non-administrator on the server.  The service account that the script ran under had rights to all the appropriate directories on the server, but I still kept seeing the following error after the scheduled task failed to […]