Linux Failed to fetch when using apt-update (404 not found) If you have let slip your patching routine with Ubuntu you can find yourself in a position where you can't get any updates or upgrade to the next release. Backup your existing sources.list file: sudo cp /etc/apt/sources.list /etc/apt/sources.
Windows Set MTU value for Windows 10 Open your terminal of choice and list the interfaces available: netsh interface ipv4 show subinterfacesLooking at the list find the name of the interface you want. In my example its Ethernet0: netsh interface ipv4 set subinterface "Ethernet0" mtu=9000 store=persistentThe default MTU value
Palo Alto Force a failover from Active to Passive on Palo Alto firewalls From the CLI: request high-availability state suspendFrom the GUI: Device > High Availability > Operational Commands – click Suspend local deviceDon't forget to enable the device again otherwise it won't be in the HA pool.
Linux Network configuration from CLI Find the interface you want using either command: netstat -iifconfigUpdate the interface with your config (in this example eth0): sudo ifconfig eth0 10.1.1.6 netmask 255.255.255.0Now set the default gateway using the following command (same interface as before): sudo
raspberry pi Chromium kiosk mode on raspberry pi From the terminal (or SSH): mkdir /home/pi/.config/autostartCreate the config file and enter the following: nano /home/pi/.config/autostart/kiosk.desktop[Desktop Entry] Type=Application Name=Kiosk Exec=/home/pi/kiosk.sh X-GNOME-Autostart-enabled=trueCreate the script the Pi will run at
Dell Access Dell iDRAC using SSH Connect to the iDRAC IP using an SSH client and login using the username and password of the iDRAC console. To soft reboot the server the iDRAC is connected to just run the following commands: /admin1->cd system1 /admin1->reset If you
Office365 Litigation Hold - Recoverable Items quota Placing a mailbox on an indefinite hold means that mail items meeting the hold requirements will never be removed from the mailbox. This can result in the mailbox exceeding the Recoverable Items Quota, which could make the mailbox unusable or have strange errors (getting
ESX Enabling maintenance mode via esxcli In the odd occasion when you need to enable this function from the CLI: Enter maintenance mode: esxcli system maintenanceMode set --enable trueExit maintenance mode: esxcli system maintenanceMode set --enable false
Palo Alto Accessing a new Palo Alto Out of the factory the Management port is set to a static address of 192.168.1.1 Connecting your laptop and setting a manual IP on the same range allows you to access this interface. The default credentials are admin for both username
APC Reset an APC AP9630 / AP9631 Having had the web interface error out the management card of the APC device could not be rest using the GUI. Since breaking out a serial cable is too much
Office365 Connect to Office365 If you haven't done this already you need to install the necessary modules: Install-Module MSOnlineThis is the snippet of code I usually run to quickly connect to O365. function Connect-O365 { $UserCredential = Get-Credential -UserName "username@domain.eu" -Message "Username has to be in the format
Apple MacBook can access the internet but no webpages resolve Fix issues with Mac not being able to resolve webpages.
Office365 Discrepancy in Outlook Desktop and OWA for Shared Mailboxes If an incoming email is flagged with "Sensitivity: Private" then due to how Microsoft define permissions these emails won't be visible to all users in a shared mailbox. If you are not the owner of the mailbox then you need to do this via
Windows Generate detailed battery report Elevate your permissions (CMD/PowerShell whatever)... In your chosen shell type: powercfg /batteryreport /output "C:\battery-report.html"You can then open the report in any browser you wish. There is a lot of information contained within this report so it can appear a little
Cisco Useful Cisco Switch Commands Login to the a Cisco Switch using your credentials via Putty or any SSH Client. Command: show interface status Shows description, connected/not-connected, assigned VLAN Command: show interface [port number]
SCCM Diskpart commands device deployment Use the following commands if imaging fails. Open up command prompt by pressing F8 on the keyboard: diskpart select disk 0 clean convert gpt create partition efi size=200 assign letter=s format quick fs=FAT32 create partition msr size=128 create partition primary
Office365 Create "Room Lists" of meeting rooms in Exchange Connect to Office 365: Build a variable with all the rooms you want to include in the list: $RoomAlias = Get-Mailbox -RecipientTypeDetails RoomMailbox -Filter {Name -like '*<name>*'} | select -ExpandProperty AliasCreate new DistributionGroup as a RoomList and add your rooms as members:
Office365 Find user based on SIP address Connect to Office 365: Get-ADUser -filter * -Properties msRTCSIP-PrimaryUserAddress | where msRTCSIP-PrimaryUserAddress -eq "sip:simon@domain.eu"
Office365 Re-link a mailbox to a user Connect to Office 365: Undo-SoftDeletedMailbox <email address of mailbox> -WindowsLiveID <email address of mailbox> -Password (ConvertTo-SecureString -String '<any password that meets the policy>' -AsPlainText -Force)It's best to NOT do this and just remove the user
Office365 Find a user by its email Alias Connect to Office 365: In this example any user that has a domain.eu email addresses: Get-Mailbox -Identity * | Where-Object {$_.EmailAddresses -like 'smtp:*@domain.eu'} | Format-List Identity, EmailAddresses
Office365 Clear User photo Connect to Office 365: Remove-UserPhoto "<users full name>" -ClearMailboxPhotoRecord
Office365 Add permissions to a mailbox Connect to Office 365: Add-MailboxPermission -Identity "<full name of mailbox owner>" -User "<full name of user you want to grant permissions>" -AccessRights FullAccess -InheritanceType All
Office365 Set a shared mailbox to also store sent emails within it self Connect to Office 365: set-mailbox <mailbox name> -MessageCopyForSendOnBehalfEnabled $true set-mailbox <mailbox name> -MessageCopyForSentAsEnabled $true
Office365 Update Calendar entries to show subject and organisers name Connect to Office 365: Set-CalendarProcessing -Identity <room email address> -DeleteSubject $False -AddOrganizerToSubject $False
PowerShell Search AD Computer for hostname and description In this example EMEA devices with Latitude e7470 in the description field: $Properties = @('Name', 'Description') Get-ADComputer -Filter {Name -like "*EMEA" -and Description -like "Latitude e7470"} -Properties $Properties | Select $PropertiesTo get a count of objects found (after you created the $properties variable above): (Get-ADComputer -Filter