Posts

Showing posts with the label Run as administrator
Image
This article will summarize the development of Add-Ins for Outlook.  Use the basic template using Yeoman and Yeoman Generator. Development environment OS: Windows 11 .Net version: 8.0 Development tool: Visual Studio Code Node.js version: 18.20.4 Yeoman version: 5.0.0 Development language: React, Typescript

Check whether Powershell is running with administrator privileges

Image
 In the previous post, I was using Oh My Posh to apply a theme to Powershell, but the prompt line was pushed back when I 'Run as Administrator'. Let me summarize how I solved this in my own way. Customizing Windows Powershell For example: When run with administrator privileges, one line is pushed So, I decided to remove the time and speed display on the right side when 'Run as administrator' in the Powershell profile. 1. Copy the existing theme file and call the theme when ‘Run as administrator’. 2. Remove the right attribute from the copied theme file and save it as a separate theme file. {   "$schema": " https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json ",   "blocks": [      {       "alignment": "right",       "segments": [         {          ...

Popular posts from this blog

Setting up Windows Powershell with Oh-My-Posh

[NETSDK1136] the target platform must be set to windows