Alkane Solutions
Alkane Solutions Fixed-Price Apps | Trusted IT Partner
Alkane Solutions | G-Cloud Supplier Alkane Solutions | Microsoft Partner

Main menu

Skip to primary content
Skip to secondary content
  • Application Packaging Services
    • Why Application Packaging?
    • MSIX Application Packaging Services
    • Application Packaging Service for the NHS
    • Application Packaging for MECM
    • Intune Application Packaging Services
    • Evergreen Application Packaging Services
  • About
    • Team
    • Case StudiesCase studies of the work we have done for our clients.
  • Contact Us
  • Log In
  • Register
  • Submit a Guest Post!
  • Recommended Reading
  • Fixed-Price Quote

Home - PowerShell - Page 6

Powershell scripts used to manipulate the Windows Installer object


Use PowerShell to Block IP Addresses (Fail2ban)

Posted on April 29th, 2023

This blog provides an example of how to use PowerShell to block IP addresses (Fail2ban) from gaining access to a Windows server. Use PowerShell to Block IP Addresses (Fail2ban) Web can servers constantly get brute force attacks from unscrupulous people … Continue reading →

Tagged Block IP address, Fail2ban |

Use PowerShell to Find the User Profile Last Use Time

Posted on April 4th, 2023

Here we provide an example of how we can use PowerShell to find the user profile last use time. The reason we were doing this was to purge any local profiles that hadn’t been used for, say, 4 weeks or … Continue reading →

Tagged ntuser.dat, User Profile |

Generate a PDF using PowerShell and Microsoft Edge

Posted on March 28th, 2023

Here we describe how to generate a PDF using PowerShell and Microsoft Edge. It’s been a while since i knocked this script up, but i recall having issues printing to the PDF printer using System.Drawing.Printing.PrintDocument.  It required creating a handler … Continue reading →

Tagged PDF |

Use PowerShell to Read Remote Registry

Posted on March 28th, 2023

There are a couple of different ways we can use PowerShell to read remote registry. The first method requires that the RemoteRegistry service is started, otherwise you will see an error message similar to: Exception calling “OpenRemoteBaseKey” with “2” argument(s): … Continue reading →

Tagged remote registry |

Find Group Policy Objects (GPO) Modified in the Last X Days

Posted on March 23rd, 2023

This is a simple PowerShell script that enables you to find Group Policy Objects (GPO) modified in the last X days. Unfortunately it doesn’t tell us who modified the GPO or what specific configuration was changed, but it’s a start! … Continue reading →

Tagged get-gpo |

Ultimate PowerShell GUI Message Box Popup (Updated)

Posted on March 23rd, 2023

Standard message box popups using Wscript.Shell look boring, ugly, a bit 1990s and aren’t very flexible.  So we’ve created our own PowerShell GUI message box popup. **UPDATED** – Now supports multiline messages that are too long for the default text … Continue reading →

Tagged message box, popup |

Use PowerShell to Import Data From Microsoft Excel

Posted on October 19th, 2022

Sometimes when I’m analysing data, we need to use PowerShell to import data from Microsoft Excel. We generally have two quick options to do this.  Let’s take this sample data: Save As a Comma Delimited CSV We can save our … Continue reading →

|

PowerShell ISE Crashes When Loading

Posted on October 4th, 2022

I’ve recently come across an issue where PowerShell ISE crashes when loading. Bizarrely, it only failed to launch when using ‘RunAs’ to elevate it as a different (admin) user.  It worked fine if i ran it as the logged in … Continue reading →

|

Create a Registry Value and Path in One Line Using PowerShell

Posted on September 29th, 2022

Here’s a useful snippet of code allowing us to create a registry value and path in one line using PowerShell. In this example, we’re trying to write a registry name called “AlkaneName” with a value of “AlkaneValue” to a registry … Continue reading →

Tagged new-item, new-itemproperty |

Access Denied When Calling Remove-Item

Posted on September 29th, 2022

I was recently getting access denied when calling Remove-Item to delete a directory, even though the directory permissions were fine and I could delete the folder manually! An example piece of code was simply: Remove-Item -LiteralPath “C:\Users\AlkaneUser\Desktop\Alkane” -Force -Recurse Yes, … Continue reading →

Tagged remove-item |

« Previous Page — « Previous Entries
Next Entries » — Next Page »

Recommended Reading

Over

10,000

Applications
Packaged

Over

18

Successful
Migrations

Over

50

Happy
Clients

Application Packaging Services in Manchester, UK.
12b Kennerleys Lane, Wilmslow, England, SK9 5EQ

Application Packaging Services in London, UK.
152-160 City Road, London, EC1V 2NX.

© Alkane Solutions Ltd 2025
Privacy Policy | Modern Slavery | LinkedIn | Blog Posts

APPLICATION PACKAGING QUOTE!

✔ Fixed Price.
✔ Experienced IT Professionals.
✔ Highly Competitive Prices.
✔ 12 Month Warranty.






    This will close in 0 seconds