PeteNetLive https://www.petenetlive.com Technology that 'Just Works' Mon, 19 Oct 2020 11:16:03 +0000 en-GB hourly 1 https://wordpress.org/?v=5.5.1 Adsense: ‘We’ve detected an error on your IAB TC string’ https://www.petenetlive.com/kb/article/0001709 https://www.petenetlive.com/kb/article/0001709#respond Tue, 13 Oct 2020 12:18:05 +0000 https://www.petenetlive.com/?p=15865 KB ID 0001709 Problem A couple of weeks ago I logged into Adsense and saw this; ‘We’ve detected an error on your IAB TC string on one or more of your sites or apps. These errors may affect your ability to serve ads to European users. A detailed report is available for you on the […]

The post Adsense: 'We've detected an error on your IAB TC string' first appeared on PeteNetLive.

]]>
KB ID 0001709

Problem

A couple of weeks ago I logged into Adsense and saw this;

Adsense Issue on your IAV TC String

‘We’ve detected an error on your IAB TC string on one or more of your sites or apps. These errors may affect your ability to serve ads to European users. A detailed report is available for you on the EU user consent page’.

Solution

Well all of that made no sense to me, so I downloaded the report, which is a spreadsheet and it looked like this;

Adsense TCF Error Report

Erm OK, so what’s error 2.1a? well it’s this;

Erro 2.1a TCF

Everything I read didn’t make much sense, and a search of Google revealed a ton of things that made little or no sense to me.

Why Am I Seeing European IAM TC String Errors?

In short: People in Europe are protected by the GDPR. This says, (very basically) that website visitors should be ‘asked’ what their Ad preference, and tracking cookie preferences are, BEFORE the website can show them any ads, or attempt to embed tracking cookies, (like the ones Google uses), on their machines.

This is why you will notice most sites you go to now ask you about cookies and ads the fist time you visit,  you generally then tick a box that says ‘accept preferences‘, or ‘that’s fine‘, and you are bothered no more.

So that’s basically the root cause of the problem. Well I run my website on WordPress so “There will be a plugin for that right?” I tried a few and settled on UniConsent CMP. I installed it, and enabled cover for GDPR, (and CCPA compliance).

Note: Sign up for a free licence, then you can manage everything directly at UniConsent.

Extra Tip: Go To Consent Manager Version 2 > Manage > Fill everything in  > Enable GDPR (For European Countries) > Enable IAB TCF > Select Pop-up Box > Save and Exit (Top right).

Do You Cache Your Website? If so, don’t forget to ‘flush the caches’ at this point.

So That Fixed It Yes?

Sadly no, but because I now manage my CMP online they have a support/chat feature, and I was asked to do the following;

    1. A third party Ad agency I use has their own CMP I asked them to disable that, which they did, (don’t forget flush the caches again!)
    2. I had some embedded code with my Adsense ads that was calling this script;
script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js

I had to remove each instance of that, and put the following code in my websites < HEAD > section; Download Code

The Adsense TCF Error Wont Go Away!

That’s because the errors stay on Google Adsense for 7 DAYS, even if you have fixed the errors, you need to wait 7 days for the errors to stop showing!

Related Articles, References, Credits, or External Links

NA

The post Adsense: 'We've detected an error on your IAB TC string' first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001709/feed 0
VMware: Find Connected ISO’s https://www.petenetlive.com/kb/article/0001708 https://www.petenetlive.com/kb/article/0001708#respond Tue, 13 Oct 2020 08:40:02 +0000 https://www.petenetlive.com/?p=15856 KB ID 0001708 Problem If you want to search your VMware estate to find VMs that have connected CD/DVD ISO files, then here are your best two options; Option 1: Use PowerCLI Whilst connected to your virtual infrastructure (Connect-VIServer) issue the following command; Option 2: Use PowerCLI If you don’t already have RVTools then get […]

The post VMware: Find Connected ISO's first appeared on PeteNetLive.

]]>
KB ID 0001708

Problem

If you want to search your VMware estate to find VMs that have connected CD/DVD ISO files, then here are your best two options;

Option 1: Use PowerCLI

Whilst connected to your virtual infrastructure (Connect-VIServer) issue the following command;

Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }}

Option 2: Use PowerCLI

If you don’t already have RVTools then get it downloaded! One of the many cool things it does, is show ISO data. (On the vCD tab).

Ejecting All Connected VMware ISO files.

If you want to eject all those ISO files you can use the following PowerCLI syntax;

Get-VM | Get-CDDrive | where {$_.IsoPath -ne $null} | Set-CDDrive -NoMedia -Confirm:$False

Note This will not work if a VM is powered off, and you will see a “The operation is not allowed in the current state.” error.

Related Articles, References, Credits, or External Links

NA

The post VMware: Find Connected ISO's first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001708/feed 0
Cannot Open Exchange Management Shell https://www.petenetlive.com/kb/article/0001707 https://www.petenetlive.com/kb/article/0001707#respond Thu, 08 Oct 2020 11:33:37 +0000 https://www.petenetlive.com/?p=15846 KB ID 0001707 Problem When attempting to open the Exchange Management shell you see the following; When this happens you may also see Event ID 258 get logged; Solution I’ve highlighted the most pertinent text in the error messages (above), that being; The user “{Domain/User-Name}” isn’t assigned to any management roles. For once Microsoft error […]

The post Cannot Open Exchange Management Shell first appeared on PeteNetLive.

]]>
KB ID 0001707

Problem

When attempting to open the Exchange Management shell you see the following;

Cannot Open Exchange Management Shell

         Welcome to the Exchange Management Shell!

Full list of cmdlets: Get-Command
Only Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help **
Get general help: Help
Get help for a cmdlet: Help  or  -?
Exchange team blog: Get-ExBlog
Show full output for a command:  | Format-List

Show quick reference guide: QuickRef
VERBOSE: Connecting to {mail server}
New-PSSession : [{mail server}] Processing data from remote server {mail server} failed with the
following error message: [ClientAccessServer={mail server}BackEndServer={mail server},RequestId=f092f550-6451-
4dea-820d-20322101874a,TimeStamp=08/10/2020 09:24:58]
[AuthZRequestId=eb185d5f-6a49-471f-9267-ad0ce9231d0f][FailureCategory=AuthZ-CmdletAccessDeniedException] The user
"DOMAIN/{User-Name}" isn't assigned to any management roles. For more information, see the
about_Remote_Troubleshooting Help topic.

When this happens you may also see Event ID 258 get logged;

Event ID 258

Log Name:      Application
Source:        MSExchange RBAC
Date:          {date} {time}
Event ID:      258
Task Category: RBAC
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      {Mail Server}
Description:
(Process 9680, PID w3wp.exe)"RemotePS Public API Func GetApplicationPrivateData throws Exception Microsoft.Exchange.Configuration.Authorization.CmdletAccessDeniedException: The user "{Domain/user-name}" isn't assigned to any management roles.

Solution

I’ve highlighted the most pertinent text in the error messages (above), that being;

The user “{Domain/User-Name}” isn’t assigned to any management roles.

For once Microsoft error messages are actually quite descriptive and helpful! The user that you are attempting to open the Exchange Management Shell with does not have the Exchanger administrative rights to do so! Typically to manage Exchange you need to be a member of the ‘Organization Management’ group, (my Englishness OCD hates that spelling!) Exchange Organizationla Managment

So, (obviously using your administrative account NOT you normal user account ;P ) Add yourself to that group.

Add User To Exchange Organizationla Managment

Remember, granting rights via a ‘group‘ means you will have to log off, and then back on again, before you actually get those rights.

Related Articles, References, Credits, or External Links

NA

The post Cannot Open Exchange Management Shell first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001707/feed 0
Can I ‘Shrink’ My Exchange Database? https://www.petenetlive.com/kb/article/0001706 https://www.petenetlive.com/kb/article/0001706#respond Tue, 06 Oct 2020 15:23:06 +0000 https://www.petenetlive.com/?p=15833 KB ID 0001706 Problem Saw this asked in a forum today, and my response was; It never gets smaller, if you delete things out of it, it just creates more ‘whitespace’ within the database, unless you; a) Take it offline, and defragment it using eseutil. b) Move the mailboxes out of it, to another database […]

The post Can I 'Shrink' My Exchange Database? first appeared on PeteNetLive.

]]>
KB ID 0001706

Problem

Saw this asked in a forum today, and my response was;

It never gets smaller, if you delete things out of it, it just creates more ‘whitespace’ within the database, unless you;

a) Take it offline, and defragment it using eseutil.
b) Move the mailboxes out of it, to another database and delete it.

Which is true, but even Microsoft say you should not need to defragment a database! Before you do anything make sure you have a good backup of Exchange and the mailbox databases!

Defragment an Exchange Database

Stop! Why are you doing this, if it’s because you are running out of room, then migrating mailboxes out of a database into another database, on another piece of storage with more room is what you should be doing, and does not involve long periods of downtime!

If you have just deleted hundreds of GB from a mailbox database, and you simply want to compress the DB, and you have a BIG window for downtime, (allow 1 hour for every 9GB of database size). Then you are in about the only use case scenario I can think of to want to do this!

Before You start: This process creates a temporary mailbox database, (you need to tell it where), if you are pressed for room, I suggest you add another volume/drive and put it there. (Though in my example I have room in the same folder). Allow for the entire database’s existing size plus ten percent to be on the safe side.

Let’s have a look, and see how  much room we might be able to reclaim (whitespace);

Get-MailboxDatabase -Status | Select Name, DatabaseSize, AvailableNewMailboxSpace

The database has to be dismounted before you can run Eseutil on it (downtime starts here).

Dismount –Database Database Name

Eseutil /d C:\Folder\DatabaseName.edb> /t T:\Folder\TempDB.edb>"

When complete, mount the datastore again, (downtime ends here).

Mount-Database Database Name

Mount Exchange Database

Hopefully you should see the whitespace has decreased.

Show whitespace Exchange after eseutil

Don’t forget to set off a full backup of the store as soon at it’s back online.

Move Mailboxes To Another Exchange Database (To Reclaim Space)

This is the much more elegant solution, create a shiny new database move everything  from the old database into the new one, and delete the old database.

Will This Impact My Users? Any user using their mailbox while it is getting moved wont be affected, until the move is complete then they will see a popup that looks like;

Administrator Change Restart Outlook

The Microsoft Exchange administrator has made a change that requires you quit and restart Outlook.

Cool eh! So lets start by creating a New Mailbox Database.

New-MailboxDatabase -Name New Database Name -EdbFilePath C:\Folder\DB-Name.edb -LogFolderPath C:\Folder\Folder\

Exchange Create New Database

Make sure you follow the advice and restart the information store, (yes you can mount the new DB and proceed, but Exchange does not allocate the resources correctly if you do this).

Restart-Service MSExchangeIS

Powershell Restart Information Store

Let’s move our ‘Normal’ mailboxes to the new DB.

Get-Mailbox -Resultsize Unlimited | New-MoveRequest -TargetDatabase Target Database Name

Move All Mailboxes to Another Database

Depending on how many (and how large) mailboxes there are this can take a while, (days for large databases!) When they’ve all completed you need to remove the  move requests, (if you have any failures, or speed issues use the search box above, I’ve had to cope with thousands of these things not working correctly in my time!)

Let’s assume we are all moved, so we want to remove the move requests.

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest

Remove all move requests

Now let’s see if we have any Arbitration Mailboxes, we do so let’s shift them;

Get-Mailbox -Database Source Database Name -Arbitration

Get-Mailbox -Database Source Database Name -Arbitration | New-MoveRequest -TargetDatabase Target Database Name

Move Arbitration Mailboxes

Again, when complete, remove the move requests.

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest

Remove Arbitration Mailbox move requests

Now let’s see if we have any Auditlog Mailboxes, we do so let’s shift them;

Get-Mailbox -Database Source Database Name -Auditlog

Get-Mailbox -Database Source Database Name -Auditlog | New-MoveRequest -TargetDatabase Target Database Name

Get-MoveRequest | Get-MoveRequestStatistics

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest

Move Auditlog Mailboxes

Now let’s see if we have any Archive Mailboxes, we do NOT so I will skip them, let’s check for Monitoring Mailboxes, we have those so let’s move them;

Get-Mailbox -Database Source Database Name -Archive

Get-Mailbox -Database Source Database Name -Monitoring

Get-Mailbox -Database Source Database Name -Monitoring | New-MoveRequest -TargetDatabase Target Database Name

Move Archive and Monitoring Mailboxes

And clean those up as before.

Get-MoveRequest | Get-MoveRequestStatistics

Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest

emove Archive and Monitoring move requests

Finally let’s see if we have any Public Folder Mailboxes, we have one of those so let’s move that;

Get-Mailbox -Database Source Database Name -PublicFolder

Get-Mailbox -Database Source Database Name -PublicFolder | New-MoveRequest -TargetDatabase Target Database Name

Move Public Folder Mailboxes

We now need to remove the ‘Source‘ Database but first we need to dismount it.

Dismount-Database OLD Database Name

Remove-MailboxDatabase -Identity OLD Database Name

Dismount and delete Mailbox Database

I get an error message saying I cant delete the database.

 

Related Articles, References, Credits, or External Links

NA

The post Can I 'Shrink' My Exchange Database? first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001706/feed 0
Which Firepower To Replace Your ASA 5500-X? https://www.petenetlive.com/kb/article/0001705 https://www.petenetlive.com/kb/article/0001705#comments Thu, 01 Oct 2020 11:50:19 +0000 https://www.petenetlive.com/?p=15779 KB ID 0001705 Problem Well (at time of writing) only the ASA5516-X remains on sale (officially.) You may be able to get stock of the remainder of the ASA5500-X series as people clear their shelves, or they may be available as ‘refurb’ stock but they are disappearing. So you would think that the replacements would […]

The post Which Firepower To Replace Your ASA 5500-X? first appeared on PeteNetLive.

]]>
KB ID 0001705

Problem

Well (at time of writing) only the ASA5516-X remains on sale (officially.) You may be able to get stock of the remainder of the ASA5500-X series as people clear their shelves, or they may be available as ‘refurb’ stock but they are disappearing.

Replace ASA models with Firepower

So you would think that the replacements would be better documented? Well it’s sketchy at best, and when you look a the data sheets for the new FPR range the links on Cisco website go to the wrong place, or give you little or no guidance 🙁

Solution

I’ve put together the following to help, it’s not sanctioned by Cisco, (though I did engage Cisco Partner GVE to assist me. The following table shows FPR models that run ASA code, (not FTD code). I’m not a fan personally of the FTD solution, and I wont be deploying it anywhere for a client. But Standard Asa code keeps my support and network techs happy.

ASA models Compared to Firepower

If you disagree with any of my recommendations, please post below, and (providing your objection is valid,) and I’ll update it accordingly.

Related Articles, References, Credits, or External Links

NA

The post Which Firepower To Replace Your ASA 5500-X? first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001705/feed 8
VMware: Cannot Resize a VMs Hard Drive? https://www.petenetlive.com/kb/article/0001704 https://www.petenetlive.com/kb/article/0001704#respond Wed, 30 Sep 2020 18:08:27 +0000 https://www.petenetlive.com/?p=15769 KB ID 0001704 Problem One of the lads in support messaged me this week, he needed to raise the size of the hard drive on a VM, and the option was greyed out (not available).  Solution Now assuming you actually have the rights to do this, the problem is ‘nearly always‘ that the ‘disk’ in […]

The post VMware: Cannot Resize a VMs Hard Drive? first appeared on PeteNetLive.

]]>
KB ID 0001704

Problem

One of the lads in support messaged me this week, he needed to raise the size of the hard drive on a VM, and the option was greyed out (not available). 

Solution

Now assuming you actually have the rights to do this, the problem is ‘nearly always‘ that the ‘disk’ in question has an active snapshot on it. Remove your snapshots first.

VMware Delete Snapshots

Now you can raise the size.

VMware Resize VM Drive

Don’t forget: In your OS you will then need to increase the volume size to accommodate the additional space!

Related Articles, References, Credits, or External Links

Resizing (Shrinking) Drives With VMware Standalone Converter

The post VMware: Cannot Resize a VMs Hard Drive? first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001704/feed 0
Exchange 2019: How Many CALs/SALs Do You Need? https://www.petenetlive.com/kb/article/0001703 https://www.petenetlive.com/kb/article/0001703#respond Mon, 28 Sep 2020 11:28:18 +0000 https://www.petenetlive.com/?p=15759 KB ID 0001703 Problem At his point I’m going to assume you know that there are Standard Exchange CALs/SALs, and Enterprise Exchange CALs/SALs. And you know the difference! If you’re unsure see my comments here.  With older versions of Exchange 2010/2007 etc. You could get this information from the GUI. Now you need to use […]

The post Exchange 2019: How Many CALs/SALs Do You Need? first appeared on PeteNetLive.

]]>
KB ID 0001703

Problem

At his point I’m going to assume you know that there are Standard Exchange CALs/SALs, and Enterprise Exchange CALs/SALs. And you know the difference! If you’re unsure see my comments here

With older versions of Exchange 2010/2007 etc. You could get this information from the GUI. Now you need to use some PowerShell.

Solution

The two commands you want to use are;

Find Out How Many Exchange Standard CALs / SALs Are Required

Get-ExchangeServerAccessLicenseUser -LicenseName (Get-ExchangeServerAccessLicense | ? {($_.UnitLabel -eq "CAL") -and ($_.LicenseName -like "*Standard*")}).licenseName | measure | select Count

Find Out How Many Exchange Enterprise CALs / SALs Are Required

Get-ExchangeServerAccessLicenseUser -LicenseName (Get-ExchangeServerAccessLicense | ? {($_.UnitLabel -eq "CAL") -and ($_.LicenseName -like "*Enterprise*")}).licenseName | measure | select Count

Sit back, light your pipe, and admire your handiwork!

What About CALS for Exchange 2010?

That you can get from the EMC (if it says Unknown click the option to refresh at the bottom).

Related Articles, References, Credits, or External Links

NA

The post Exchange 2019: How Many CALs/SALs Do You Need? first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001703/feed 0
Windows Server 2019 (&2016): Enable Flash https://www.petenetlive.com/kb/article/0001484 https://www.petenetlive.com/kb/article/0001484#comments Thu, 24 Sep 2020 11:20:29 +0000 https://www.petenetlive.com/?p=10807 KB ID 0001484 Problem Back in server 2012 this was an easy fix; Windows Server 2012 – Enable Flash However try and do that on Server 2019 or 2016 and this happens; Solution Note: You need Server Datacenter version to do this. If you o to the flash website and it (wrongly,) thinks you are […]

The post Windows Server 2019 (&2016): Enable Flash first appeared on PeteNetLive.

]]>
KB ID 0001484

Problem

Back in server 2012 this was an easy fix;

Windows Server 2012 – Enable Flash

However try and do that on Server 2019 or 2016 and this happens;

Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\administrator.PNL> Install-WindowsFeature Desktop-Experience

Install-WindowsFeature : ArgumentNotValid: The role, role service, or feature name is not valid: ‘Desktop-Experience’. The name was not found. At line:1 char:1 + Install-WindowsFeature Desktop-Experience + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (Desktop-Experience:String) [Install-WindowsFeature], Exception + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

Success Restart Needed Exit Code Feature Result ——- ————– ——— ————– False No InvalidArgs {}

PS C:\Users\administrator.PNL>

Solution

Note: You need Server Datacenter version to do this.

If you o to the flash website and it (wrongly,) thinks you are using Windows 10 (we it’s the same code, I’ll let them off,) and it also says “it’s already installed just enable it”, but it’s not there?

Flash Missing Server 2016

You need to install it with the following command;

Server 2019

dism /online /add-package /packagepath:”C:\Windows\servicing\Packages\Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.17763.1.mum”

Install Flash on Server 2019

Server 2016

dism /online /add-package /packagepath:”C:\Windows\servicing\Packages\Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.14393.0.mum”

Install Flash on server 2016

You will then need to reboot!

Post reboot, you will see Windows Server will now download updates for Flash, and it’s enabled.

Related Articles, References, Credits, or External Links

NA

The post Windows Server 2019 (&2016): Enable Flash first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001484/feed 2
Safari: Not Showing all Bookmarked Favourites https://www.petenetlive.com/kb/article/0001702 https://www.petenetlive.com/kb/article/0001702#respond Mon, 21 Sep 2020 08:45:37 +0000 https://www.petenetlive.com/?p=15729 KB ID 0001702 Problem Recently my Safari browser on my MacBook updated, somehow this managed to break Microsoft Edge, a reboot fixed that. The problem was, it was now only showing a ‘reduced‘ number of bookmarks from my favourites, (only 24 bookmarks) i.e. Even if I clicked in the navigation bar, (only 12 bookmarks) from […]

The post Safari: Not Showing all Bookmarked Favourites first appeared on PeteNetLive.

]]>
KB ID 0001702

Problem

Recently my Safari browser on my MacBook updated, somehow this managed to break Microsoft Edge, a reboot fixed that. The problem was, it was now only showing a ‘reduced‘ number of bookmarks from my favourites, (only 24 bookmarks) i.e.

Bookmarks Dissapeared Safari

Even if I clicked in the navigation bar, (only 12 bookmarks) from my favourites;

Safari not showing all bookmarks

 

Solution

A Google search didn’t turn up the answer, clicking on the setting logo on the home page didn’t offer any clues, neither could I find any settings in ‘Preferences’ that might have fixed it.

I found the answer quite by accident, there is an option to  ‘show more‘, but it’s hidden unless you hover over/near it. 

Safari show all bookmarks

And

Safari Show More Bookmarks

Everything is back where it belongs!

Related Articles, References, Credits, or External Links

NA

https://www.petenetlive.com/KB/Article/TechTerms#HERE!

The post Safari: Not Showing all Bookmarked Favourites first appeared on PeteNetLive.

]]>
https://www.petenetlive.com/kb/article/0001702/feed 0
Hard Drive Full? https://www.petenetlive.com/kb/article/0000012 Thu, 10 Sep 2020 09:30:44 +0000 http://www.petenetlive.com/hard-drive-filling-up-find-out-whats-hogging-your-hard-drive/ KB ID 0000012 Problem The fact that I’m going back to re-write article 0000012, should tell you this is an omnipresent problem! Either very suddenly, or slowly over time you have a drive or a volume that’s full to bursting point. These days with laptops which have smaller SSD drives it’s a common problem. I’ve […]

The post Hard Drive Full? first appeared on PeteNetLive.

]]>
KB ID 0000012

Problem

The fact that I’m going back to re-write article 0000012, should tell you this is an omnipresent problem! Either very suddenly, or slowly over time you have a drive or a volume that’s full to bursting point. These days with laptops which have smaller SSD drives it’s a common problem.

I’ve seen literally hundreds of post in forums, most of them are answered with ‘Use WinDirStat’, or ‘Use TreeSize’. Techies seem to be a fan of one or the other, and stick with the tool that’s served them best.

What If There’s No Room To Install Either Of these?

Good point, then you can use PowerShell, I’ll cover that below also. Well I said everyone has a favourite solution, here’s mine,

WinDirStat

My weapon of choice, install it and give it the drive you want to analyse;

Hard Drive Full

When it’s finished, you will see something like this;

Hard Drive Filling up

So you get a graphical representation of the drive, and you can see TWO things straight away, firstly you can spot large files, click on them and it will tell you what they are. Secondly it groups ‘Types’ of files together, if you just look at folder sizes it can be misleading e.g. The ‘red’ files above are my MP3 Collection, I know that folder is massive and I expect it to have a lot of stuff in it. But in some cases this is great! e.g. If your IIS server is churning out logs and theres a folder with millions of them in it, you will spot it straight away.

Why Do I Prefer This? I prefer the graphical front end, I can send a screen shot to client, and they understand what’s happening, and it’s always been free. (There is a free version of TreeSize in fairness). I just like this one.

TreeSize

Once you’ve installed simply select the drive in question,

You can then drill down folders which are sized based on usage. One thing I do like about TreeSize is, it knows the difference between file size and actual size, and you can swap views accordingly. But I’ve included it here so every-time I post this article link in a forum, you can see both and make your own mind up.

PowerShell

This is really a PowerShell version of using the same approach TreeSize uses. You need a PowerShell plugin called PSFolderSize, then simply navigate to the the drive in question and run Get-FolderSize.

Install-Module PSFoldersize
cd {Drive-Letter}:
Get-FolderSize

PowerShell Hard Drive Full

You can then drill down {cd folder-name} one at a time repeating the same command.

PowerShell Diagnose Hard Drive Full

 

Related Articles, References, Credits, or External Links

NA

The post Hard Drive Full? first appeared on PeteNetLive.

]]>