Author: Dries Willems
-
Writing Current User registry keys in SCCM as System
Normally I would have used CI’s from SCCM, but in this case I always received an Access Denied on the Current User Registry path. By using this script, we are able to to write to the Current User registry keys by deploying an application/package that runs as the System account. You’ll need the following: Ensure…
-
Silent update HP BIOS/Drivers/Firmware with HP ImageAssistant
Download HP Image Assistant and extract the contents from https://ftp.ext.hp.com/pub/caps-softpaq/cmit/HPIA.html Copy the extracted contents to SCCM or Intune from C:\SWSetup\ Create a package with the following commandline While running the command it first analyses the system for the missing driver updates straight from HP. This could take 15-30 minutes depending on the amount of drivers/firmware…
-
Install SCCM Client through Intune on Co-management
We experience timeout issues during the User Configuration of Autopilot with our existing PowerShell SCCM Client script. We just injected the ccmsetup.msi from the root SCCM Install directory and injected it as a Line-of-business app in Intune. Benefits are almost instant logon. Downside is that SCCM is still installing in the background. For us that…
-
Silent Update Windows 10 to 22H2 using PowerShell and Windows 10 Update Assistant
PowerShell script to update the existing Windows 10 using the handy Windows 10 Update Assistant. Didn’t bother to package this, as we only had 1026 outdated devices which were online 24/7. Validated this from W10 1903 and higher to W10 22H2. Script runs completely silent in the background and only popped up after +-45 minutes…
-
Disable Microsoft Teams Auto Startup on Windows
-
SCCM Client Language
One needs to copy the LanguagePack folder below x86/x64. Client source files can be taken from: CD.Latest\SMSSETUP\CLIENT Client language packs can be taken from: CD.Latest\LanguagePack\Client\lang\smssetup\Client\arch\LanguagePack
-
How to avoid using Microsoft accounts in Windows 11
There are several methods to bypass the Microsoft account requirement during setup on Windows devices. I described one option in How to use local accounts on Windows 11 version 22H2 devices. While written for that specific version, the described method works in other versions of Windows 11 as well. To describe it in a sentence, it…
-
Software Center – Application / Task Sequence stuck on Installing
Run Powershell Elevated or Start CMD as an Administrator net stop winmgmt /y winmgmt /resetrepository reboot PC Start CMD as an Administrator c:\windows\ccm\ccmrepair.exe
-
Remove HKCU registry entries of multiple users
Note: Current users logged on the system will be not affected because the ntuser.dat file is locked by the system.
-
Stop & Disable Service
-
How To install apps on Windows 10 without Store
Install Microsoft ToDo without Store We are going to use the Microsoft ToDo app as an example of how you can download and install apps without the store, but you can use this for any app of course. Step 1 – Find the URL of the app So the first step is to find the…
-
Run PowerShell scripts in 64-bit mode using SCCM Package
SCCM Packages run in 32-bit context, which forces System32 to be redirected to SysWOW64 on a 64-bit system. Even the SCCM CB version Packages run in 32-bit mode. So you might have faced difficulties in running powershell scripts in 64-bit mode.The fix for this is to ensure your batch file has the following lines: %SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe…
-
Trigger SCCM Configuration Baseline Evaluation with Run script feature
Here’s the Powershell script we want to use to evaluate all of the baselines deployed to the machines in a device collection. If you just want to evaluate a specific one you need to modify the script. First off all, lets create a script Copy the or import the powershell script Approve the script you just created.…
-
Clean nvidia drivers without GeForce Experience
Remove existing drivers https://www.guru3d.com/files-details/display-driver-uninstaller-download.html Install clean drivers https://www.techpowerup.com/download/techpowerup-nvcleanstall/
-
Create and write an image of a USB drive
ImageUSB is a free utility which lets you write an image concurrently to multiple USB Flash Drives. Capable of creating exact bit-level copies of USB Flash Drive (UFDs), ImageUSB is an extremely effective tool for the mass duplication of UFDs. ImageUSB also supports writing of an ISO file byte by byte directly to an USB drive…
-
Get-ChildItem : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
The only way is to shorten the path. PowerShell does not have support for long paths. Long Paths on a server are a very bad thing as they will continue to be headaches for all. You can shorten the path by mapping a PowerShell drive at a midway point. Now you can use X: to…
-
How to Delete User Profile to Fix Problematic Windows Account
Method 1: Delete User Profile in Advanced System Properties Press the Windows key + R keyboard shortcut to open the Run dialog. Type sysdm.cpl and press Enter. In the System Properties window, select the Advanced tab and click on the Settings button under User Profiles. Select the user profile of the problematic Windows account, and click on Delete.If the Delete button is greyed out, it’s…
-
Time Sync
-
PowerShell: Stopwatch
-
Extract Surface Book 3 Drivers from msi
Option 1: Download https://support.microsoft.com/en-us/surface/download-drivers-and-firmware-for-surface-09bb2e09-2a4b-cb69-0951-078a7739e120 or https://www.microsoft.com/en-us/download/details.aspx?id=101315 Open CMD as an Administrator Option 2: If you have a surface that is already set-up and has all of its drivers . You can extract them via powershell using the Export-WindowsDriver command. Open PowerShell as an Administrator
-
Retrieve factory_config.xml file from your headunit (10.25″ Android 10 HU)
Guide from @banpiro (Discord) to download stock Factory_config.xml from SD625 System WITHOUT root: This is only useful if there has been not imported any file by yourself before! 1. Create WiFi hotspot in a smartphone 2. Connect Head Unit & your laptop to WiFi hotspot. You need to know Head Unit IP (you can check…
-
Retrieve ODC Logs and Windows Autopilot WhiteGlove Diagnostics
Intune One Data Collector logs: To run this, on a affected device, open an elevated (“Run as administrator…”) PowerShell window and run these three commands: Windows Autopilot MDM logs: To run this, on a affected device, open an elevated (“Run as administrator…”) PowerShell window and run these three commands:
-
Intunewin right click tool: Extract content of intunewin file with a right-click on it
How to implement it ? 1. Download the ZIP content 2. Extract ZIP 3. Be sure to have both Add_structure.ps1 and Sources folder 4. Run Add_structure.ps1 with admin rights 5. A new context menu will be added for .intunewin How to use it ? 1. Do a right-click on a .intunewin file 2. The below context menu we appear 3. Click on Extract intunewin…
-
SCCM – SQL Report – Count all computers by model
If there are Lenovo models in your organisation:
-
Certificate Deployment with SCCM
Certificate Discovery Script: Simply replace the value of the $sn variable in the above script with the actual serial number of the certificate you are installing (unless you really want to check for the code signing certificate in my lab). You can easily grab this from the Details tab of the Certificate dialog in the…
-
Remove Drivers from the DriverStore in Windows 10
Export the list of drivers in the table form to a text file using the command:dism /online /get-drivers /format:table > c:\drivers.txt Now you can delete all unnecessary drivers with the help of command pnputil.exe /d oemNN.inf (NN — is a number of drivers file package from drivers.txt, as example oem02.inf). In case the driver is in use, you will…
-
No longer free: Windows 10 HEVC Video Extensions from Device Manufacturer
HEVC Video Extensions & HEIF Image Extensions are required to open Apple iPhone pictures (.heic) on your Windows 10 Computer. These extensions used to be free, but the HEVC Video Extensions recently received a pricetag of €0.99. There is a way to get it for free through the Microsoft Store by following one of these…
-
MECM/SCCM – WQL: Collection New Devices from the Last 7 days
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System WHERE DateDiff(dd,SMS_R_System.CreationDate, GetDate()) <= 7
-
MECM/SCCM – SQL: Count OS Versions with OS Languages
It is not recommend to query against the tables directly, this can lead to table locking issues. It is recommend that you always query against the views, on top of that I would not use the Installed Software for OS info. I would use the v_GS_OPERATING_SYSTEM for this. Run the following query against your CM…
-
Rebuild WMI
net stop ccmexec /ynet stop VMAuthdService /ynet stop winmgmt /yc:cd %systemroot%\system32\wbemrd /S /Q repositoryregsvr32 /s %systemroot%\system32\scecli.dllregsvr32 /s %systemroot%\system32\userenv.dllmofcomp cimwin32.mofmofcomp cimwin32.mflmofcomp rsop.mofmofcomp rsop.mflfor /f %%s in (‘dir /b /s *.dll’) do regsvr32 /s %%sfor /f %%s in (‘dir /b *.mof’) do mofcomp %%sfor /f %%s in (‘dir /b *.mfl’) do mofcomp %%swinmgmt /resetrepositorynet start winmgmtnet start…
-
Intune Cache location
Depends which channel is being used and which type of app. Win32 apps via Intune Management Extension Agent are cached here: C:\Program Files (x86)\Microsoft Intune Management Extension\Content Windows LOB apps (single MSI) pushed via MDM channel like the Intune Management Extension Agent itself are cached here during install and then deleted: C:\Windows\system32\config\systemprofile\AppData\Local\mdm Check the log…
-
Unable to remove CCM files or folders
Download and extract Handle & Process Explorer from https://docs.microsoft.com/en-us/sysinternals/downloads/handle & https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer Copy Handle.exe and ProceXP.exe to C:\Temp Run CMD as Administrator Run Handle.exe C:\Windows\ccm You should be able to see the PID Now run ProceXP.exe and kill the PID http://jayantech.blogspot.com/2016/03/unable-to-remove-ccm-folder.html
-
Unblock-files Recurse
-
Powershell: Stop Process safely when the process is running or not
-
Microsoft Office 365 Name Change
Update guide for testing Verify existing Office version Open Word go to File > Account Open CMD and Run the config command “C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe” /changesetting Channel=Insiders Enforce the new config “C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeC2RClient.exe” /update user updatepromptuser=true forceappshutdown=true displaylevel=true Install the updates Installer will close running Office apps Sign out Windows Log back…
-
SCCM Client unhealty
SCCM Client wasn’t registered in the SCCM Console anymore. Reinstalled the client manually and noticed it showed up on the Console but after a day it was gone again. The LocationServices.log shows the following error loop: Retrieved lookup MP(s) from AD LocationServices 4/20/2020 10:04:20 AM 2676 (0x0A74) Request to http://00863.XYZ.COM/SMS_MP/.sms_aut?SMSTRC cannot be fulfilled since use…
-
Reset IE11 Internet Explorer Settings to Default
@echo off rem This script resets IE silently rem via the method of sending keystrokes onto UI rem Author: Kim Doan start RunDll32.exe InetCpl.cpl,ResetIEtoDefaults ping 127.0.0.1 -w 1 -n 2 echo set WshShell = CreateObject(“WScript.Shell”) >autokeys.vbs echo WshShell.Sendkeys “%{DOWN}” >>autokeys.vbs echo WshShell.Sendkeys “R{ENTER}” >>autokeys.vbs echo WshShell.Sendkeys “%{UP}” >>autokeys.vbs cscript autokeys.vbs del autokeys.vbs ping 127.0.0.1 -w…
-
How to get product codes quickly?:
1. Powershell: Recommended approach. IdentifyingNumber is the ProductCode (WMI peculiarity). get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize 2. Registry Lookup: There are always weird exceptions accounted for only by the internals of the API-implementation: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall https://stackoverflow.com/questions/29937568/how-can-i-find-the-product-guid-of-an-installed-msi-setup
-
Run MSI from PowerShell script with spaces in directories
Make use of double “” to add a single ” in a variable for paths that has spaces C:\Program Files (x86)\ThunderBolt 3 Update
-
Enable PowerShell Remote Shell for Hyper-V Manager
With the SkipNetworkProfileCheck parameter, you can just ignore the warning: Enable-PSRemoting -SkipNetworkProfileCheck -Force
-
Retrieving User information in VBScript
We have an issue where %userdomain% & %username% doesn’t resolve at all. Therefore we found a “work-a-round” Dim ntsys Set ntsys = CreateObject(“WinNTSystemInfo”) wscript.echo “User: ” & ntsys.UserName wscript.echo “Computer: ” & ntsys.ComputerName wscript.echo “Domain: ” & ntsys.DomainName wscript.echo “PDC: ” & ntsys.PDC
-
PowerShell Quick Tip: Accessing the ProgramFiles(x86) Environment Variable
Accessing environment variables in PowerShell is easy, either: dir env: to view all of them, or: dir env:ProgramFiles to access a specific one. However, if you try that for the ProgramFiles(x86) environment variable you are greeted with the following error:view sourceprint? PS C:\> dir env:ProgramFiles(x86) x86 : The term ‘x86’ is not recognized as the name of a cmdlet, function, script file,…
-
Force Office 365 Click to Run client to switch channel and/or update/revert version
Step 1: Retrieve latest version from https://docs.microsoft.com/en-us/officeupdates/update-history-office365-proplus-by-date?redirectSourcePath=%252fen-us%252farticle%252fae942449-1fca-4484-898b-a933ea23def7 Download the Office Deployment Tool Create new xml with the Office 365 configuration and save as an XML file. <Configuration><Updates Enabled=”TRUE” TargetVersion=”16.0.11328.20420″ /></Configuration> or <Configuration> <Updates Enabled=”TRUE” TargetVersion=”16.0.11328.20420″ Channel=”Broad” /> </Configuration> <Configuration> <Updates Enabled=”TRUE” TargetVersion=”16.0.11328.20480″ /> </Configuration> Run setup.exe /configure newconfig.xml From <https://docs.microsoft.com/en-us/deployoffice/delay-receiving-feature-updates-from-deferred-channel-for-office-365-proplus> Step 2: Force update with…
-
Lookup KMS Server
nslookup -type=srv _vlmcs._tcp
-
Setx Environment Variables
By default setx sets the variable in the local environment (Under HKEY_Current_User Registry key). If you want to set the system variable (Under HKEY_LOCAL_MACHINE registry key), use the flag /m. The set command only sets the environment variable for the current session. The setx command sets it permanently, but not for the current session. If you want to set it for current as well as future sessions, use both setx and set. Example: SETX /M INCLUDE C:\IBM\SQLLIB\LIB SETX /M CLASSPATH .;C:\IBM\SQLLIB\java\db2java.zip;C:\IBM\SQLLIB\java\db2jcc.jar;C:\IBM\SQLLIB\java\db2cc_license_cu.jar;C:\IBM\SQLLIB\bin;C:\IBM\SQLLIB\java\common.jar Append to Path use %PATH% SETX /M PATH “%PATH%;X:\win32\install\bin;X:\win32\install\core\CO_ORBIX\bin;X:\win32\install\core\CO_JDK\bin” Set environment variable by Registry edit If your PATH variable is too long, then the best method would be…
-
Getting AD Group Membership Count
-
Windows 10 – 1809 – RSAT Toolset – error code of 0x800f0954
Getting error code of Add-WindowsCapability failed. Error code = 0x800f0954Run “gpedit.msc” to edit your local computer policy. Computer Configuration\Administrative Templates\System\Specify settings for optional component installation and component repair My local policy seems to have defaulted to “Disabled” – after changing it to “Enabled” and selecting the checkbox labeled “Download repair content and optional features directly…
-
Control your HDD’s AAM/APM through registry
Beware of aggressive APM on Windows 10 Build 1809 If your spinning disks are making clicking noises: In Windows 10 the registry key is: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStorAC\Parameters\Device Create a new dword value named EnableAPM with a 0 value and hdd head parking is gone. Note that iaStorAC might be iaStorA or iaStorAV in some cases. https://msfn.org/board/topic/140404-control-your-hdds-aamapm-through-registry/
-
Collection query Model
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.Model like “%Optiplex 7060%”
-
Dell/HP BIOS UEFI Configuration
Dell Command Configure 3.2.0.209:————————————————————–HAPIInstall.cmd: @echo off if defined programfiles(x86) ( call %0%\..\x86_64\HAPI\HAPIInstall.bat ) else ( call %0%\..\x86\HAPI\HAPIInstall.bat )————————————————————–HAPIInstall.bat: @echo off Echo This file will install HAPI %0\..\hapint64.exe -i -k C-C-T-K -p “hapint64.exe” -q ————————————————————–cctk.cmd bootorder –activebootlist=uefi————————————————————–cctk.cmd –secureboot=enable————————————————————–————————————————————–HP BIOS Configuration Utility 4.0.15.1:————————————————————–BiosConfigUtility64.exe /setvalue:”Boot Mode”,”UEFI Native (Without CSM)”————————————————————–BCU.cmd /setvalue:”Boot Mode”,”UEFI Hybrid (With CSM)”————————————————————–BCU.cmd: @ECHO OFF set cmdline=%*…
-
Use Legalnoticecaption for OSD Failure message
Set the failure message step after Setup Windows and ConfigMgr.Set OSD Failure MessageREG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticecaption /t REG_SZ /d “The Operating System Deployment FAILED!” /f & REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /t REG_SZ /d “Please rerun the imaging task by restarting the boot media or contact the Service Desk.” /f Remove the failure message…
-
GetLocalGroupsSID
$computerName = Read-Host ‘Enter computer name or press <Enter> for localhost’ $List = @{} if ($computerName -eq “”) {$computerName = “$env:computername”} $computer = [ADSI]”WinNT://$computerName,computer” $Users = $computer.psbase.Children | Where-Object { $_.psbase.schemaclassname -eq ‘group’ } foreach ($i in $Users) {$objUser = New-Object System.Security.Principal.NTAccount($i.Name) $strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier]) $list[$i.Name[0]] = $strSid.Value } $list | ft
-
Remove default Apps from Xiaomi Pocophone F1
Before you proceed, please install a launcher such as Nova, since we are removing Poco launcher that is installed by default. 1. You will need to install Minimal ADB fastboot 1.4.3 https://androidfilehost.com/?fid=962187416754459552 2. Open Command prompt as an Administrator 3. In your phone, go to about phone and click 10 times on MIUI version (For…
-
Send Ctrl+Alt+Del to nested remote desktop session
Send Ctrl+Alt+Del to nested RDP session Start Run C:\Windows\explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}
-
Powershell – Get VM Names, Serial Number, Bios UUID
Get-WmiObject -Namespace root\virtualization\v2 -class Msvm_VirtualSystemSettingData | select ElementName, BIOSSerialNumber, BIOSGUID | Sort-Object -Property ElementName
-
Run Boot media without “Press any key to boot from…” message
If it is a traditional PC BIOS then the ISO uses the El Torito boot code (etfsboot.com). In this case deleting \boot\bootfix.bin will work. If it is an EFI BIOS then the ISO should use EFI boot code (efisys.bin). There is also a efisys_noprompt.bin boot code file that can be used when creating the ISO…
-
Automatically Backup MySQL Databases on Windows
Unlike on Linux, when MySQL is running on Windows, most of sys-admins including myself 🙂 found that backup MySQL Databases on Windows is little bit hard. When trying to automate it, then it would definitely become challenge . However there are lots of free and commercial tools are available to automate MySQL backup process on…
-
Disk2VHD on a Hyper-V Generation 2 VM results in an unbootable VHDX
First of all create a new generation 2 VM that we’ll use with our new VHDX we created using Disk2VHD. Don’t create a new vdhx but select to use an existing one and point it to the one we just created with Disk2VHD. Rename it if needed to something more suitable. Don’t boot the VM…
-
Redistribute failed packages
# Redistribute failed packages without clicking view status -> redistribute package $SiteCode = “P01” $PackageState = “3” $FailedPackages = Get-WmiObject -Namespace “Root\SMS\Site_$($SiteCode)” -Query “select * from SMS_PackageStatusDistPointsSummarizer where state = $($PackageState)” if ($FailedPackages.Count -gt 0) { Write-Host “There are $($FailedPackages.Count) Failed Packages at the moment.” } elseif ($FailedPackages) { Write-Host “There is 1 Failed Package…
-
Windows 10 V1803 update creates a new OEM Partition
Some people notice after upgrading to Windows 10 April Update, that there is a new partition (recovery partition with Windows PE). Due to the fact, that a drive letter is assigned, the logical drive will be shown in explorer. And Windows 10 starts with annoying notifications, that the disk is full. This forum post describes…
-
AD: Simple count users in an OU
(Get-ADUser -Filter * -SearchBase “ou=Users,ou=London.UK,ou=EMEA,ou=Divisions,dc=bla,dc=com” -server “bla.com”).count
-
Run Hyper-V in a Virtual Machine with Nested Virtualization – Inception
Prerequisites The Hyper-V host and guest must both be Windows Server 2016/Windows 10 Anniversary Update or later. VM configuration version 8.0 or greater. An Intel processor with VT-x and EPT technology — nesting is currently Intel-only. There are some differences with virtual networking for second-level virtual machines. See “Nested Virtual Machine Networking”. Configure Nested Virtualization…
-
Hyper-V VM Scripts
<# ImportHyperVVM.ps1 Dries Willems 03/12/2014 #> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All -NoRestart Restart-Computer -Wait -For PowerShell -Timeout 600 -Delay 2 Import-Module Hyper-V $ethernet = Get-NetAdapter -Name ethernet $wifi = Get-NetAdapter -Name wi-fi New-VMSwitch -Name EthernetExternalSwitch -NetAdapterName $ethernet.Name -AllowManagementOS $true -Notes ‘Parent OS, VMs, LAN’ New-VMSwitch -Name WiFiExternalSwitch -NetAdapterName $wifi.Name -AllowManagementOS $true -Notes ‘Parent OS, VMs,…
-
Secure Password with PowerShell
Command:(Get-Credential).Password | ConvertFrom-SecureString | Out-File “C:\Temp\ABC_A1000001_PW.txt” Script: $username = “ABC\A1000001” $password = Get-Content ‘\\server.domain.xyz\Scripts\Migration\ABC_A1000001_PW.txt’ | ConvertTo-SecureString $cred = new-object -typename System.Management.Automation.PSCredential ` -argumentlist $username, $password
-
Windows 10: Default Start Menu Layout
The current Start Menu after a successful OSD looked a bit messy: Software that is not installed on the PC doesn’t show up on the Start Menu. (We won’t see any “ghost” tiles or …) Once they install for example Google Chrome or Office 2016, it will show up automatically on the Start Menu. The…
-
Remove default apps in Windows 10
Remove 3D Builder, Alarms and Clock, Calendar and Mail, Contact Support, Cortana, Get Office, Get Skype, Groove Music, Maps, Microsoft Edge, Money, Movies & TV, News, OneNote, Candy Crush, Get Asphalt, People, Phone Companion, Twitter, Sports, Voice Recorder, Weather and XBOX. Get-AppXPackage | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage
-
Install Boot Camp on a old (not supported) Mac running Windows 10 Creators Update
Error: This version of bootcamp is not intended for this computer model. Download Orca or InstEd It and open the BootCamp/Drivers/Apple/BootCamp.msi file using this software. Find the table called LaunchCondition and select Drop table. Save the file and run the BootCamp.msi from within Windows and it should start installing the drivers! Reboot when prompted and…
-
Documenting your Task Sequences Automagically (Update – v2)
Open PowerShell from your sccm console as an admin so you are connected to your site server Just export your task sequence using the following command (Get-CMTaskSequence | Where-Object {$_.Name -eq “YourTaskSequenceName”}).Sequence | Out-File “C:\Temp\YourFileName.xml” Copy tsDocumentorv2.xsl to the same folder as your task sequence. https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/6127/00/00/03/20/49/89/tsDocumentorv2.xsl Open your task sequence YourFileName.xml in your favourite text…
-
OnePlus Reinstall OS with sideloader abd
Recover Solution #1 (Wipe cache, this will clear app setting data but will retain user data) Go to recovery by holding power button + volume down Choose English Choose ‘Wipe data and cache’ Choose ‘wipe cache’ (This will only clear app settings data, other data on the internal storage will not be erased) Choose ‘Yes’…
-
Clear Software Center when a task is stuck at Downloading/Installing
$ccmProgram = Get-WmiObject -Namespace ROOT\CCM\ClientSDK -Class CCM_Program | Where-Object {$_.EvaluationState –eq 14} If ($ccmProgram -ne $null) { $ccmExecutionRequestEx = Get-WmiObject -Namespace ROOT\CCM\SoftMgmtAgent –Class CCM_ExecutionRequestEx | Where-Object {$_.RunningState -eq “NotifyExecution” -and $_.AdvertID -gt “” -and $_.ContentID -eq $ccmProgram.PackageID} If ($ccmExecutionRequestEx -ne $null) { $ccmExecutionRequestEx | Remove-WmiObject Start-Process sc.exe -ArgumentList “config smstsmgr depend= winmgmt/ccmexec” -Wait Restart-Service -Name…
-
Hyper-V Manager: Access Denied. Unable to establish communication between … and …
Virtual Machines Access denied. Unable to establish communication between ‘Hyper-V Server’ and ‘Hyper-V Manager’. This is puzzling since the workstation has been connected to this particular Hyper-V server many times using other network profiles. The profile we created for the Microsoft folks was seemingly giving us the connection issue. The fix took a bit of…
-
Clear the cache when using 1E Nomad
cachecleaner -deleteall -force=3
-
Install Drupal core with theme/Composer/Git/Commerce on your localhost
Install XAMPP https://www.apachefriends.org/index.html Select Apache and MySQL when installing Config Apache -> Edit php.ini upload_max_filesize=6M Create DB utf8_general_ci + Import sql dbCreate User & assign permissions on DB ——————————————————- Install Drupal 8.x 1. Unzip the Startup Growth Drupal theme package. 2. Locate the [site]/[d8] directory and upload its content to your server. This directory includes…
-
Query BIOS Versions
SELECT CompName.Name0 as ‘Computer Name’, CompSys.Manufacturer0 as ‘OEM’, CompSys.model0 as ‘Model’, BIOS.SMBIOSBIOSVERSION0 as ‘BIOSVersion’, BIOS.ReleaseDate0 as ‘Release Date’ FROM V_R_System as Sys LEFT JOIN V_GS_PC_BIOS as BIOS on Sys.resourceid = BIOS.resourceid LEFT JOIN V_GS_COMPUTER_SYSTEM as CompSys on Sys.resourceid = CompSys.resourceid LEFT JOIN V_GS_SYSTEM as CompName on Sys.resourceid = CompName.resourceid GROUP BY CompSys.Manufacturer0,CompSys.model0, BIOS.SMBIOSBIOSVersion0, CompName.Name0, BIOS.ReleaseDate0…
-
Repair SCCM Client issues
Great Client repair utility SCCM Client Tool for 1.fixing WMI issues 2. Ping issues 3. Client Health issues 4. change client cache size 5. Install / Uninstall SCCM Client 6. Repair Update Cycles …. etc The tool is downloadable as a ZIP file that contains four files: ClientActionsTool.hta – The tool itself. Cmdkey.exe – command…
-
Troubleshoot Management Points
Troubleshooting: Invalid MP cert info; no signature Failed to query http://… for MP location Step 1) verify the mplist and mpcert http://server.bla.com/sms_mp/.sms_aut?mplist http://server.bla.com/sms_mp/.sms_aut?mpcert if you get the cert page and mp list the mp is working https://technet.microsoft.com/en-us/library/Bb932118.aspx?f=255&MSPPError=-2147217396
-
Alternative download location for HP Softpaq’s
I’ve got some corrupt softpaq downloads usinghttps://ftp.hp.com/pub/caps-softpaq/cmit/HP_Driverpack_Matrix_x64.html ftp://ftp.hp.com/pub/softpaq/sp66001-66500/ This one is working ftp://g4u0180.houston.hp.com/ftp1/pub/softpaq/sp66001-66500/
-
Install Windows XP on SSD with AHCI mode
Install first Windows XP 32bit on the SSD with IDE mode enabled. Download Intel® Matrix Storage Manager IATA89CD.exe https://downloadcenter.intel.com/download/17882/Intel-Matrix-Storage-Manager Open CMDNavigate to IATA89CD.exe with cd Extract:IATA89CD.exe -a Navigate to C:\Program Files\Intel\Intel Matrix Storage Manager\winall\Driver Copy/paste all files from that folder into C:\WINDOWS\system32\drivers Open Device Manager Go to IDE ATA/ATAPI controllers Rightclick to update driver on…
-
Where is the EndPoint setting for VM in new Azure portal?
The endpoint settings in VM allows us to configure the incoming traffic such as remote desktop, custom http ports (Teamcity, OctpusDeploy and etc.) to VM. It was pretty easy to find that setting on old HTML5 azure portal https://manage.windowsazure.com. VM EndPoint Setting in old Azure portal But you can’t use the new type of VM…
-
Secure Delete Files Permanently with SDelete
Secure Delete Files Permanently with SDelete Contents of the Software Package: – sdelete.exe – sdeleteEULA.reg: ————————————————- Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Sysinternals\SDelete] “EulaAccepted”=dword:00000001 ————————————————- Tasksequence: Restart Computer to WinPE – Secure Wipe C Drive — Copy SDelete xcopy.exe “.\*.*” “%WinDir%” /E /C /Q /H /R /Y /I Package: SDelete — Accept SDelete EULA regedit.exe /S…
-
Add Packages to WinPE
Dism /Mount-Image /ImageFile:”C:\Temp\prodbootv62\sources\boot.wim” /index:1 /MountDir:”C:\Temp\Mount” ## Dependencies: Install WinPE-WMI > WinPE-NetFX > WinPE-Scripting > WinPE-PowerShell Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-HTA.cab” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-WMI_en-us.cab” Dism /Add-Package /Image:”C:\Temp\Mount” /PackagePath:”C:\Program…
-
Auto Apply Drivers or Apply Driver Package
Auto Apply Drivers This action relies on Plug’n’Play (PNP) detection from within Windows PE (WinPE) to scan the hardware that is present, and send this list to the Management Point (MP). The MP replies with a list of compatible drivers that are available on local Distribution Points (DPs), and the Task Sequence downloads and installs…
-
Delegate Control Domain Join failed
NetpJoinDomainOnDs: Function exits with status of: 0x216d 0x216d = ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED “Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased.” By default any authenticated user can add up…
-
Status Message Queries: Monitor Office 365 Installation
Peter Monten gave me a cool query for SCCM 2012 to monitor an deployment.It is compatible with all deployments in SCCM and so I changed it for our Office 365 – 2016 rollout. select stat.*, ins.*, att1.*, att1.AttributeTime from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as…
-
Unable to export Task Sequence with dependencies in SCCM 2012 R2 SP1
System.NullReferenceException Object reference not set to an instance of an object. Stack Trace: at Microsoft.ConfigurationManagement.Migration.ObjectSerialization.Modeling.PrototypeImpl.TryGetPropertyValue(Object instance, String propertyName, Object& value) at Microsoft.ConfigurationManagement.Migration.ObjectSerialization.Modeling.EntityHandle.TryGetValue[T](String propName, T& value) at Microsoft.ConfigurationManagement.AdminConsole.MigrationAssistant.ExportPageControl.relatedWoker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) Remove the checkmark “Use an unattended or Sysprep answer file…” from Apply OS step, the export goes fine. https://social.technet.microsoft.com/Forums/en-US/00b7fc39-f639-48e1-ba07-0604b29e49b1/unable-to-export-task-sequence-with-dependencies-in-sccm-2012-r2-sp1?forum=configmanagerosd
-
Update group membership without reboot
One solution would be to reboot the computers in the environment. This would clear the Kerberos tickets from all session caches. However, rebooting a server is not always allowed in production and in some cases the server needs to be available 24×7. klist -li 0:0x3e7 purge
-
Where is Tools ConfigMgr Service Manager Option in CM 2012 Console
Monitoring\Overview\System Status\Component Status http://anoopcnair.com/2012/06/05/configmgr-sccm-2012-where-is-tools-configmgr-service-manager-in-cm12-console/
-
Tasksequence detect freespace on disk
WMI Query in Tasksequence root\cimv2Select * from Win32_LogicalDisk where name = “C:” and FREESPACE > 5368709120
-
Validating file permissions and getting driver attibutes takes a lot of CPU and time on SCCM 2012 R2 SP1 CU1
Good news, there is a hotfix available! https://support.microsoft.com/en-us/kb/3084586
-
Activate Windows 10 on KMS
Because there is still no new server key available (2016).VLSC has provided us a special Windows 10 activation key. Windows Srv 2012R2 DataCtr/Std KMS for Windows 10 For those guys who don’t understand this.To activate Windows Clients on KMS running Windows Server, you need the Server Key to activate your client.
-
Retrieve Windows 10 key after upgrade
Option Explicit Dim objshell,path,DigitalID, Result Set objshell = CreateObject(“WScript.Shell”)‘Set registry key pathPath = “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\”‘Registry key valueDigitalID = objshell.RegRead(Path & “DigitalProductId”)Dim ProductName,ProductID,ProductKey,ProductData‘Get ProductName, ProductID, ProductKeyProductName = “Product Name: ” & objshell.RegRead(Path & “ProductName”)ProductID = “Product ID: ” & objshell.RegRead(Path & “ProductID”)ProductKey = “Installed Key: ” & ConvertToKey(DigitalID) ProductData = ProductName & vbNewLine & ProductID &…
-
Multicast: Encountered error transferring file 800705B4
Un-checked Allow this package to transfered via multicast at package/image properties. Cleared SerializedMCSKey and SignedSerializedMCSKey in registry (HKLM\Software\SMS\MCS). Unchecked enable multicast at dp properties. Checked enable multicast at dp properties. Checked Allow this package to transfered via multicast at package/image properties. ConfigMgr 2012 R2 MultiCast issue smsts.log showing HRESULT=800705B4)
-
Remove Duplicate SSRS Folders & Solve SSRS not working issues
* Uninstall old SCCM Client C:\Windows\ccmsetup\ .\ccmsetup.exe /uninstall * Clean CCM WMI Get-WmiObject -Namespace “root” -Query “SELECT * FROM __Namespace where name= ‘ccm’” | Remove-WmiObject * Uninstalled Reporting Services Point Role from SCCM 2012 R2 * Ran the script by (Mike Laughlin) after editing “SiteCode” & “Server Name” to clean up OLD files leaving only…
-
Error 3: Installing Java Runtime Environment 8u65 or 8u66
In case you are wondering, normally I would open the EXE’s and extract the MSI’s. But today I decided to use the EXE’s with the default commands that Oracle delivers us. Had some problems with SCCM depencies and with little time, I used a batch file. When using SCCM and installing it with SYSTEM credentials,…
-
Example WQL Queries for Configuration Manager
Example: Computers that run Windows 7 Use the following query to return the NetBIOS name and operating system version of all computers that run Windows 7. Tip: To return computers that run Windows Server 2008 R2, change %Workstation 6.1% to %Server 6.1% SELECT * FROM SMS_R_System WHERE OperatingSystemNameAndVersion LIKE ‘%Workstation 6.1’ Example: Computers with a…
-
Windows 10: Default File Explorer view “This PC”
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced LaunchTo DWORD 1 = This PC 2 = Quick access
-
SCCM Logs
https://technet.microsoft.com/en-us/library/hh427342.aspx
-
New installation of SCCM 2012 R2 SP1
Upgrading your installation: If you have a System Center 2012 R2 Configuration Manager installation, you can use the System Center 2012 Configuration Manager SP2 media to install the latest patches and automatically upgrade to System Center 2012 R2 Configuration Manager SP1. New installation: Install System Center 2012 Configuration Manager SP2 first, and then install System…
-
Hyper-V Server 2012 R2 Explorer
Configuring the firewall I already explained Server Core acts as a file server without installing anything. All you need to do is permit file services through the firewall. In the standard firewall configuration there’s already a pre-built exception you can enable by typing the following command: netsh firewall set service fileandprint https://dirteam.com/sander/2007/09/19/getting-installation-files-onto-server-core/