Monday, January 29, 2024

How to increase the resolution on Ubuntu in Hyper-v

https://superuser.com/questions/1660150/change-screen-resolution-of-ubuntu-vm-in-hyper-v

Monday, January 22, 2024

Best Windows CMD Extension for autocompletion

Clink: https://github.com/chrisant996/clink/releases Discussion: https://superuser.com/questions/584013/how-to-use-cmds-tab-autocomplete-effectively

Tuesday, May 16, 2023

How to execute/run a program as a user on Windows

1) Open the Powershell as a different user. 


2) Enter the credentials on the login popup

3) Run executable on the command line.

Thursday, January 20, 2022

How to setup a Windows Scheduled Task for C# Console Application

 Follows the Option1 from this tutorial (https://www.technipages.com/scheduled-task-windows). Full version bellow:

  1. Using the “Windows Key + “R” to open run and type “taskschd.msc“. This will open Task Scheduler.
  2. Under the actions panel, you can choose to create a back task or create a task. Click “Create Task“.
  3. The “Create Task” screen will appear. Select the “General” tab
    • In the “Name” field, give the task a name. Example: “Outlook Task“.
    • In the “Description” field, here you can describe what the task is for and what it will do.
    • The last section is the “Security options“, here you can set who can run this task and if the task has admin right.
  4. Select the “Triggers” tab.
  5. Select “New…“.
  6. The “New Trigger” window will appear, here you have the option to set when the task will start.
    • Select when you would like the task to start in the “Begin the task” drop-down menu.
    • Modify the “Settings” area as desired.
    • In the “Advanced settings” field you can choose to delay task, repeat task, stop task, activate and expire.
    • Enabled” is checked by default.
  7. Select “OK“.
  8. Select the “Actions” tab, then select “New“.
  9. The “New Action” window will open.
  10. In the “Action” drop down, “Start a program” is set by default. Change it if desired.
  11. Select “Browse…” next to the “Program/script” field
  12. Browse to the program you are wanting to schedule a task for.
  13. EXTRA: It might be useful to set the Start In parameter, which is the working directory (directory where your program is gonna be ran from).
  14. Select “OK“.
  15. Go to the “Conditions” tab.
  16. You can change these if you’d like, but I recommend leaving these settings default.
  17. Select the “Settings” tab. You can change these if you’d like, but I recommend leaving these alone.
  18. Select “OK“.



Saturday, June 20, 2020