Dark mode

Dark mode

There are 0 results matching

article card image dark article card image light

Published by · Jan 23, 2024 tools · 3 mins read

Introducing: Intune Device Renaming Tool

Rename Intune Devices by setting a Prefix or using a User Attribute as Prefix. Supports Windows, macOS, and Linux ...

See More
article card image dark article card image light

Published by · Dec 8, 2023 intune · 5 mins read

Intune Logs: A Deep Dive into Locations, Interpretation, and Configuration

A Comprehensive Guide to Locations, Interpretation, and Configuration of Intune Logs ...

See More
article card image dark article card image light

Published by · Aug 14, 2023 configmgr · 2 mins read

Configuration Manager Console Extension to show Device Collection Membership with Console Builder

Use the Configuration Manager Console Builder, to add Collection Membership View to the Device Node ...

See More
article card image dark article card image light

Published by · Aug 3, 2023 tools · 3 mins read

Introducing: Configuration Manager SSRS Dashboards

A Configuration Manager Dashboards solution with Reports for Software Updates, Bitlocker and more ...

See More
article card image dark article card image light

Published by · Aug 3, 2023 tools · 2 mins read

Introducing: PowerShell WMI Management Toolkit Module

Streamline your WMI Namespace, Class, and Instance Management with our PowerShell Module ...

See More
article card image dark article card image light

Published by · Jul 14, 2023 configmgr · 1 mins read

Configuration Manager detailed, filterable Port Documentation

Configuration Manager detailed, filterable port documentation as an excel document ...

See More
article card image dark article card image light

Published by · Jul 14, 2023 configmgr · 3 mins read

Configuration Manager PXE TFTP Window Size Bug

Configuration Manager TFTP Block Size and TFTP Window Size Correct Configuration ...

See More
article card image dark article card image light

Published by · Jun 18, 2023 tools · 4 mins read

Introducing: Configuration Manager Client Cache Cleanup Tool

Cleaning the Configuration Manager Client Cache the Right Way with PowerShell and Configuration Baselines ...

See More
article card image dark article card image light

Published by · Jun 18, 2023 tools · 2 mins read

Introducing: Windows Cache Cleanup Tool

Cleaning Windows and Configuration Manager Caches for Configuration Manager Build and Capture Task Sequence or Standalone Use ...

See More
article card image dark article card image light

Published by · Jun 17, 2023 tools · 1 mins read

Introducing: Windows Update Database Reinitialization Tool

Proactively repair corrupted Windows Update Database with Powershell and Configuration Manager ...

See More
article card image dark article card image light

Published by · Mar 31, 2023 tools · 3 mins read

Introducing: Configuration Manager SQL Products Reporting

A Complete SQL Products reporting solution using Configuration Manager ...

See More
article card image dark article card image light

Published by · Jan 28, 2023 configmgr · 1 mins read

Application Detection Method using the Configuration Manager Application Version

Replace hardcoded application version in scripts, with the Configuration Manager Application Version ...

See More
article card image dark article card image light

Published by · Jan 28, 2023 tools · 3 mins read

Introducing: Certificate Management Toolkit

Managing Certificates with Configuration Manager and PowerShell by using just the Public Key ...

See More
article card image dark article card image light

Published by · Jan 7, 2019 reports · 2 mins read

Configuration Manager Device Boundary and Network Information Report

List Device Boundaries and Network Information with Configuration Manager ...

See More
article card image dark article card image light

Published by · Sep 9, 1980 help · 5 mins read

MEM.Zone Blog Publishing Documentation

Publishing Documentation for MEM.Zone ...

See More

We couldn’t find anything related to

“SCCM”

BLOG / tools zone

Introducing: PowerShell WMI Management Toolkit Module

Published by Popovici Ioan · Aug 3, 2023 · 2 mins read
article card image dark article card image light

Quick Summary

Say goodbye to the complexity and time-consuming processes of handling Configuration Manager Hardware Extensions using .mof files and complex scripts.
With our PowerShell WMI Toolkit Module, you can seamlessly interact with WMI, in a user-friendly and intuitive way.

PSWmiToolKit Cmdlets

Copy-WmiClass

Copies a class to another namespace.

Copy-WmiClassQualifier

Copies the qualifiers of a WMI class to another class. Default qualifier flavors will be used.

Copy-WmiInstance

Copies the instances of a WMI class to another class.

Copy-WmiNamespace

Copies a namespace to another namespace. Default qualifier flavors will be used.

Copy-WmiProperty

Copies the properties of a WMI class to another class. Default qualifier flavors will be used.

Get-WmiClass

Gets a list of classes in a specific namespace.

Get-WmiClassQualifier

Gets a list of qualifiers in a specific class.

Get-WmiInstance

Gets the instances of a class from a CIM server.

Get-WmiNamespace

Gets a list of namespaces in a specific namespace.

Get-WmiProperty

Gets a list of properties in a specific class.

Get-WmiPropertyQualifier

Gets a list of property qualifiers in a specific property.

New-WmiClass

Creates a class in a specific namespace.

New-WmiInstance

Creates an instance in a specific class.

New-WmiNamespace

Creates a namespace.

New-WmiProperty

Creates a property in a specific class.

Remove-WmiClass

Deletes a class in a specific namespace.

Remove-WmiClassQualifier

Deletes a class qualifier in a specific class.

Remove-WmiInstance

Deletes an instance in a specific class.

Remove-WmiNamespace

Deletes a namespace.

Remove-WmiProperty

Deletes a property in a specific class.

Remove-WmiPropertyQualifier

Deletes a property qualifier in a specific property.

Rename-WmiClass

Renames a class.

Rename-WmiNamespace

Renames a namespace.

Set-WmiClassQualifier

Sets a class qualifier in a specific class.

Set-WmiInstance

Sets an instance in a specific class.

Set-WmiPropertyQualifier

Sets a property qualifier in a specific class.


Prerequisites

PSWmiToolkit Module


Installation


Install-Module -Name 'PSWmiToolkit'

Uninstallation


Uninstall-Module -Name 'PSWmiToolkit'

Example

## Get User Rights Assignment
$UserRightsAssignments  = Get-UserRightsAssignment

## Remove existing class
Remove-WmiClass -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -ErrorAction 'SilentlyContinue'

## Create new class
[hashtable]$Qualifiers = @{
    Static      = $true
    Description = 'Custom Configuration Manager Hardware Inventory Class for User Rights Assignment Data. Endpoint Management Team.'
}
New-WmiClass -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -Qualifiers $Qualifiers

## Add class properties
New-WmiProperty -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -PropertyName 'PrincipalSID'     -PropertyType 'String' -Qualifiers @{ Key = $true }
New-WmiProperty -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -PropertyName 'PrincipalName'    -PropertyType 'String'
New-WmiProperty -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -PropertyName 'Privilege'        -PropertyType 'StringArray'
New-WmiProperty -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -PropertyName 'PrivilegeBitMask' -PropertyType 'UInt64' -Qualifiers @{ Key = $true }

## Add class instances
ForEach ($UserRightsAssignment in $UserRightsAssignments) {
    #  Initialize loop variables
    [uint64]$Bitmask = 0
    [string[]]$Privileges = $UserRightsAssignment.Privilege
    ForEach ($Privilege in $Privileges) {
        #  Create bitmask
        [UInt64]$Bitmask += [UInt64][UserRightsFlags]::$Privilege
    }
    #  Convert PSCustomObject to Hashtable
    [hashtable]$Property = $UserRightsAssignment | ConvertTo-HashtableFromPsCustomObject
    #  Add bitmask to hashtable
    $Property.Add('PrivilegeBitMask',  [UInt64]$Bitmask)
    #  Write class instance
    New-WmiInstance -Namespace 'ROOT\CIMV2' -ClassName 'Win32_UserRightsAssignment' -Property $Property
}

## Write output
Write-Output -InputObject $Output
Notes

See the full example here.


Help

Markdown

Builtin

Get-Command -Module PSWmiToolKit | Get-Help

SHARE

article card image dark article card image light

Published by · Aug 3, 2023 tools · 3 mins read

Introducing: Configuration Manager SSRS Dashboards

A Configuration Manager Dashboards solution with Reports for Software Updates, Bitlocker and more ...

See More
article card image dark article card image light

Published by · Jun 18, 2023 tools · 2 mins read

Introducing: Windows Cache Cleanup Tool

Cleaning Windows and Configuration Manager Caches for Configuration Manager Build and Capture Task Sequence or Standalone Use ...

See More