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 10

Powershell scripts used to manipulate the Windows Installer object


Use ADSI and FromFileTime to Convert Datetime Attributes in Active Directory

Posted on February 26th, 2021

This post explains how we can use ADSI and FromFileTime to convert datetime attributes in Active Directory to a human-readable date and time. You’ll notice when you return attributes such as lastlogon, lastlogontimestamp and lastpwdset that the format of the … Continue reading →

Tagged ADSI, datetime |

Use ADSI to List Nested Members of an AD Group (Updated)

Posted on February 26th, 2021

This post includes an example of how we can use ADSI to list nested members of an AD group.  In other words, if the group contains nested groups, it will iteratively search all the members of those nested groups too. … Continue reading →

Tagged ADSI |

Use PowerShell ADSI to Modify an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to modify an AD group.  In this example, we modify the description attribute of an AD group.  You can also use ADSI to clear the attributes for … Continue reading →

Tagged ADSI, modify AD group |

Use PowerShell ADSI to Create an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to create an AD group. $adGroupType = @{ Global = 0x00000002 DomainLocal = 0x00000004 Universal = 0x00000008 Security = 0x80000000 } #OU containing the AD group $adGroupOU=”OU=Application,OU=Groups,DC=alkanesolutions,DC=co,DC=uk” … Continue reading →

Tagged ADSI, create AD group |

Use PowerShell ADSI to Delete an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to delete an AD group. #OU containing the AD group $adGroupOU=”OU=Application,OU=Groups,DC=alkanesolutions,DC=co,DC=uk” #AD group name $addADGroup = “CN=alkane_ad_group” #Full distinguished name of AD group $distinguishedName = “$addADGroup,$adGroupOU” #check … Continue reading →

Tagged ADSI, delete ad group |

The Difference Between PowerShell ADSI and ADSISearcher

Posted on February 25th, 2021

This post will examine the difference between PowerShell ADSI and ADSISearcher when using PowerShell to query Active Directory. ADSI and ADSISearcher are used to query Active Directory (AD) using Lightweight Directory Access Protocol (LDAP). What is LDAP? LDAP, as the … Continue reading →

Tagged ADSI, ADSISearcher |

Use PowerShell ADSI to Migrate AD Group Members

Posted on February 24th, 2021

UPDATE: I’ve updated this script because LDAP does not return all Active Directory group members if there are more than 1500 members in the group. This post provides a function which enables us to use PowerShell ADSI to migrate AD … Continue reading →

Tagged ADSI, migrate AD group |

PowerShell Combobox using a Custom DrawMode

Posted on February 21st, 2021

This post provides an example of creating a pretty PowerShell combobox using a custom DrawMode. Instead of using the default fonts and colours, we can override this setting to conditionally highlight combobox entries in different colours, and even use an … Continue reading →

Tagged Combobox, drawmode |

Custom Tooltips in PowerShell Forms using OwnerDraw

Posted on February 20th, 2021

This post provides an example of how we can override the default behaviour to show custom tooltips in PowerShell Forms using OwnerDraw. Add-Type -AssemblyName System.Drawing #define brushes for black and white $whiteBrush = new-object Drawing.SolidBrush White $blackBrush = new-object Drawing.SolidBrush … Continue reading →

Tagged ownerdraw, tooltips |

Trigger SCCM Client Actions Remotely using PowerShell

Posted on February 19th, 2021

This is a simple PowerShell script that can be used to trigger SCCM client actions remotely using PowerShell. It only currently supports three client actions for simplicity’s sake (MachinePolicy, DiscoveryData, SoftwareInventory) but you can add more as specified here. Usage … Continue reading →

Tagged sccm client actions, trigger client action |

« 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