PowerShell – Uninstall Silverlight (or other Apps)

  Code.ps1   # MrNetTek # eddiejackson.net # 7/15/2022 # free for public use # free to claim as your own $SoftwareName = “Silverlight” $ItemProperties = Get-ItemProperty “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*” | Select-Object DisplayName,UninstallString foreach ($Item in $ItemProperties) { $DisplayName = $Item.DisplayName $UninstallString = $Item.UninstallString if($DisplayName -like “*$SoftwareName*”) { Write-Host “$DisplayName : $UninstallString” # Output: Microsoft Silverlight : Read More …

Windows – Servicing – Company Portal

You can use app package servicing commands to add, remove, and list provisioned app packages (.appx or .appxbundle) in a Windows image. Command to Add Company Portal DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:C:\PathToFile\Microsoft.CompanyPortal_2022.409.807.0_neutral___8wekyb3d8bbwe.AppxBundle /SkipLicense   Notes   DISM App Package (.appx or .appxbundle) Servicing Command-Line Options

Mac – Intune/SCCM – Sign PKG, Wrap PKG for Deployment

Create a Signed Package {{{ Required for IntuneĀ  }}} [devuser@mac-lab1 Downloads % sudo productsign –sign “Developer ID Installer: Eddie Jackson (YourAppleID-DDD3V2X8N)” Skype-8.83-unsigned.pkg Skype-8.83-signed.pkg Password: {enter password} productsign: using timestamp authority for signature productsign: signing product with identity “Developer ID Installer: Eddie Jackson (YourAppleID-DDD3V2X8N)” from keychain /Users/devuser/Library/Keychains/login.keychain-db productsign: adding certificate “Developer ID Certification Authority” productsign: adding Read More …

Azure – VDI – Nerdio – Add AD Group to Host Session

  Code.ps1   # MrNetTek # eddiejackson.net # 7/15/2022 # free for public use # free to claim as your own $ErrorActionPreference = ‘Continue’ Write-output “Getting Host Pool Information” $HostPool = Get-AzResource -ResourceId $HostpoolID $HostPoolResourceGroupName = $HostPool.ResourceGroupName $HostPoolName = $Hostpool.Name $Script = @” `$ErrorActionPreference = ‘Continue’ Try { #Add specific user #Add-LocalGroupMember -Group “Administrators” -Member Read More …

AutoIt – Copy Current Page to Clipboard – Search for String

#include #include ; wait Sleep(5000) ; loop routine While 1 ; Click at the current mouse position. MouseClick($MOUSE_CLICK_LEFT) Sleep(5000) ; select all Send (“^a”) Sleep(1000) ; copy to clipboard Send (“^c”) Sleep(1000) ; return clipboard to string $sData = ClipGet() ; what to look for $searchstring = “AddSearchStringHere” ; logic for detection If StringInStr($sData, $searchstring) Read More …

SCCM Agent: CcmSetup failed with error code 0x80070643

I ran into an issue where I could not install the CM agent. This was the fix. Repair WMI Repair MOF Repair system files Reset Windows Updates   CCMSetup.log Errors File C:\WINDOWS\ccmsetup\{1990B09E-077D-46F9-B575-2AB675E44670}\client.msi installation failed. Error text: ExitCode: 1603 Action: SmsClientInstallSucceeded. ErrorMessages: An error occurred during the installation of assembly ‘Microsoft.ConfigurationManager.WinRTProvider.dll,Version=”5.0.0.0″,Culture=”neutral”,PublicKeyToken=”31bf3856ad364e35″‘. Please refer to Help and Read More …

Batch – Create PFX Certificate – Sign Code or Package; MSIX

:: MrNetTek :: https://eddiejackson.net/blog :: 9/16/2020 :: free for public use :: free to claim as your own @echo off cd “%~dp0” :: STEP 1 :: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86 makecert.exe ^ -n “CN=CodeSign” ^ -r ^ -pe ^ -a sha512 ^ -len 4096 ^ -cy authority ^ -sv CodeSign.pvk ^ CodeSign.cer :: STEP 2 Read More …

Batch – Clear Windows Logs

FOR /F “tokens=*” %1 in (‘wevtutil.exe el’) DO wevtutil.exe cl “%1” exit /b 0   Notes Clear events after saving log: wevtutil cl Application /bu:C:\backup\back.evtx Return names of logs: wevtutil el Status of log: wevtutil gli Application   All Options wevtutil [{el | enum-logs}] [{gl | get-log} <Logname> [/f:<Format>]] [{sl | set-log} <Logname> [/e:<Enabled>] [/i:<Isolation>] Read More …