Skip to content

Commit

Permalink
linted and secured code
Browse files Browse the repository at this point in the history
  • Loading branch information
BIGboss248 committed Mar 11, 2024
1 parent c4057d9 commit d401648
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions Programing.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
# chocolatey config file C:\ProgramData\chocolatey\config\chocolatey.config


# Check for permissions
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
# Relaunch as administrator
$arguments = "& '" + $myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb RunAs -ArgumentList $arguments
Exit
}

'________________running with full privileges________________'
Set-ExecutionPolicy Bypass -Scope Process -Force;
'________________Disalbe right click file properties menue___________'
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser


# Winget package manager
# Winget package manager
winget install --id SomePythonThings.WingetUIStore --accept-source-agreements
winget install --id ZeroTier.ZeroTierOne --accept-source-agreements
'________________Doc viewer and editer________________'
Expand All @@ -25,7 +7,6 @@ winget install --id 9WZDNCRD29V9 --accept-source-agreements #install office365
'________________Initialize and prerequisite________________'
winget install --id Microsoft.DotNet.SDK.7 --accept-source-agreements
winget install --id Microsoft.DotNet.Runtime.7 --accept-source-agreements
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
winget install --id Starship.Starship --accept-source-agreements
Copy-Item "C:\Users\aminj\OneDrive\My Software\Choclatey\starship.toml" "C:\Users\aminj\.config"
winget install --id 7zip.7zip --accept-source-agreements
Expand Down

0 comments on commit d401648

Please sign in to comment.