How to find current Exchange Web Services (EWS) Url

If you need the URL of Exchange Web Services (EWS) on your infrastructures, with outlook running, hold CTRL and right-click on Outlook icon on Notification Bar. Select “Test E-mail Autoconfiguration…”. Click on “Test” button. When the test is finished, on “XML” tab you will find something like this:

<EwsUrl>https://mydomain.local/EWS/Exchange.asmx</EwsUrl>
<EmwsUrl>https://mydomain.local/EWS/Exchange.asmx</EmwsUrl>

How to share a VM with Gnome Boxes

By default Gnome Boxes use qemu:///session instead of qemu:///system because make desktop integration easier avoiding permission issues.

But if I what to share the same VM on the same desktop with another user (my wife), “qemu:///session” and “SELinux” can be an issue. On Fedora sVirt and SELinux is enabled by default. This make impossible to run the same VM from different user (not at the same time) due to Dynamic Resource Labeling.

The easiest solution I’ve found was to disable SELinux only for the domain “virt_t”.

First export your VM settings (if you already have a VM):

virsh dumpxml sharedVM > sharedVM.xml

Then move the VM image to a folder that both users can access (and write). In my case:

/home/Public/VMs

Set the owner and permission to the new VM folders:

chown root:users /home/Public/VMs

chmod 777 /home/Public/VMs

..and update sharedVM.xml according to the new path.

Import the exported VM on both users. Run this command for both account:

virsh create sharedVM.xml

Set Virt Domain in Permissive mode:

semanage permissive -a virt_t

Now you can start sharedVM with either one of the two users.

 

Via: http://blog.wikichoon.com/2016/01/qemusystem-vs-qemusession.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/ch07s02.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Working_with_SELinux-SELinux_Contexts_Labeling_Files.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Security_Guide/sect-Virtualization_Security_Guide-sVirt-Labels-Static_Configuration_without_Dynamic_Resource_Labeling.html
http://www.ibm.com/support/knowledgecenter/linuxonibm/liabp/liabpsecsvirtstatic.htm

How to change Network Location in Windows 10

The easiest option is to use powershell. Open powershell with admin rights.

Get Network Name with this command:

Get-NetConnectionProfile

The result on my case…

Name : Network 4
InterfaceAlias : Ethernet
InterfaceIndex : 3
NetworkCategory : Public
IPv4Connectivity : Internet
IPv6Connectivity : NoTraffic

Check the Name and the NetworkCategory.

Change the NetworkCategory (Location) from Public to Private with:

Set-NetConnectionProfile -Name “Network 4” -NetworkCategory Private

How to user START with spaces in the path

To run START builtin command launching a program with space on path is not enough to put the path in quotes but you should add also the TITLE.

On this example you are launching Internet Explorer without specify nothing on Title (first quotes):

start “” “C:\Program Files\Internet Explorer\iexplore.exe”

ERROR: Task Scheduler failed to start – Error Value: 2147942667

On task history you will find these 2 errors:

Event 103: Task Scheduler failed to start instance “{…}” of “…”  task for user “…”.
Additional Data: Error Value: 2147942667.

Event 203: Task Scheduler failed to launch action “…” in instance “…” of task “…”.
Additional Data: Error Value: 2147942667

Error code 2147942667 means that directory name is invalid. If you are sure to have typed correctly the path, check that on “Start In” field the path is written without quotes.

The path on “program/script” field must be surrounded by quotes if it contains spaces; the path on “Start In” field must not be surrounded by quotes.

How to Schedule Automatic Updates on Ubuntu Server 16.04

If is not there install unattended-upgrade package:

sudo apt-get install unattended-upgrades

or simply reconfigure the package:

sudo dpkg-reconfigure unattended-upgrades

If needed, configure the proxy for apt:

 echo ‘Acquire::http::Proxy “http://%5B2001:db8:abcd:3f0d::1]:8123/”;’ | sudo tee –append /etc/apt/apt.conf

Then edit /etc/apt/apt.conf.d/10periodic configuring when update, upgrade and autoclean should run:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Download-Upgradeable-Packages "7";
APT::Periodic::AutocleanInterval "14";
APT::Periodic::Unattended-Upgrade "7";

Edit /etc/apt/apt.conf.d/50unattended-upgrades changing the setting for what kind of update you what to apply and when the machine should reboot:

// Automatically upgrade packages from these (origin:archive) pairs
Unattended-Upgrade::Allowed-Origins {
        "${distro_id}:${distro_codename}-security";
        "${distro_id}:${distro_codename}-updates";
//      "${distro_id}:${distro_codename}-proposed";
//      "${distro_id}:${distro_codename}-backports";
};

// Automatically reboot *WITHOUT CONFIRMATION*
//  if the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true";

// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
//  Default: "now";
Unattended-Upgrade::Automatic-Reboot-Time "02:00";

If you what to run unattended-upgrade one a week only for example on Saturday…

touch -t 201608200200 /var/lib/apt/periodic/upgrade-stamp

Via: https://help.ubuntu.com/16.04/serverguide/automatic-updates.html
https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo
http://serverfault.com/questions/454510/debian-running-unattended-upgrades-on-a-particular-day-of-the-week/547740