Lack of Potatoes
  • Home
  • Archive
  • Vultr Affiliate ($10 on Sign up)

Lack of Potatoes

Because I say it is

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.

  • Simon
    Simon
Simon 15 Jul 2020 • 1 min read
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

  • Simon
    Simon
Simon 26 May 2020 • 1 min read
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.

  • Simon
    Simon
Simon 19 May 2020 • 1 min read
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

  • Simon
    Simon
Simon 7 May 2020 • 1 min read
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

  • Simon
    Simon
Simon 22 Apr 2020 • 1 min read
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

  • Simon
    Simon
Simon 14 Feb 2020 • 1 min read
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

  • Simon
    Simon
Simon 4 Feb 2020 • 2 min read
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

  • Simon
    Simon
Simon 29 Jan 2020 • 1 min read
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

  • Simon
    Simon
Simon 23 Jan 2020 • 1 min read
Reset an APC AP9630 / AP9631
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

  • Simon
    Simon
Simon 16 Jan 2020 • 1 min read
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

  • Simon
    Simon
Simon 5 Apr 2019 • 1 min read
Apple

MacBook can access the internet but no webpages resolve

Fix issues with Mac not being able to resolve webpages.

  • Simon
    Simon
Simon 2 Apr 2019 • 1 min read
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

  • Simon
    Simon
Simon 25 Mar 2019 • 1 min read
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

  • Simon
    Simon
Simon 19 Mar 2019 • 1 min read
Useful Cisco Switch Commands
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]

  • Simon
    Simon
Simon 15 Mar 2019 • 1 min read
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

  • Simon
    Simon
Simon 4 Mar 2019 • 1 min read
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:

  • Simon
    Simon
Simon 1 Mar 2019 • 1 min read
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"

  • Simon
    Simon
Simon 28 Feb 2019 • 1 min read
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

  • Simon
    Simon
Simon 14 Feb 2019 • 1 min read
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

  • Simon
    Simon
Simon 1 Feb 2019 • 1 min read
Office365

Clear User photo

Connect to Office 365: Remove-UserPhoto "<users full name>" -ClearMailboxPhotoRecord

  • Simon
    Simon
Simon 28 Jan 2019 • 1 min read
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

  • Simon
    Simon
Simon 24 Jan 2019 • 1 min read
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

  • Simon
    Simon
Simon 8 Jan 2019 • 1 min read
Office365

Update Calendar entries to show subject and organisers name

Connect to Office 365: Set-CalendarProcessing -Identity <room email address> -DeleteSubject $False -AddOrganizerToSubject $False

  • Simon
    Simon
Simon 4 Jan 2019 • 1 min read
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

  • Simon
    Simon
Simon 28 Dec 2018 • 1 min read
Lack of Potatoes
  • Home
  • Archive
  • Vultr Affiliate ($10 on Sign up)
Lack of Potatoes © 2021
Latest Posts Ghost