List RDP Sessions on Remote Servers in PowerShell
You can use this handy little script to find remote desktop sessions on all servers running in your Active Directory domain.
You can use this handy little script to find remote desktop sessions on all servers running in your Active Directory domain.
Getting the hostname from an IP address (or vice versa) is no great magic, and can be done easily with PowerShell, by simply leveraging .Net to do the work. We’ve all done something like this to get resolve an IP address: [System.Net.Dns]::GetHostEntry(“69.69.95.133”).HostName Or this to get an IP address from a hostname: [System.Net.DNS]::GetHostAddresses(“www.fortypoundhead.com”).IPAddressToString But did you ever notice… Read More »
I’ve shown you previously how to get the date value from the system in a batch file. You can also grab the time in a similar fashion.
This handy little script will dump out your Active Directory users to an Excel spreadsheet. Simply run it with an account that has the necessary permissions to query AD, and it will do the rest, including notify you with a dialog box when it is done.
In my day job, one of the things I do is maintenance of a farm of servers. All these boxes have local logging, which is picked up by Splunk. However, I still need to clean up those log files. Here is how I automated the process.
Just because you don’t have a GUI on your Windows Server 2012 doesn’t mean you can’t install roles and features at will. Use PowerShell, and the job gets easy.
This handy little VBscript to create a system restore point can be encapsulated in a function and can save you from yourself.
From time to time, it might be required that large number of generic user account objects be created in an Active Directory domain. Here is how to do it, quickly.
When deploying large numbers of computers, there are several methods of joining a machine to a domain. Since I am a big fan of VBScript (shhh!), I use this method to join the machine.
Once again, someone has decided to sell some knowledge. Nothing burns me up more than someone trying to make a quick buck off something so simple as generating a random password.