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 2

General scripting and coding


Setting a Timeout in PowerShell Scripts to Prevent Hanging

Posted on December 22nd, 2023

This blog explains setting a timeout in PowerShell scripts to prevent hanging. There’s nothing worse than iterating through a list of commands and the whole workflow grinds to a halt because one command is hanging.  But resolving the issue is … Continue reading →

Tagged start-job, Start-Process, timeout |

Call a PowerShell Function in Another PowerShell Script

Posted on December 9th, 2023

This blog post provides an example of how we can call a PowerShell function in another PowerShell script. Let’s first assume that we have a function in a script called AlkaneFunctions.ps1 that enables us to install an MSI using PowerShell … Continue reading →

Tagged dot sourcing |

Using PowerShell Bitwise Comparison Operators to Check and Set Bit Flags

Posted on November 10th, 2023

This blog post explains using PowerShell bitwise comparison operators to check and set bit flags.  You can also use PowerShell to calculate bit flags by creating your own enum if desired. We must first start with a (really) basic primer … Continue reading →

Tagged band, bitwise operators, bor, bxor |

Send Bulk Emails with PowerShell using Only BCC

Posted on November 9th, 2023

Sometimes we want to blind copy (BCC) a group of users into an email, without specifying the To address.  In this blog post we find a solution to send bulk emails with PowerShell using only BCC. In an earlier post … Continue reading →

Tagged send-mailmessage, SmtpClient, System.Net.Mail |

Handling Command-Line Arguments in PowerShell

Posted on November 7th, 2023

Command-line arguments allow us to pass information to our scripts dynamically, making them more flexible and versatile. In this blog post, we’ll explore handling command-line arguments in PowerShell. Handling Command-Line Arguments in PowerShell Using Args When we execute a PowerShell … Continue reading →

Tagged arguments, command-line |

How to Comment Out Code in PowerShell

Posted on November 7th, 2023

In this blog post, we’ll explore how to comment out code in PowerShell using both single-line and multi-line comments. Single-Line Comments Single-line comments are used to annotate a single line of code in PowerShell. These comments are helpful when we … Continue reading →

Tagged Comment code |

Using the PowerShell Do While Loop and Do Until Loop

Posted on November 5th, 2023

The “Do While” and “Do Until” loops provide valuable options for executing code based on specified conditions. In this blog post, we’ll dive into using the PowerShell Do While loop and Do Until loop, their syntax, and how we can … Continue reading →

Tagged do-until, do-while |

Using the PowerShell For Loop

Posted on November 5th, 2023

One of the essential looping constructs in PowerShell is the “For” loop. In this blog post, we’ll delve into using the PowerShell For loop, its syntax, and how we can utilise it effectively in our scripts. Understanding the For Loop … Continue reading →

Tagged for loop |

Using PowerShell to Safely Run Downloaded Scripts from the Internet

Posted on November 5th, 2023

Downloading and running scripts from the internet has become a common practice. However, security remains a top concern and we need to ensure that the scripts we obtain online are safe and won’t harm our systems. In this blog post, … Continue reading →

Tagged unblock-file |

PowerShell Warning Running Scripts on this System is Disabled

Posted on November 5th, 2023

Sometimes when we try to run a PowerShell script, we might encounter the PowerShell warning running scripts on this system is disabled This error is related to PowerShell’s script execution policies. In this blog post, we’ll explore the different script … Continue reading →

Tagged get-executionpolicy, set-executionpolicy |

« 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