sábado, 23 de fevereiro de 2019

How to install Brave Browser on Linux Mint 19

curl -s https://brave-browser-apt-dev.s3.brave.com/brave-core-nightly.asc | sudo apt-key add -

UBUNTU_CODENAME=$( (grep DISTRIB_CODENAME /etc/upstream-release/lsb-release || grep DISTRIB_CODENAME /etc/lsb-release) 2>/dev/null | cut -d'=' -f2 )

echo "deb [arch=amd64] https://brave-browser-apt-dev.s3.brave.com/ $UBUNTU_CODENAME main" | sudo tee /etc/apt/sources.list.d/brave-browser-dev-$UBUNTU_CODENAME.list

sudo apt update

sudo apt install brave-browser

sexta-feira, 22 de fevereiro de 2019

How to install Grub Customizer on Ubuntu or Linux Mint

sudo add-apt-repository ppa:danielrichter2007/grub-customizer -y


# getting new info of this new repo
sudo apt-get -y update

# installing
sudo apt-get install -y grub-customizer
# repo for grub-customizer

How to add proxy settings to Linux Mint 19.1

At search bar type:
proxy

Click on network then put your network settings:



quinta-feira, 21 de fevereiro de 2019

How to create a collection based on query based on a Configuration Baseline

Just create a normal collection and do not put any workstations inside.
After, select query and point to your configuration baseline, like this:


SELECT SMS_R_SYSTEM.ResourceID, 
       SMS_R_SYSTEM.ResourceType, 
       SMS_R_SYSTEM.NAME, 
       SMS_R_SYSTEM.SMSUniqueIdentifier, 
       SMS_R_SYSTEM.ResourceDomainORWorkgroup, 
       SMS_R_SYSTEM.Client 
FROM   SMS_R_System 
       INNER JOIN SMS_G_System_DCMDeploymentState 
               ON SMS_G_System_DCMDeploymentState.ResourceID = 
                  SMS_R_System.ResourceId 
WHERE  BaselineID = 
'ScopeId_F1C1683F-1FCE-49E8-8157-2FE966FFC39A/Baseline_64d60164-a57d-4d56-8e7c-2a4748cf7eb2' 
AND CollectionID = 'S0X00XXA' 
AND ComplianceState = 1 

The readable name of the compliance state. Possible values are:

0 Compliance State Unknown
1 Compliant
2 Non-Compliant
4 Error

quarta-feira, 20 de fevereiro de 2019

How to use Hyper-V and Virtualbox simultaneously on the same computer

Its easy:

Open command prompt as administrator and type:

bcdedit /copy {current} /d "Windows 10 (com Hyper-V)"

This will make you create new entry in bcd database, identical to current one.
Next type this:

bcdedit /set {current} hypervisorlaunchtype off

This will make you set the current entry to disable hyper v.
Now you have a menu that will prompt when you login.

At last, but not least:

bcdedit /timeout 3

This is the time menu will be showing.

Thats it!



How to use Powershell script inside SCCM program.

Just use this syntax:

powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File \\local\folder1\folder2\folder3\scripts\Start-PowershellScript.ps1

First create a program with program wizard without this ugly command line, just select script name normally. After the program has been created, in properties panel put the command line.


Decorator Powershell Design Patterns

 Powershell Design Patterns Decorator ```powershell # Classe base 'Beverage' class Beverage {     [string]$description = "Unkno...