This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
$arguments = "& '" +$myinvocation.mycommand.definition + "'" | |
Start-Process powershell -Verb runAs -ArgumentList $arguments | |
Break | |
} | |
$status = (-Not (Get-MpPreference).DisableRealtimeMonitoring) | |
Set-MpPreference -DisableRealtimeMonitoring $status | |
$status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# login in windows store | |
######## install and reload ######## | |
winget install scoop | |
winget install vscode | |
#################################### | |
winget install Microsoft.WindowsTerminal | |
winget install cpu-z | |
winget install SlackTechnologies.Slack | |
winget install mozilla.firefox |
OlderNewer