How to map a network drive via Group Policy

Map network drive via GP

Map a network drive via group policy is a much easier and faster process than manually or logon scripts. user does not have to wait for the logon script to load or if the network path changes it automatically updates. It makes admin and user’s life much better and makes changes to the network without having to update each user. It should plan out the process, users, or groups it’s going to apply this network drive.

This is my process for this post

  1. File server: FileServ1
  2. Share Name: Accounting
  3. Drive Letter: S
  4. Group that’s applying to: Accounting
  5. how-to-delete-policy

Create a new GPO

Start>Windows Administrative Tools>Group Policy Management

or from Server Manager: Tools>Group Policy Management

Right-click on your OU (Organization Unit) where you want to create and link your Group Policy

Select Create a GPO in this domain, and Link it here …

You will see New GPO, name it whatever you want, something that makes sense, I am going to call it Accounting Network Drive

Configure GPO

Right-click on the Group Policy Object and select Edit

Expand User Configuration>Preferences>Windows Settings
Then right-click on Drive Maps and select New>Mapped Drive

Filling the details

You can see there are many options to select from

Based on select above you will see other options

How to Delete policy

First unlink from OU that’s linked

Then Delete from Group Policy Objects:

If you try to delete while still linked GPO, you will get this message, which also works fine too

That’s it, hope this help others



How to clean up old emails quickly from office 365

email box almost full

One of the very common communication is via emails, they do fill up our Inboxes and some of us don’t have time to clean up, which you can do it automatically or manually.  Just carefully when setting automatically to delete, because we as human beings forget and take automation as a privilege, and sometimes it deletes some things we want to keep as history. Here is how to clean up your old email manually or automatically.

Option 1: Manually

Option 2: Automatically via a set of rule

Option 1: Manually

First, Sign-in to your Office 365 by going to https://outlook.office.com
Once you have signed in go to Gear Icon at the top left then go all the way to the bottom, select View all Outlook settings

View all Outlook settings

You will see another pop-up window

Go to Settings>General>Storage>Then select the folder you want to clean up old emails

Then on the right side, you will have an option to choose from, All, 3 months and older, or 6months and older, or 12 months and older

As, soon as you select the option, it will start deleting your old emails

Note: Items will be permanently deleted

Settings>General>Storage
Storage almost full

After you delete your old email, you will see, the overall size will decrease, in this example, I have deleted Sent Items

After delete old sent Items

That’s it, if you want to set up an automatic rule to delete, you can follow the steps below

Automatically via a set of rule

Once you have signed in go to Gear Icon at the top left then go all the way to the bottom, select View all Outlook settings

You will see another pop-up window

Go to Settings>Mail>Rules>Then click Add New Rule

Settings>Mail>Rules

Name your rule, something like “clean up old email 12 Months and older” or something that makes sense to you.

Name of Rule

Now add a condition

There are so many options, select whatever you like, I am selecting “Before 4/8/2022

Note: you will need to just update the date in the rule later on.

Then select the Action, you want to do, I am selecting “Delete

You can get your emails back from Deleted Items unless the default email deleted policy will clean up have permanently deleted, which most cases 30, 60, or 90 days from the date it was deleted

Also, added an exception so I can keep Importance with “High” or whatever you like.

Once you are happy with everything click Save

That’s it, don’t forget, if you set to delete or whatever condition you have selected, it will automatically do just that, in case later in time you might be wondering what’s happening to my old emails

To change the Date or Turn off the rule, just go to Mail>Rules and click on the pencil icon to change or the Toggle button to turn off.

Double-check all selections before running, because there are no ways to stop, once it started the action you have selected in the rule. If you are unsurely tested on some test account(s).



How to upgrade osTicket to v1.15.4

osTicket v1.15.4

osTicket v1.15.4 is released on October 7, 2021, its open-source ticket system. You can find full release notes at https://github.com/osTicket/osTicket/releases. For osTicket version v1.15.4 PHP version PHP 7.2-7.4 the process is the same as before just make sure you have a good backup of the database and osTicket files. There are many Enhancements, Improvements, and Security from 1.15.1 to 1.15.4.

In this post: upgrade osTicket to v1.15.4:

How to backup osTicket files on Ubuntu

How to backup osTicket database

How to upload osTicket installation files to the server from Windows 10 via PowerShell

The Upgrade process is very simple, I am doing 1.15.1 to 1.15.4

  • Make sure you have a good backup of the Database and files of osTicket
  • Then put the system in the offline mode: by going to the URL of your osTicket support ticket /scp/settings.php
  • Download the new version from https://osticket.com/download/ and choose the osTicket Core, v1.15.4 (Latest Release) don’t download any Languages or plugins, you can add them after to void issues with the upgrade process.
  • Upload to your server v. 1.15.4 and replace current files/folders from the Upload folder from your downloaded, and exclude the script folder/files. Also, Maintain the directory hierarchy any changes could cause an issue with the upgrade process or something might not work well.
    • Optional: Script folder only needed if you are using remote piping, so if you are not using remote piping you don’t need to upload.
  • Make sure NOT to replace your \include\ost-config.php which does not include in the download.

official Plugins can be downloaded and installed after the upgrade

official Documentions can be accessed, which will give you more details

Upgrade Process starts

Here is my current version: v.1.15.1:

Put the system in offline mode:

So, no one accessing the system or making any changes

Download the new version from https://osticket.com/download/

Select the osTicket Core, v1.15.4, then click Next Step

Click Next Step

Language packs, don’t add any at this time, just click Next Step

The Plugins, don’t add at this time, just click Next Step

Then you should see Subscribe to osTicket Mailing Lists, if you already subscribed, you can click on No Thanks and it will start downloading. If you have not subscribed, do filling, so you will get notification of any upgrades and security patches.

Now that you have downloaded, you can upload the installation files the best way you know of and override those that are on the server. If everything goes well you will not see anything, since this version doesn’t have any database changes.

If you look at your Dashboard Information, it should show Up to date

You can look at the system logs to see if there are any errors reported or your web server or PHP logs. You will need to update any customization you may have, test it, then once all is good you can put the system back online. Also, remove the write permission to \include\ost-config.php to secure your config. If you have customized PHP core files, those need to be re-applied after the upgrade. Also, make sure your plugins are good, if a needed upgrade to do so, make sure it supported version. if you don’t see some functions, make sure to check the permissions under Agents>Roles>PermissionsGood luck

There are many ways to backup, upload an osTicket, here is one I used that may help you, otherwise, you are all good to go, enjoy your osTicket system, Thank you to osTIcket Team for making it open source and keeping up to date.

How to backup osTicket files on Ubuntu:

Login to your server and run the following command use -r (copy recursively), and specify a current location and backup location. Note: this command is just doing backup of current osTicket files and dumping to another directory within the same server.

command: sudo cp -r /path/to/directory /path/to/backup-Location/NameOfBackup

How to backup osTicket database:

Login to your server and run the following command, Note: this is doing backup of database and dumping on the same server.

command: mysqldump NameOfosTicketDataBase > backupNameOfosTicket10.11.2021.sql -u SQLuserName -p

When you hit Enter, it will ask to enter a password, once done if you do ls command, you will see backupNameOfosTicket10.11.2021.sql or whatever you named your backup file

How to upload osTicket installation files to the server from Windows 10 via PowerShell:

This is the quickest way to upload and replace files. Please make sure the path is correct, before running the command, when you hit enter, it will ask for a password for your server.

Command: scp -r C:\Users\UserName\Downloads\osTicket-v1.15.4\osTicket-v1.15.4\upload\* userName@IPorFQDN:/var/www/osTicketDirectory

Note: the \* after the upload, if you don’t put * it will create a new directory called upload

After the upgrade, if you don’t see some functions, make sure to check the permissions under Agents>Roles>Permissions



How to check if your computer is ready for Windows 11

Windows 11

Windows 11 system requirements are much higher than Windows 10, which means it will not support older hardware. Here are some lists and links in this post to help you find out if your current system is able to upgrade to Windows 11.

List of all minimum system requirements for Windows 11

Processor: 1 gigahertz (GHz) or faster with 2 or more cores on a compatible 64-bit processor or System on a Chip (SoC).
Memory: 4 GB RAM.
Storage: 64 GB or larger storage device.
System firmware: UEFI, Secure Boot capable.
TPM: Trusted Platform Module (TPM) version 2.0.
Graphics card: Compatible with DirectX 12 or later with WDDM 2.0 driver.
Display Resolution: High definition (720p) display that is greater than 9” diagonally, 8 bits per color channel.
Internet connection: Microsoft account and internet connectivity required for setup for Windows 11 Home.

Your device must be running Windows 10, version 2004 or later, to upgrade. Free updates are available through Windows Update in Settings>Update and Security.

for more details on Windows 11 system requirements: https://www.microsoft.com/en-us/windows/windows-11-specifications

You can download this Check for compatibility

Once you have downloaded compatibility, open it and click on Check now

If your system hardware is newer you should see This PC meets Windows 11 requirements

<!-- wp:paragraph -->
<p>If your system hardware is newer you should see "<strong>This PC meets Windows 11 requirements</strong>"</p>
<!-- /wp:paragraph -->

If you want to see details click on See all results, something like this, your specs will be different

If you have older hardware, you will see something like this: example of this PC does not have Secure Boot enable and Processor does not meet the requirement, most important TPM 2.0, which this PC does not even have.

This PC doesn't currently meet Windows 11 System requirements

You can find more info on Windows 11 https://www.microsoft.com/en-us/windows/get-windows-11 and Frequently asked questions at the bottom of the page

Download Windows 11 ISO: https://www.microsoft.com/software-download/windows11



How to fix boot partition free space in Ubuntu

/boot full

Here is how to free up space in the boot partition in Ubuntu, which may cause issues when trying to update or install a new application. Make sure you have a good backup and be careful running some commands, just double check typo before executing it.

To see If you are running out of boot partition space, run the following command:

command: sudo df -h

You will see how much space is in use, in this screenshot, its /boot is 100% used

/boot 100 used

You can try the following command which may clean automatically for you some unused packages.

command: sudo apt autoremove

If the above command gives you an error, then continue do following steps

find your currently active boot image by running the following command:

Command:  sudo uname -r

Output may look something like this: 4.15.0-143-generic

To list all images except for active:

Command: sudo dpkg –list ‘linux-image*’|awk ‘{ if ($1==”ii”) print $2}’|grep -v `uname -r`

Output:

linux-image-4.15.0-151-generic
linux-image-4.15.0-156-generic
linux-image-4.15.0-158-generic

To list of images:

sudo dpkg -l | grep linux-image

To remove unused images:

The numbers are based on the output command above, so if your version numbers are different, make sure you change them to match your output.

Command: sudo rm -rf /boot/*-4.15.0-{151,156,158}-*

If you run df -h command to see how much space is in use, you will it went down from 100% to 31%:

Now that you have some free space, let’s do some clean-up. If you try to clean up using apt autoremove, you may still get errors like these:

fix broken packages
some packages are broken

To Fix broken packages

You will need to fix the broken packages before you can do any other clean up, run the following command:

Command: sudo apt –fix-broken install

fixing broken packages

Now that broken packages are fixed, then re-run the autoremove command you will be able to free up disk space:

free disk space from unused packages
Freeing up disk space from unused packages

Update your system

Then re-check for any updates and install it to secure your system:

Command: sudo apt update && sudo apt upgrade

You want to see: All packages are up to date

That’s it, hope this helped you out