Ran out of memory

Hello. I have a script that when I run it, my computer runs out of RAM. I don’t have any actual data, as far as how much RAM it takes, and where the problem is. This script is also, kinda… hack-ish (heavy use of ExpandString and Invoke-Expression). The gist of it is that roughly 750 […]

SCCM related – ConfigurationManager module seems to be borked

When I try to install & use the ConfigurationManager powershell module, it throws an error saying that the ‘AdminUI.EmailPolicy’ DLL is missing. does anyone know where I can get this DLL from? I tried uninstalling / reinstalling, no dice. Here is the full error code: Import-Module : Could not load file or assembly ‘AdminUI.EmailPolicy, Version=5.0.0.0, […]

Stuck with variable handling

Running this script, i’m getting the error: Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named ‘op_Addition’. At line:22 char:1 + $content+=$AllClips2.content | convertfrom-json + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException + FullyQualifiedErrorId : MethodNotFound But when I run it with only one value for $profileID it runs just fine. $APIKey=”##########################” […]

Question – Stuck trying to remove Appx via RemovePackageMethod

RemovePackageMethod We are attempting to remove appx title via this method in a WMI Bridge Powershell script – this method requires a string param but we are not being successful on executing with the error ‘Invalid method Parameter’: $computer = $env:COMPUTERNAME $namespace = “ROOTCIMV2mdmdmmap” $classname = “MDM_EnterpriseModernAppManagement_AppManagement01” $Packages = @{param=’Microsoft.BingWeather4.25.11802.0_neutral~_8wekyb3d8bbwe’} $c = Invoke-WmiMethod -Namespace $namespace […]