Scripts for setting up a development environment in university's computers.
Note
Also set an environment variable namedSetupLogFilePath
, containing the path to log file.
. { Set-ExecutionPolicy Bypass -Scope Process -Force } *> $null; . ([scriptblock]::Create((irm 'https://raw.githubusercontent.com/mon-jai/environment-setup/main/setup-environment.ps1')))`
[-Lang <ProgrammingLanguage>]
Valid values:
-
python
/py
. Install Python and related tooling. -
c++
/cpp
. Install C++ tooling.
(run with administrative privileges)
# https://superuser.com/a/649183
regsvr32 hnetcfg.dll
$HNetShare = New-Object -ComObject HNetCfg.HNetShare
$connection = $m.EnumEveryConnection |? { $m.NetConnectionProps.Invoke($_).Name -eq "乙太網路" }
$config = $HNetShare.INetSharingConfigurationForINetConnection.Invoke($connection)
$config.EnableSharing(0)
Delete Chrome profile data
Remove-Item "$Env:LOCALAPPDATA\Google\Chrome\User Data\" -Force -Recurse