Imagine that you are a software company and host an awesome free piece of software. One day your site is hacked and the download file for your software is replaced with a malicious version of the software. It might be days (or longer!) before you notice. Or what if someone is intercepting traffic and altering … Continue reading SHA256 File Hash Values And How To Check Them (Raspberry Pi / Mac OS X / PowerShell)
Category: PowerShell
PowerShell Core on Mac OS (PowerShell)
PowerShell is an amazing command line, scripting & programming tool that I have used a few times on Microsoft Windows. PowerShell Core is now available for Mac OS and so today I am going to look at installing it on my MacBook. Note: I am installing PowerShell Core onto Mac OS Mojave (specifically Mac OS … Continue reading PowerShell Core on Mac OS (PowerShell)
Move Folders Using Values From CSV (PowerShell)
This evening I came up with a way for PowerShell to move multiple folders depending on names in a CSV. Below I will describe the scenario and my PowerShell scripts coding. Imagine you had a folder structure on your device (or network share) containing folders named after the users that use them e.g. The account … Continue reading Move Folders Using Values From CSV (PowerShell)
Reporting On Folder Permissions (PowerShell)
Over the weekend I was thinking about ways to check which users could access a folder, which lead me into wondering if a report could be run to show multiple folders and save the results. After a little bit of thinking and I had knocked up some PowerShell: The PowerShell uses a variable called $foldername … Continue reading Reporting On Folder Permissions (PowerShell)
Removing Direct Access (Powershell)
Microsoft introduced Direct Access with Windows Server 2008 (R2) for use with Windows 7 Enterprise and Windows 8 Enterprise edition clients, it can also be used on Windows 10. Direct Access is a VPN-like technology that allows clients to connect intranet services (including applications and file shares) via a secure connection over internet, controlled via … Continue reading Removing Direct Access (Powershell)
Testing Network Connectivity via PowerShell (Part 2)
Continuing on with my exploring of testing connectivity I ran into a practical reason today for using Powershell. A computer on my employers network apparently loses network connectivity (according to the end user) during a 2 hour window in the evening. The event logs on the PC don’t indicate any issues and the network logs … Continue reading Testing Network Connectivity via PowerShell (Part 2)
Testing Network Connectivity via PowerShell (Part 1)
Ask any IT user how they test basic network connectivity and the majority of answers will probably mention ping. Ping sends a ICMP (Internet Control Message Protocol) packet to a target and then waits for a reply. If ping shows a reply then there is basic network connectivity, if it doesn't get a reply then … Continue reading Testing Network Connectivity via PowerShell (Part 1)
Powershell to Output Recent Issues
Whilst working on my chat bot I got to thinking about how it would be great if an end user could run a simple script to gather basic information about their computer and came up with the below. It's a script that captures the computers name, model, serial number, RAM, 25 recent errors from … Continue reading Powershell to Output Recent Issues
Downloading Web Files Without A Browser
This evening I'm relaxing and having a play with downloading web files without the need for a web browser, writing my notes as I go. POWERSHELL Powershell allows for an webrequest to save (or outfile) the requested file to a local location. My early attempt at a PowerShell script to do this is: #Two variables … Continue reading Downloading Web Files Without A Browser
BASIC on BBC iPlayer, Changing DNS Settings via Powershell
This week I have been expanding my knowledge by working my way through the modules on freecodecamp.org; it's free coding training so what's not to like? The awesome news this week is that the BBC has added some of it's 1980s archive episodes about BASIC to the BBC iPlayer. Concepts from BASIC are still used … Continue reading BASIC on BBC iPlayer, Changing DNS Settings via Powershell