A: Start a command window and type the following command at the prompt: change port /query The output will look something like this: AUX = \DosDevices\COM1 COM1 = \Device\RdpDrPort\;COM1:15\tsclient\COM1 COM2 = \Device\RdpDrPort\;COM2:15\tsclient\COM2 COM3 = \Device\RdpDrPort\;COM3:15\tsclient\COM3 LPT1 = \Device\RdpDrPort\;LPT1:15\tsclient\LPT1 PRN = \DosDevices\LPT1 From the above, you can see that COM1-3 and LPT1 are redirected. The number […]
Month: February 2020
Installing a web application from an msi installer fails on Vista / Windows 7 / Windows Server 2008
Starting the installer results in a near immediate message reading: “the installer was interrupted before this application could be installed. You need to restart the installer to try again.” Additionaly, the eventlog shows eventid 11708 with a short error message stating “installation failed” Resolution: You need to install the IIS6 Metabase compatibility component for the […]
Resolving coalation conflicts with temporary tables
When writing long query’s or stored procedures using temporary tables, you may run into an error like: Cannot resolve the collation conflict between “Latin1_General_CI_AS” and “SQL_Latin1_General_CP1_CI_AS” in the equal to operation. The cause of this error is that the tables you are querying against have a different collation then the server default. This causes the […]
Re-activating the create unit test function in Visual Studio 2012
Visual studio 2010 had a quick rightclick context menu to create unit test which has disappeared in VS2012, to move to a more general approach that isnt directly tied in with the MS unit testing system. It is possible however to re-enable the menu function or use a keyboard shortcut. full writeup source: http://serena-yeoh.blogspot.nl/2013/02/visual-studio-2012-create-unit-test.htmlhttp://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx Your […]
Exporting a HYPER-V Virtual machine to a network share
If you start a HYPER-V virtual machine export to a share, you will be greeted by an permissions error. This happens both with a manual export, and with a scripted backup through powershell using the Export-Vm cmdlet. note: this procedure does not apply to migrations The resolution for this problem is luckily simple. You need […]
Server 2012 – Change the type of a network location
By default the network location awareness service will attempt to classify your network, and you will not be able to change the location. To enable editing of the location(s) take the following steps: Start –> run –> MMC In the MMC console add the Group Policy Object editor for the local computer Open Computer configration, […]
Restore trust between server and workstation without leaving and rejoining the domain
If a workstation is restored from a backup you will likely run into a message like ‘the trust relationship between this workstation and the primary domain failed’. The general advice will be leaving and rejoining the domain. However, there is a much safer method. You can start PowerShell as an administrator, and run the command […]
Hyper-V 2008 Powershell Security Warnings
After setting the execution policy for windows powershell to unrestricted, you still are unable to run powershell scripts from a batch file or the command line without the following warning popping up: C:\MyScripts> Set-ExecutionPolicy unrestricted PS C:\MyScripts> ./somefile.ps1 Security Warning Run only scripts that you trust. While scripts from the Internet can be usefull they […]
XtraReports – Selecting a paper tray
This sample shows how to enumerate and select a specific tray to use for printing. The code works bij intercepting the oReport.PrintingSystem.StartPrint event and adding a handler to send it to a routine which enumerates the trays of the printer. There are a few pitfalls to take note off: My HP drivers insisted on having […]
Getting and setting the clipboard content
These samples show handling the clipboard in the most basic way. First a test is done to see if there currently is text on the clipboard. If a text is found, the programm proceeds to read and display the text, and then replace it with a new text. By modifieing the parameters you can use […]