Installing RSAT on Windows 11 With PowerShell

Well, I haven’t posted here for a long time, but Microsoft in their infinite wisdom have moved everything around again and all the old guides now don’t work.

This article explains how to install the RSAT tools from a local source so it doesn’t take an entire working day getting the updates from WSUS or Windows Update. At time of writing, (2026 March 22) It seems to work for Windows 11 24H2 or 25H2.

The short version is that RSAT is no longer part of the Windows install media, and you now have to go and download a separate Languages and Optional Features iso and use that.

TL;DR: Install RSAT from local source.

Download and mount:

  https://software-static.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/26100.1.240331-1435.ge_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso


Then run:

Get-WindowsCapability -Online -LimitAccess -Name Rsat* | Where-Object { $_.State -eq 'NotPresent' } | ForEach-Object { Add-WindowsCapability -Online -Name $_.Name -LimitAccess -source 'D:\LanguagesAndOptionalFeatures' }

You might find the ISO is called SW_DVD9_Win_11_24H2_25H2_x64_MultiLang_LangPackAll_LIP_LoF_X23-69888.iso or 26100.1.240331-1435.ge_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso depending where you download it from (they are identical).

Microsoft keeping things and simple and logical as always.

These are notes purely for my benefit, hopefully it might help you, but no guarantees and I will not help you troubleshoot 🙂

How I picked an uncrackable master password (and remembered it)!

I have got all my passwords in a password manager and now I just remember this one password – it’s a tough one to remember that’s for sure but the good news is that it is possible, the bad news is that this method is not entirely without any sort of effort. Once you’ve done it you won’t have to worry about it again for the rest of your life! Here is how I made remembering an uncrackable password as easy as it can possibly be, but no easier 🙂

Here’s the problem: Even a modest password cracking machine can check 3 billion passwords a second.

Those are unimaginable speeds! Here are the worst case timings for cracking your password via brute force (Trying every possible combination):

                 Lowercase only    Lowercase, Uppercase,
                                   Numbers & Symbols

6 chars or lower < 1 second        < 3 minutes
7 chars          < 3 seconds       < 4 hours
8 chars          < 1 minute        < 16 days
9 chars          < 30 minutes      < 4 years
10 chars         < 13 hours        < 368 years
11 chars         < 6 days          < 33,000 years
12 chars         < 1 year          A stupidly long time
13 chars         < 26 years        A stupidly longer time

However! This all assumes you are using a completely random string of symbols, and not using any real words or phrases.

If you use a word or a string of words in a phrase, all bets are off. Even relatively obscure phrases from that book no-one has ever heard of that you read when you were 8 has been indexed and is in the arsenal of the hacker and this weakens even long passwords immeasurably.

Let me make that more concrete. At 3 billion checks per second, they can check every sentence Shakespeare ever wrote in 3/100,000 of a second. That’s 0.00003 of a second. That’s the time it takes to travel 3 millimetres in an F1 car at top speed!

They could check every sentence from a million authors with the same output as Shakespeare in 30 seconds. Think you are being clever changing an ‘o’ for a zero or an ‘I’ for a ‘1’. Well, wipe that smirk off your face. Everybody does that and it hardly makes a difference.

Us and our tiny little brains are never going to come up with a good phrase that hasn’t also appeared in published literature, or a film script or isn’t otherwise widely quoted. So we’re just going to have to mix it up a bit.

The method I propose has enough structure to help you remember it, but also enough random elements to make it impossible to hack.

So we first need a random number generator. Google has a good enough one built in:

https://www.google.com/search?q=random+number+generator

and the list of top 100000 words:

https://gist.github.com/h3xx/1976236

  • On the number generator set the Min to 20,000 and the Max to 100,000, and generate 4 numbers. Find the corresponding word in the list. In your browser press Ctrl+F and type your first number in to go to that line. (My browser kept crashing doing that, so eventually I pressed the “Raw” button and copy pasted into notepad and used Ctrl+G to goto Line number {whatever}.)

If you don’t like the word or it’s too long or looks difficult to type, choose another one off the page but don’t scroll anywhere or you’ll lessen the critical random aspect.

  • Repeat 4 times to get four words such as: racing brittle sign steed.
  • Write the words together.
racingbrittlesignsteed
  • Now capitalise two letters, but not ones that start any word
racIngbriTtlesiGnsteed
  • Now hide a symbol in there, again, not a the beginning, end or between words. Feel free to pop it where it feels natural to type (This is where we try to make life easy for you, after all if you are going to remember this mega-strong password, we need to make it as easy as possible in other ways!)
racingbri#TtlesiGnsteed
  • Now stick a number or two in there and hide it in the same way you hid the symbol
racingbri#TtlesiGnste47ed
  • Now if you want, you can take some lowercase letters out – keep the whole thing more than 12 letters as a minimum. Try typing it and remove any letters that are hard to type or have you stretching on the keyboard.
    I removed the vowels from racing because it made the hand movements easier just to type rcng, and ‘br’ from brittle, and a bit from sign and steed
rcngri#TtlesiGt47ed

Done! That leaves us with a 19 char password which is impossible to crack but I can remember because of the original four words, and is easyish to type because I have manipulated it to be so.

Now practice! Despite our best efforts it’ll feel slightly unnatural because the letter pairing won’t always be familiar, but in your head, chunk it into sections to type.

Open notepad and type it again and again, checking you got the right spelling each time. The chunks you should use will present themselves to you as you type it out repetitively.

I would chunk this one like this:

rcngri_____#Ttlesi_____Gt47ed

And in my head I’d be saying this

“racingry hashtag capital-Tee-tee lezzy capital-Gee-Tee 47 e d”

It has an almost rhythmic quality to it saying it like this and chunking it to “words” of 6,7 & 6 chars it’s a lot easier to remember. For reference, to brute force this would take up to 143 Quintillion years. Of course, the average time will be half that but even if they reduced it by a factor of 10 million it would still be 14billion years. Balls on the line here: I say that if you can put the effort in to do this, then any resultant password will be uncrackable.

I chose my own master password using this method, and I spent perhaps two lots of 10 minutes typing it out in notepad the first day. Then I set a reminder to check myself on it for the next few days, and do you know what? It sunk in pretty quickly, certainly much easier than I feared! On just the second day I was convinced I had remembered it, so I changed my master password and now feel a lot happier that my LastPass account is much safer than it was.

Couch to 5k too hard.

So, I recently got a friend to try couch to 5k and get her into running. Off we went to the gym and it quickly became apparent that even at moderately above walking pace, the first week was still just a bit too intense for her. I didn’t want her to be put off so I went away and put together a programme which would give a bit of a build up to the first week of c25k, and this is what I came up with.

It seems that anyone who has ever run-for-fun can’t imagine anyone possibly struggling with week 1 of C25K, but, having a quick google, it seems a lot of people suffer the same problem. This programme will take you from zero to C25K as long as you can at least walk for 15 minutes uninterrupted. My friend picked this up from level -3 but you can jump in wherever you feel comfortable.

Getting Started
—————
Almost everyone should have a level they can start at, you don’t need to start at the beginning, have a look at the intervals below and pick one that works for you. If it is too hard, don’t sweat it, drop a level for your next run. If you level up and find it too hard for whatever reason, don’t be afraid to repeat that week three, four or more times until you can smash it out easy! You are only racing against yourself, there’s no prizes for completing it in record time, there’s only a booby prize if you push yourself too hard and don’t get to the end!

Tips
—-
So, if you use this, good luck! The most important thing is: Take it easy and DON’T KILL YOURSELF! It should be a fun, pleasurable experience, and if you ever hear anybody say something like “no pain, no gain” in relation to training you have my permission to shoot them. You should be breathing quite deeply during the running but you should never be struggling for breath – you can up the intensity later once your body has adapted to moving properly. You should easily be able hold a conversation while jogging – if you can’t, you’re going too fast. Find your pace, and if you want a bit of a blast, push a little extra hard but ONLY in the last running segment. I would recommend that if possible run on grass or a treadmill – pavements and roads can be exceptionally hard on your joints and if you’re using this course, you will need to build up those muscles before they will take the punishment of running on concrete. Also, you don’t really need special running shoes, although they are a good idea if you can afford them. It’s more important to begin with that you are moving about, any trainers will probably be fine as long as they have a nice spongy heel (which most trainers do). Having said that, if you have any discomfort in your legs or feet while running then stop immediately – it might be that you need shoes with a certain sort of support, or it might be a medical thing. Your doctor will help you work out what’s wrong, don’t push through the pain trying to be a hero!

Do not worry about anyone else, no matter what shape you’re in no-one is thinking bad of you, in fact whenever I am out running and see someone giving it a go I always think good for them and well done. There are a few morons about unfortunately, we’ve all encountered them at one time or another, if you come across any, rest assured that by the time you have hit your 5k goal, they will probably be hanging out in a young offenders institution 🙂

There is very little running to begin with and you will struggle to build up any body heat, make sure the weather is warm enough (or you’re indoors) when starting out. Also as the build up is soooo gentle, instead of 3 runs a week, we did a schedule of “Run / Day Off / Run / 2 Days Off / Next Level”. If you do that you will complete all the levels in 42 days, although some days will be weekend days but that’s a good habit to get into! Finally, and I can’t stress enough, PLEASE do not push too hard, just concentrate on running at the slowest speed you can get away with and still call it running! Now load up your music player, find a playlist of your favourite tunes, stick on your jogging bottoms and lace up your trainers! Let’s go smash this!

Zero-C25K

Schedule
——–
Level -6: Just a solid 15 minute walk – no running! Walk 7.5 minutes in one direction, then turn around and walk home. Walk a little over your normal pace but not much. Total exercise time 15m
Level -5: 5 Minute warm up walk, 30 seconds run, 5 minute recovery walk, 60 seconds run, 5 minute recovery walk, 30 seconds run. Total running 2 Minutes, Total exercise time 22m
Level -4: 5 minute warm up walk, 30 seconds run, 5 minute recovery walk 60 seconds run, 5 minute recovery walk, 60 seconds run. 5 minute recovery walk, 30 seconds run, 5 minute warm down walk. Total Running time 3 minutes, Total exercise time 28 minutes.
Level -3: 5 minute warm up walk then do 6 rounds of 30 seconds running and walk for 3 minutes, except at the end when it’s your 5 minute cool down walk. Total running 3.5 Minutes, Total exercise time 31.5m
Level -2: 5 minute warm up walk, 2 lots of a 30 second run + 2 minute recovery, 2 lots of 60 seconds run and 4 minute recovery, 2 more lots of 30 seconds run and 2 minutes recovery, and a final 30 second run and 5 minutes cool down. Total running 4.5 Minutes, Total exercise time 30.5m
Level -1: 5 minute warm up walk, 30 seconds run 2 mins recovery, 60 second run 90 seconds recovery, 60 second run 4 minute recovery, 60 second run 4 mins recovery, 30 second run 2 min recovery, 30 second run 2 mins recovery, 30 second run 5 minute cool down. Total running 5 Minutes, Total exercise time 30.5m
Level ZERO: 5 minute warm up walk, 60 seconds run 90 seconds recovery, 60 seconds run 4 mins recovery, 60 seconds run, 90 seconds recovery, 60 seconds run 4 minutes recovery, 60 seconds run, 90 seconds recovery, 30 seconds run 2 min recovery, a final 60 seconds run and 5 minute cool down! Total running 6.5 Minutes, Total exercise time 30.5m

Hurrah! Finished! Week 1 of C25K takes up exactly where this leaves off, but the recommended rate is 3 runs before two days off then next level, so Monday Wednesday Friday are running days for example. Each week can be repeated if you’re not quite there at the end.

I hope this helps someone else get up and move! I hope you grow to love running, it really is quite magical the first time you get your pace and your breathing in perfect harmony and you feel like you could be out there all day. Also, runners high is up there with the best drugs I have ever taken, but legal and safe, so that’s something to look forward to 🙂 Organised race days are also lots of fun, I’m always really surprised quite how many people will come out and cheer you on even though they don’t know you from Adam. If you’ve been one of those people, thank you so much! It really helps! So, in summary, go have loads of fun, enjoy the journey as you progress and remember: No matter how slowly you go, you’re always lapping everyone on the couch!

For my records…

How to run a quick and dirty packet trace with netsh:

netsh trace start capture=yes tracefile=c:\Windows\Temp\netshTraces\July18Trace.etl

Hacking Cisco Passwords

I am always going to sites where they have old Cisco kit knocking around and often need to get in and configure but nobody knows the password. Of course you can use the config register trick to reset if needed, but sometimes it’s worth trying to retrieve the original password such as if you have hundreds of devices with the same password that need reconfiguring.

If you can access a config file, either a saved copy or by modifying the confreg value of a device at boot, you can often see the encrypted version of the password in the output.

If the password is shown with secret 7 encryption, then it is trivially reversible. Google “Cisco secret 7 decoder” and there are a plethora of websites which will decode it in seconds.

If the password is secret 5 encoded, you will need to dictionary attack or brute force it.

First download a Kali Linux Hyper-V Virtual hard disk: https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-hyperv-image-download/ (Link working as of May 2018)

Hook it up to your Hyper-V, assign as much RAM and CPU as you can spare.

Boot it up and log in with username and password of root / toor

Create a text file with the following attributes: a name for the password you are cracking, a colon, then the encrypted password ending with a forward slash: e.g.

myCiscoPass:$1$plujdbfs$vnsdjfkxlfnwelndvlthtFrege83/

You can put other passwords on other lines if you have a bunch to do, give them all a different friendly name. Save the resulting file as (for example) /secrets.txt

To brute force, run the following command:

john -rules /secrets.txt

To dictionary attack, first unzip the list of words:

cd /usr/share/wordlists
 gunzip rockyou.txt.gz
 cd #

Then run the following command:

john -wordlists=/usr/share/wordlists/rockyou.txt -session=Dictionary -rules /secrets.txt

You can run two different instances of terminal to have john run both a dictionary and brute attack at the same time, obviously it will be at half the speed. Obviously, there are no guarantees how long this will take. If the previous administrator has set strong passwords, well you could be there a while 🙂

PowerBI Desktop won’t connect to SQL in different domain

Just a quick one to check if you have a trust in place and are having trouble getting PowerBI desktop to connect to SQL server. I was getting all kinds of authentication errors despite double and triple checking credentials and permissions. Our issue was that we have a “Selective Authentication” domain trust and the foreign security principle was not authorised to authenticate in the local domain.

To me this doesn’t make sense as, although we are running PowerBI desktop on a Domain-A computer, we are sending Domain-B credentials to the database server in Domain-B, assuming all the authentication would take place over there. However, it seems this is not the case and the Credentials are first passed to Domain-A’s DC. I’m not sure about the mechanics of how the security token is passed, so will take it on the chin that I have to do more reading!

Fix it by granting the Allowed to Authenticate permission for the Domain-B user in Domain-A’s AD. https://technet.microsoft.com/en-us/library/cc816733(v=ws.10).aspx

If it doesn’t apply to you, here’s a few things I found while googling that have fixed various issues for others:

  • Ensure you have connectivity and no DNS issues with a ping to the database server
  • Check that the server firewall is not getting in the way of the dynamic SQL port
  • In PowerBI, specify the port that SQL server is using by entering the server name thusly: Myservername,12345
  • Ensure that the user principle in SQL Management Studio is authorised for remote connections
  • Ensure that the user has permissions mapped to the correct database
  • Try to run PowerBI Desktop as administrator

I’ll leave it as an exercise for the reader to google how to do the above 🙂

PowerShell Script to find Network MTU

This script will continually ping your destination with incrementally larger pings and the Don’t Fragment bit set to find out what your MTU is on the network. It shows at the end the size of the final payload which was rejected in bytes. You need to add on 28 bytes accounting for the packet header to find your MTU. Normal MTU is 1500, so the payload would be 1472 bytes, and the output would show 1473 as the payload size that got rejected.

As usual, remember to clean up the double quotes if copy-pasting as WordPress has a tendency to munge them!

 

$Name = "8.8.8.8"
$Timeout = 1000
$Ping = New-Object System.Net.NetworkInformation.Ping
$PingOptions = New-Object System.Net.NetworkInformation.PingOptions
$Payload = ""

for ($n=0; $n -lt 1415; $n++){

	$Payload = $Payload + "a"

}




for($n=1;$n -lt 10000 ;$n++){

	$Buffer = [System.Text.Encoding]::ASCII.GetBytes($Payload)

	#[System.Text.Encoding]::ASCII.GetString($Buffer)

	$PingOptions.DontFragment=$True

	$Response = $Ping.Send($Name,$Timeout,$Buffer,$PingOptions)
 $Payload = $Payload + "a"
 
 	if($Response.Status -eq "PacketTooBig"){
 
 		$Response.Status 
 		$Buffer | Measure-Object
 		break

	}

Start-Sleep -Seconds 0.5

}

Powershell users not in security group

First post in ages! Been busy with work, yadda yadda.

Anyway here’s a quick one: If you want to find a list of users not in a group, first do

get-adgroup yourGroupName | fl *

Now copy the distinguished name of the group, then  paste it in the where clause with a “notContains”, in my case the group is RedirectedFolders.

get-aduser -filter * -properties * | ?{($_.enabled -eq $true) -and ($_.memberof -notcontains “CN=RedirectedFolders,OU=Groups,DC=Domain,DC=local”)} | fl name

As always, remember to check your double quotes if copy-pasting!

 

 

Something curious about Primes…?

I’m a maths wannabe. I love numbers and the beauty of Maths but I let my studies slide after I left school. Shame. I especially like the prime numbers, they seem so simple and yet enigmatic. The collection looks like it’s bursting with information, as though there’s a pattern there if only we look at them in the right way, yet they have befuddled the greatest of the great minds for millennia. Anyway, I was bored at work one day and while doodling I noticed something about prime numbers that seemed interesting. I’m pretty sure this is just an artefact of the properties of primes with no real meaning but I don’t know why it happens, so I’m throwing it out there in the hope someone can explain.

What I’ve noticed is that for each prime number, the multiples of that number that are not shared with any other primes are powers of that number.

I lack the vocabulary to even explain what I mean but for example:

First few primes are 2, 3, 5, 7, 11, 13…

For the first prime, 2, its multiples are 2, 4, 6, 8, 10, 12, 14, 16… etc.

2 & 4 fit my pattern, 6 does not fit because it is a multiple of the next prime, 3.

8 fits my pattern.

10 does not because it is a multiple of the prime 5.

12 does not because it is a multiple of the prime 3.

14 does not because it is a multiple of the prime 7.

 

16 fits my pattern.

 

And so on.

 

The numbers that fit my pattern for 2 are 2, 4, 8, 16, 32, 64… – the powers of 2.

 

Play the same game for 3.

 

3 fits, 6 does not (multiple of 2). 9 fits, 12 does not (multiple of 2). 15 does not (multiple of 5) and so on.

 

The numbers fitting the pattern are 3, 9, 27, 81… powers of 3

 

This works for 5 too. 10, 15, 20 do not fit, 25 does… 125 does, powers of 5.

 

Does anybody know why this is so? Has this already been explained somewhere and are there any applications for it, or is it blummin’ obvious why this is the case but I can’t see it? I read about the sieve of Eratosthenes and Ulam’s spiral and thought how simple and yet how clever – I’m sure once someone looks at primes in the right way then they will spill all! Please (please, please!) enlighten me in the comments!