See all products »
Curah! curation service
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Server and Tools Blogs
TechNet Flash Newsletter
Cloud and Datacenter
Windows Server 2012 R2
System Center 2012 R2
Microsoft SQL Server 2012 SP1
Windows 8.1 Enterprise
See all trials »
Microsoft Download Center
TechNet Evaluation Center
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
MCSA: Windows 8
Windows Server Certification (MCSE)
Private Cloud Certification (MCSE)
SQL Server Certification (MCSE)
Second shot for certification
Born To Learn blog
Find technical communities in your area
For small and midsize businesses
For IT professionals
For technical support
For home users
Microsoft Premier Online
Microsoft Fix It Center
Security Bulletins & Advisories
International support solutions
Log a support ticket
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Brad Rutkowski's Blog
Business up front
Party in the back
Vista and Lognhorn
Windows Server 2008
Browse by Tags
Brad Rutkowski's Blog
Display warning text when someone logs onto your servers
This works for Windows 2003 and Windows 2008. We use it during our reliability study to let the server owners know that they shouldn't reboot their boxes without a good reason. You can use it for whatever you’d like. :) The two keys to set: reg add " \\brad-dc-01\HKLM\SOFTWARE\Microsoft\Windows...
25 Sep 2008
SET-ACL on registry key
Man it was hard to find info on using set-acl on a registry key! I was looking for a way to set an ACL that once set would be inherited by child keys and values. We needed to give “Local Service” full control on the registry key below and have the subkeys inherit the permission...
29 Sep 2008
Find out who pings on a subnet quick and easy
So i know there are tools out there to do this but figured some would be interested on how to do this real quick with stuff that's already in the OS. 1) Turn off echos to make the out put clean (don’t forget to turn it back on when its done via “echo on”). 2) The set is a sequence of numbers from...
24 Apr 2008
Hey I forgot to turn on RDP on my server!
Ever find yourself away from your server after building it out and forgot to turn on RDP so you could TS onto the machine? Well in XP and 2k3, you can just toggle a reg key and most of the time (pending firewall issues) you can then TS into the box. Doesn't work in Windows 2000 as you need to install...
18 Oct 2006
Hey Admins! Gathering information from remote machines using WMI (the easy way).
Those who are just getting into scripting might be wondering how to query info from remote machines using WMI and how to find useful information to query. When I started out trying to learn some of the WMI syntax and gathering info, I started with ScriptoMatic . I found this...
15 Mar 2008
Are there pending operations waiting for a reboot?
Sometimes you might log onto a server and wonder if there have been patches installed and thing needs to be rebooted. Well if the patch wanted to replace a file that was in use by the system (like NTFS for example) then it populates a certain key in the registry, you could check this key to determine...
27 Jun 2007
Changing "Sessions" information on user account in Active Directory with Powershell
Doing some digging with a teammate today it was incredibly difficult to find information on how to automate the settings change of the Sessions tab on a user object. Different paths indicate we need to edit the userParameters attribute but you've probably found that it's a binary blob and not easily...
19 Sep 2012
Dumping out all the DCs in a domain to a txt file
Short and sweet way of dumping out the DCs to a txt file, in a script: for /f "skip=1" %%a in ('netdom query dc /domain:YOURDOMAIN') do (if %%a == The (echo.) else echo %%a >> test.txt) So what's the deal with all the syntax, and how would this be useful? Well if you do simple admin...
17 Oct 2006
Using invoke-command to launch a script on a remote computer which connects to network resources.
First, I found the details here . Second, things can change as this is being done with the CTP for Powershell 2.0 Third, if you don’t know about remoting in 2.0 watch this 5 minute video . Then read this . Whew. Backstory: You might find yourself in a situation where you...
26 Sep 2008
Using TypePerf to get performance data on the command prompt.
I was tracking a high CPU issue this week and needed to know when one of my servers was pegged so I could investigate. I could of used perfmon I guess but I really like to do everything I can from the command prompt. I always like it when there is a tool that can do data collection from the command prompt...
23 Sep 2007
Republish printers easily on a print server to Active Directory.
Printers can get pruned from the directory for many reasons. The way it is supposed to work is if the printer is stale then a DC will remove the print queue object from the directory after trying to contact it 3 times at 8 hour intervals (default). This also means that if a DC can't net view the print...
25 Jun 2007
Getting Access Denied when trying to query root\MSCluster namespace remotely against Windows 2008.
Ran into a weird issue where I was getting access denied when trying to query nodes remotely in powershell. The query was working fine against Windows 2003 cluster names and worked locally when ran on a Windows 2008 cluster node, it just didn’t work remotely. Against 2k3: PS C:\Debuggers>...
8 Sep 2008
Check that driver file versions match on all your cluster nodes via Powershell
This is more of a proof of concept, but I've used it with success internally. Take it and do with it what you want. Many thx to Brandon who did the "heavy lifting" when I got stuck! Overview: Ever run into cluster issues and wanted to see if the driver file versions matched on all the nodes of...
4 Dec 2008
Need an easy way to create a unique file name with the date?
I needed to dump winlogon and do some checks against the dump file and needed and easy way to get the computername and date in the file name and formatted so I could easily perfrom next steps. Here was the soution: C:\Debuggers>echo %computername%_%DATE:~10,4%.%DATE:~4,2%.%DATE:~7,2% SK8ORDIE_2007...
12 Apr 2007
© 2015 Microsoft Corporation.
Privacy & Cookies