English 中文(简体)
Powerhell 安装了新PC的所有密码延伸。
原标题:Powershell install all vscode extensions on a new PC

I have the current script which installs chocolatey on a new computer and installs all my main applications and confirms theyre up to date:

#Requires -RunAsAdministrator

# Install chocolatey packet manager
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString( https://chocolatey.org/install.ps1 ))

# Install needed packages (these can be changed to suit your needs)
choco install brave discord microsoft-teams microsoft-office-deployment vscode visualstudio2019community sql-server-management-studio tableau-desktop git -y

# Confirm all software is up to date
choco update all -y

I was wondering if there is a way i can at the end of this script be able to install all my vscode extensions as well onto a new pc (windows).

问题回答

在这里,通过PS在《科索沃法典》中安装延伸功能的简单办法是:

Start-Process "C:Program FilesMicrosoft VS Codeincode.cmd" -ArgumentList "--install-extension","ms-vscode.powershell","--force" -wait

您必须在<代码>上确定这一数值。 如果你想要避免 errors错的话:

"http.proxyStrictSSL"": false




相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签