If you want to reset all Terminal Server (RDP) Sessions from command line, you can use this PowerShell script. $ServerName = "l...
Read More
Home / Scripting
Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts
CreateObject("InternetExplorer.Application") and Scheduled Tasks
If you use something like this: Set objIE = CreateObject("InternetExplorer.Application") to simulate browsing from a Scheduled Tas...
Read More
CPU usage per database
This script shows all CPU usage of all sessions per database at a certain moment. DECLARE @total INT SELECT @total=sum(cpu) FROM sys.sysproc...
Read More
MySQL - Drop tables with common prefix
I needed to delete multiple tables with name like 'TMP_%' the following procedure do this job in an effective way ! DELIMITER $$ D...
Read More
Windows DEV NULL
In Unix-like operating systems , /dev/null or the null device is a special file that discards all data written to it (but reports that the...
Read More
Network Sniffer with PowerShell
I just found this incredible script that allow to get network packet like a sniffer using only PowerShell (no PCAP...) Read more here: http:...
Read More
VMware HBA High Availability
We were testing High Availability of VMware ESX 3.5 and we noticed it doesn't manage the failure of all HBA. Let's suppose each hos...
Read More
Search for file Owner
Claudio provided me this quick tips for searching all files owned by a specific user dir /q /s find /i "domain\username"
Read More
Running CMD as local system
Many times I need to troubleshoot problems with services. You cannot make a runas with Local System so I searched for a workaround. Creatin...
Read More
Manage TS Sessions using Command Line
In a previous post , I used QWINSTA for query the list of TS sessions. I just learned a new command called QUSER that make the same thing...
Read More
64bit: Provider is not specified and there is no designated default provider.
Running a VBS that open a connection to SQL Server from a 64bit server is a little different than 32bit... You can experience the following ...
Read More
Delete al printer for a specific SessionID
After obtaining the list of Terminal Server Session ID in the previous article, now I need to delete alla printers related to this session I...
Read More
Obtain the list of TS Session ID
I'm going to create an utility that will purge "unmapped" terminal service printers, I need to obtain the list of Terminal Ser...
Read More
Saving command line output directly to the clipboard
Windows Server 2003 offers a number of new command line tools that can help administrators manage WS2K3-based networks. Within Windows Serv...
Read More
Subscribe to:
Posts
(
Atom
)