Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Saturday, June 06, 2020

Visual studio: start mutiple projects

There is a nice tool that allows you to define combination of multiple projects that should be started together when running things from Visual studio, the extension is called SwitchStartupProject and can be found here:

Sunday, December 09, 2018

Add user to windows

WTF!? Why do I have to give option for password recovery when creating a local user account!!!

On windows 10, Going through the normal user dialogs is painful, Microsoft tries so hard to only allow you to add Microsoft accounts to your machine that is maddening.

If you just want to add a nice, simple local user account you will have to directly call the old add user application, to do you have to call it from the run command, so:
  1. Open the run command dialog: Windows key + R
  2. Open the user dialog, by running the command: control userpasswords2

Friday, March 04, 2016

Visual studio: Enable debug of external code

  1.  Go to the Debug-->Exceptions dialog, check Common Language Runtime Exceptions, and check the check box in the Thrown column;
  2.  Go to the Tools-->Options-->Debugging and uncheck the Enable Just My Code (Managed Only) check box.

Source

Wednesday, February 10, 2016

Dump Table date to SQL using Microsoft SQL Server

You can export the data in a table or DB into a SQL query using Microsoft SQL server Management studio by doing:
right click on the DB -> Tasks -> Generate Scripts. On the wizard step titled "Set Scripting Options" choose "Advanced" and modify the "Types of data to script" option to "Data"

This question was answered in http://serverfault.com/questions/147638/dump-microsoft-sql-server-database-to-an-sql-script

Tuesday, February 02, 2016

Install Disk cleanup in windows 2008 r2

The site basics.net have the instructions how to install the disk cleanup nicely (the default Microsoft way is crap because you end up withi loads of stuff installed in the system), the article with the instructions is http://www.basics.net/2013/02/25/win-server-2008-r2-how-to-enable-the-disk-cleanup-utility/
Copy 2 files to specific system folders and you can immediately use the tool:

Copy Cleanmgr.exe to %systemroot%\System32.
Copy Cleanmgr.exe.mui to %systemroot%\System32\en-US.
The 2 files are located in
- C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe
- C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui

You can simply run this as administrator:
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe %systemroot%\System32
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui %systemroot%\System32\en-US