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 - General Scripting and Coding - Page 13

General scripting and coding


Find the Membership Count of all AD Groups in an OU

Posted on March 22nd, 2019

I was working on an application migration recently, and wanted to see how many users/computers were in each application Active Directory (AD) group in a specified Organisational Unit (OU).  I wrote a PowerShell script to find the membership count of … Continue reading →

Tagged Get-ADGroup |

Charting with PowerShell

Posted on March 13th, 2019

This post is heavily plagiarised from here.  But sometimes I see an interesting nugget of code and like to make sure I never lose it, and this piece on charting for PowerShell is no different! I’ve made a few tweaks … Continue reading →

Tagged powershell charting |

Using PowerShell and Selenium for Browser Automation

Posted on December 6th, 2018

Selenium is a portable software-testing framework for web applications.  It’s pretty cool (in a geeky way) and is primarily used to test web applications. In this instance we’re using it to launch Internet Explorer, load a web-based helpdesk dashboard on the intranet, log into … Continue reading →

Tagged browser automation, selenium |

Invoke-Sqlcmd Returns Columns RowError and HasErrors

Posted on November 21st, 2018

I’ve been performing some SQL queries recently using PowerShell and Invoke-SqlCmd, but I’ve noticed that by default Invoke-Sqlcmd returns columns RowError and HasErrors.  Here is a simple example of returning a list of devices (a single column of data) from … Continue reading →

Tagged excludeproperty, Export-CSV, invoke-sqlcmd |

Using Select-Object with PowerShell

Posted on November 1st, 2018

A couple of days ago I wanted to check which products were installed on a computer using PowerShell.  And throughout my journey I discovered how we can format the output of returned data by using Select-Object with PowerShell. Take this … Continue reading →

Tagged manipulate column data, select-object |

Wait For a Process in a Batch File

Posted on October 31st, 2018

A while ago I needed to wait for a process in a batch file to finish before the script continued.  I did it by using an If statement to create a ‘spoof’ loop, with a delay between each loop iteration … Continue reading →

Tagged wait for process |

Move or Copy Active Directory Users

Posted on September 5th, 2018

There are many occasions where I need to move or copy Active Directory users from one group to another.  Usually this occurs when an application has been updated to a new version, and we need to migrate users from the … Continue reading →

Tagged AD User, Add-ADGroupMember, Remove-ADGroupMember |

Add and Remove Service Entries

Posted on August 10th, 2018

This is a quick script I’ve used to add and remove service entries to the windows services file. It ignores commented lines (lines starting with a hash (#)), and it also doesn’t validate the format of the host or port/protocol … Continue reading →

Tagged services |

Install and Uninstall an MSI using PowerShell

Posted on July 18th, 2018

This is an example of how to install and uninstall an MSI using PowerShell. It passes in a string array as the msiexec arguments. So you can add more arguments as you see fit. Pay close attention to the quotes … Continue reading →

Tagged Install MSI, Uninstall MSI |

Add and Remove Host Entries

Posted on February 14th, 2018

This is a quick script I’ve used to add and remove hosts entries to the windows hosts file. It ignores commented lines (lines starting with a hash (#)), and it also doesn’t validate the format of the host or IP … Continue reading →

Tagged hosts |

« 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