PowerShell – Empty Reboot
Have you ever needed to prompt a user for a reboot at the end of a setup process? Here is how you do it with a form, which includes a remind me.
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.
Have you ever needed to prompt a user for a reboot at the end of a setup process? Here is how you do it with a form, which includes a remind me.
This will return BitLocker data without having to enter a bearer token, or having to manually generate a bearer token before accessing MSGraph. You won’t find this anywhere else, because I wrote it. I do recommend having your Azure app registration done, and its appID ready to go. The appID info will go into the Read More …
This will return the current user, even from the system account security content. Highly useful, if you’re trying to apply settings, configs, or run processes from the security context of the current user, but initially starting from the system account, like when using desktop management systems like SCCM or Intune. Code From the Console Read More …
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
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 …
To be used in scripting and setting up the config files: ProPlus2021Volume Standard2021Volume ProjectPro2021Volume ProjectStd2021Volume VisioPro2021Volume VisioStd2021Volume
#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 …
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 …