Category: IT
-
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…
-
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 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…
-
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
-
Enable PowerShell Remote Shell for Hyper-V Manager
With the SkipNetworkProfileCheck parameter, you can just ignore the warning: Enable-PSRemoting -SkipNetworkProfileCheck -Force
-
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/
-
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}
-
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…
-
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…
-
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…
-
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…
-
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…
-
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
-
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 &…
-
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/
-
Versions of Microsoft products
https://buildnumbers.wordpress.com/
-
Enable dotNet 3.5 on Windows 10
Windows 10 comes with .NET framework 4.5 pre-installed, but many apps developed in Vista and Windows 7 era require the .NET framework v3.5 installed along with 4.5. These apps will not run unless you will install the required version. When you try to run any such app, Windows 10 will prompt you to download and…
-
Windows failed to apply the TCPIP settings
Remove the following file”C:\Windows\System32\GroupPolicy\Machine\Registry.pol” run gpupdate /force
-
Accessing HKCU and HKCR from Remote Registry
When you open registry editor and connect to a remote system, the only hives you will see are HKEY_LOCAL_MACHINE and HKEY_USERS. The other two hives, HKEY_CLASSES_ROOT and HKEY_CURRENT_USER are there too, but are under the two visible hives. So for all purposes, I am only going to explain here how to access the once that…
-
Virtual Machine tweaks for a better performance
Over the last couple of months I gathered the following tweaks for a better performance insight the virtual machine, besides disabling / uninstalling useless services and devices: – Disable the pre-logon screensaver: Open Regedit HKEY_USERS\.DEFAULT\Control Panel\Desktop Change the value of “ScreenSaveActive” to 0. – Disable updates of the last access time attribute for your NTFS…
-
SCCM collection to list all the Laptop computers
You can identify if the computer is Laptop or Desktop based on its chassis Types. Below are listed the Chassis types available to create SCCM collection or reports. For Laptops Chassis Types : 8 , 9, 10, 11, 12, 14, 18, 21 For Desktop Chassis Type : 3, 4, 5, 6, 7, 15, 16 For…
-
MSI Products
HKEY_CLASSES_ROOT\Installer\Products of HKLM\Software\Classes\Installer\Products
-
Collection queries for SCCM 2012 R2 CU3 Update
COL_Devices_without_ClientUpdate_2012R2CU3 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 inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceID = SMS_R_System.ResourceId where SMS_G_System_COMPUTER_SYSTEM.SystemType = “x64-based PC” and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.DisplayName = “CCM Framework” and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version >= “5.00.7958.1000” and SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version < “5.00.7958.1401” COL_Devices_with_SCCM_Console 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_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName like “%System Center 2012…
-
Redistribute a hidden package SCCM 2012
Redistribute a hidden package. Apply the following powershell script $SiteCode = “XXX” $PackageID = “XXX00003” $distpoints = Get-WmiObject -Namespace “root\SMS\Site_$($SiteCode)” -Query “Select * From SMS_DistributionPoint WHERE PackageID=’$PackageID’” foreach ($dp in $distpoints) { $dp.RefreshNow = $true $dp.Put() } https://social.technet.microsoft.com/Forums/en-US/d2e5366f-f7c3-4691-9011-ad35ed25ab74/configuration-manager-client-upgrade-package-missing?forum=configmanagerdeployment&prof=required
-
SCCM 2012: Failed to get client identity (80004005)
PXE keeps rebooting after “preparing Network connection”. Errors: “reply has no message header marker”, “Failed to get client identity (80004005)”, “Failed to request for client” OSD Boot media cannot see TS Resolution: Set correct time in BIOS! cmd:datetime http://777notes.wordpress.com/2012/10/09/sccm-2012-failed-to-get-client-identity-80004005/
-
Change StagingDrive Offline servicing of Operating System Images
You can keep your operating system images updated with the latest software updates from Microsoft using the offline servicing feature of Configuration Manager. Here are a few facts you may not know: Software updates content is not retrieved over the wide area network, rather it is obtained locally from the Configuration Manager content library on…
-
SCCM 2012 Task Sequence – Install all updates
1: Scan for updatespowershell.exe -command “([wmiclass]’root\ccm:SMS_Client’).TriggerSchedule(‘{00000000-0000-0000-0000-000000000113}’)” 2: Wait for Scan to Finishpowershell.exe -command start-sleep 500 3: Install All Updates 4: Restart Computer Re-apply these steps 3 times
-
How to Update the Surface Pro 3 Firmware Offline using a USB Drive
Today’s blog post is a collaboration between our PFE group and premier support. Joao Botto (PFE), Kyle Blagg (PFE), and Scott McArthur (Support) are writing about their favorite device. You will see this post in the askpfeplat and askcore blogs. Some of you may know that we launched Surface Pro 3 before its gigabit network…
-
Create empty file for unique driver import in SCCM 2012
By simply adding a unique text file to the driver folder it creates a different hash value and allows you to import the same driver even if the actual drivers already have been imported. Just put the above code into a batch file at the root of your directory structure for a given model and…
-
Excluding specific computers from becoming ConfigMgr 2012 clients
This registry editing trick has been around forever, but still works in ConfigMgr 2012! In fact, it’s the preferred way to keep the ConfigMgr client software from installing on specific computers in your organization. A couple NOTEs: This only blocks ConfigMgr client software when using the site-wide automatic push method. You can still use any…
-
XCOPY Files / Folder
Filexcopy fzdefaults.xml “%ProgramFiles(x86)%\FileZilla FTP Client\fzdefaults.xml”* /I /S /Y /C /R xcopy *.ora “c:\oracle\product\11.2.0\client_86\network\admin\”* /I /S /Y /C /R Folders & Subfoldersxcopy .\swl\*.* C:\SWL /I /S /Y /C /R
-
Importing Existing Computers into a Device Collection
Main Installer http://myITforum.com/myitforumwp/wp-content/uploads/2012/06/SCCMRCT1.0.zip Updates for 2012 http://myITforum.com/myitforumwp/wp-content/uploads/2012/06/2012Update1.0.EXE.zip Fixes the issue with restarting the ConfigMgr Agent Host on the client tools http://myITforum.com/myitforumwp/wp-content/uploads/2012/06/2012Update1.21.exe Fixes the issue with performing an Application Deployment Evaluation Cycle on both clients and collections http://myITforum.com/myitforumwp/wp-content/uploads/2012/09/2012Update1.34.exe Fixes the issue with files being copied to the wrong location. https://social.technet.microsoft.com/Forums/en-US/c5aaaa8e-cdd8-400b-8749-8a233a3f0a52/importing-existing-computers-into-a-device-collection?forum=configmanagergeneral&prof=required ConfigMgr 2012 – Powershell Right Click…
-
Speed Up SCCM TFTP Performance to PXE clients
It’s possible to change the size of the blocks used for the Trivial File Transfer Protocol (TFTP) transfer; the larger the block size, the greater the performance. Microsoft’s recommendation is to not set higher than 16384; in addition, you must use multiples of 4096, such as 8192, 16384, and so on. I got a huge…
-
Apply Operation System Failes SCCM 2012 Migration
Task Sequence problem after SCCM 2007 to SCCM 2012 R2 migration Ran into some problem after I had migrated a SCCM 2007 site to SCCM 2012 R2 CU3 When running the Task Sequence I got the following errors in SMSTS.LOG Empty location for package: _SMSTSXXX000F1 ApplyOperatingSystem Installation of image 1 in package XXX000F1 failed to…
-
Adobe Reader XI MUI Installation does only install English
My client had a problem with an update of Adobe Reader version 11. After updating, only english was available.The update was a MUI version … After verifying the files and folders, I noticed that the “Locale” folder wasn’t created.I installed Adobe Reader 11 MUI normaly (not in silent mode) and choose another language then English.…
-
Disable Java Add-On in Internet Explorer
Computer Configuration (Enabled) Policies Administrative Templates Policy definitions (ADMX files) retrieved from the central store.Windows Components/Internet Explorer/Security Features/Add-on Management Policy Setting Comment Add-on List Enabled Add-on List {761497BB-D6F0-462C-B6EB-D4DAF1D92D43} 0 {DBC80044-A445-435B-BC74-9C25C1C588A9} 0
-
Update NTP Server
w32tm /configure /manualpeerlist:”be.pool.ntp.org” /syncfromflags:manual /reliable:yes /update net stop w32time net start w32time w32tm /resync /rediscover
-
Run VBScripts OSD Task Sequence
Backup RegistryREG EXPORT HKLM\Software\Microsoft\COM3 %temp%\com.reg /y Change Registry KeyREG ADD HKLM\Software\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f Move Computer to New OUwscript.exe Move_Comp_To_OU.vbs “OU=New,OU=Computers,OU=XX,DC=XX,DC=XX”Disable 64-bit file system redirectionPKG_XX_OSD_ScriptsXX.XX\srv-dom Restore Registry BackupREG IMPORT %temp%\com.reg
-
Install Fonts on Windows 7 OSD Task Sequence
Copy Fonts to Tempxcopy *.ttf %SystemDrive%\Temp /Y /I /QPKG_XX_XX Set PowerShell Execution PolicyPowershell.exe -noprofile -command “Set-ExecutionPolicy Bypass LocalMachine” -force Run Add-Font.ps1Powershell.exe -noprofile -file Add-Font.ps1 -path “%SystemDrive%\Temp”PKG_XX_OSD_Scripts Revert PowerShell Execution PolicyPowershell.exe -noprofile -command “Set-ExecutionPolicy RemoteSigned LocalMachine” -force Remove C:\Tempcmd.exe /c rmdir “%SystemDrive%\Temp” /S /Q
-
Disjoin of a domain computer
Windows 7: Install Package KB958830 cmd /c start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationTools run batfile ==> @echo off hostname.exe > __t.tmp set /p host=<__t.tmp del __t.tmp c:\windows\system32\netdom.exe remove /d:mydomain %host% /ud:mydomain\serviceaccount /pd:P@ssw0rd Windows Server 2012 R2: DISM /online /enable-feature /featurename=ActiveDirectory-Powershell /all @echo off hostname.exe > __t.tmp set /p host=<__t.tmp del __t.tmp c:\windows\system32\netdom.exe remove /d:data %host%
-
Run CMD within the App-V bubble
PS H:\> $appv=get-appvclientpackage -name *visio*PS H:\> $appv PackageId : 7828a894-5155-4f3d-923e-a0b91ce5835cVersionId : a6ec2f50-114b-4cee-ba42-277cb70b6f46Name : SDV_Microsoft_VisioPrem_2010SP2_01.00_ENVersion : 0.0.0.1Path : C:\WINDOWS\ccmcache\57\SDV_Microsoft_VisioPrem_2010SP2_01.00_EN.appvIsPublishedToUser : TrueUserPending : FalseIsPublishedGlobally : FalseGlobalPending : FalseInUse : TrueInUseByCurrentUser : TruePackageSize : 1671256007PercentLoaded : 100IsLoading : FalseHasAssetIntelligence : True PS H:\> Start-AppvVirtualProcess -FilePath cmd.exe -AppvClientObject $appv
-
Sequence Visio 2010 with App-V 5.0 SP2
http://support.microsoft.com/kb/2830069 1. Install OffVirt Office2010AppVKit-x64.exehttp://www.microsoft.com/en-us/download/details.aspx?id=10386 msiexec /i OffVirt.msi ADDLOCAL=OSpp,OSpp_Core,OSppWoW64 PROPLUS=1 VISIOPREM=1 PIDKEYS=CK796-QYJ67-JVKWX-QJ9GD-W3CKX USEROPERATIONS=1 2. Download and Extract the Office 2010 sequencing kit for App-V Microsoft Office 2010 Sequencing Kit for Microsoft Application Virtualization 5.0.EXEhttp://www.microsoft.com/en-us/download/details.aspx?id=38399 3. Start the App-V Sequencer Click on Tools -> Options… Open the “Exclusion Items” tab and add the following: [{Common AppData}]\Microsoft\OfficeSoftwareProtectionPlatform…
-
Remotely Unpublish and Remove App-V 5.0 Package
Run Powershell(x86) as an Administrator Enter-PSSession -ComputerName LAP123 -Credential Labo\Admin Get-AppvClientPackage -All Unpublish-AppvClientPackage PackageId VersionId Remove-AppVClientPackage PackageId VersionId Don’t forget to remove the folder in the SCCMcache!\\LAP123\c$\Windows\ccmcache\..
-
Detect Installed KB with Powershell & VBScript for SCCM 2012
get-hotfix | Where-Object {$_.HotFixID -match “KB2835517”} wusa.exe “Windows6.3-KB2835517-x64.msu” /quiet /norestart /log:%WINDIR%\Temp\Install_SDC_Microsoft_MediaPack_1.0_01.00_ML.log wusa.exe /uninstall “Windows6.3-KB2835517-x64.msu” /kb:KB2703761 /quiet /norestart /log:%WINDIR%\Temp\Uninstall_SDC_Microsoft_MediaPack_1.0_01.00_ML.log _____________________________________________________________ <span class=”rem”>’Returns info if Windows Management Framework 3 in installed</span> <span class=”rem”>’ ———————————————————-‘ </span> <span class=”kwrd”>Option</span> Explicit <span class=”kwrd”>Dim</span> objWMIService, strComputer strComputer = <span class=”str”>"."</span> <span class=”rem”>’Run the query</span> <span class=”kwrd”>Set</span> objWMIService = GetObject(<span class=”str”>"winmgmts:"</span> _…
-
Sort by OS Language
DE: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage” (REG_SZ) equals “0407” EN: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage” (REG_SZ) equals “0409” FR: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage” (REG_SZ) equals “040C” NL: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage” (REG_SZ) equals “0413”
-
Temp
setup.exe /Q /W /I setup.ini msiexec /X {5783F2D7-D028-0409-0100-0060B0CE6BBA} MSIRESTARTMANAGERCONTROL=Disable /qb-! http://forums.autodesk.com/t5/DWG-TrueView/DWG-Trueview-2013-silent-installation-on-different-path-Windows/td-p/3467892 http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=9078813 ——————- http://www.itninja.com/software/xmind/xmind/3-5187 http://www.xmind.net/download/win/ Installation: xMind 3.1.1.exe /S Deinstallation: %ProgramFiles%\XMind\uninstall.exe /S No Upadate: you have to create and copy the org.xmind.cathy.prefs file. The file must include following rows: eclipse.preferences.version=1 checkUpdatesOnStartup=false and copy it to: %AppData%\XMind\workspace-cathy\.metadata\.plugins\org.eclipse.core.runtime\.settings No Dialog on Startup: like no update. You need…
-
IE Default Searchprovider
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]“DefaultScope”=”{012E1000-F331-11DB-8314-0800200C9A66}”“KnownProvidersUpgradeTime”=hex:1c,21,6c,bd,bf,2b,cf,01“Version”=dword:00000003“UpgradeTime”=hex:e4,ab,d7,bd,bf,2b,cf,01 [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{012E1000-F331-11DB-8314-0800200C9A66}]“DisplayName”=”Google”“URL”=”http://www.google.com/search?q={searchTerms}&sourceid=ie7&rls=com.microsoft:{language}:{referrer:source}&ie={inputEncoding?}&oe={outputEncoding?}”“ShowSearchSuggestions”=dword:00000001“SuggestionsURL”=”http://clients5.google.com/complete/search?q={searchTerms}&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}”“FaviconURL”=”http://www.google.com/favicon.ico““FaviconPath”=”C:\\Users\\vantorre\\AppData\\LocalLow\\Microsoft\\Internet Explorer\\Services\\search_{012E1000-F331-11DB-8314-0800200C9A66}.ico” [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}]“Deleted”=dword:00000001
-
Troubleshooting Application Catalog
Troubleshooting tips for client communication to the Application Catalog: Ensure that the Configuration Manager client is successfully assigned to a site and operational by checking LocationServices.log and ClientIDManagerStartup.log. Verify that the client can communicate with the management point. For example, check out any HTTP errors in the CcmMessaging.log file. Check the LocationServices.log file for any…
-
Deploy printer drivers during ConfigMgr task sequence
Last week it was needed to install printer drivers on already deployed Windows 7 systems. Because driver packages can be used only during OS deployment (within a task sequence) that was not an option. Lucky me I found another way for doing this, just use the PnPutil command to do this. Let’s have a look…
-
Query OS+Program
select * from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId where SMS_R_System.OperatingSystemNameandVersion = “Microsoft Windows NT Workstation 6.3” and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = “Adobe Reader XI (11.0.05) MUI”
-
Application Catalog and Software Center in System Center 2012 Configuration Manager
Object type Collection resources Deployment Application Catalog Software Center Application Users or groups Available deployment, does not require approval Yes After installation is initiated successfully from the Application Catalog Users or groups Available deployment, requires approval Yes After the application is approved Users or groups Required deployment No Yes Computers Available or required deployment No…
-
SCCM User/System Query
Reminder for myself 😉 Device Collection:select * from SMS_R_System where SMS_R_System.SystemGroupName = “DATA\\GG_SDC_IBM_Notes_ML_PROD” User Collection (managedby):select SMS_R_USER.ResourceID,SMS_R_USER.ResourceType,SMS_R_USER.Name,SMS_R_USER.UniqueUserName,SMS_R_USER.WindowsNTDomain from SMS_R_User where SMS_R_User.DistinguishedName in (select SMS_R_System.managedBy from SMS_R_System where SMS_R_System.SystemGroupName = “DATA\\Domain Computers”) and SMS_R_User.UserGroupName = “DATA\\GG_SDV_FreeMind_FreeMind_ML_PILOT” AD Computer Object: Managedby field must be filled in!
-
SMSTS.LOG
Reminder for myself 🙂 During OS Deployment Before your hard drive is formatted and partitioned X:\windows\temp\smstslog\ After your hard drive is partitioned formatted X:\smstslog\ and then is in C:\_SMSTaskSequence\logs\smstslog\ Within Windows Within Windows before the SCCM agent is installed: C:\_SMSTaskSequence\logs\smstslog\ Within Windows after the SCCM agent installed: C:\windows\system32\ccm\logs\smstslog\ When the Task Sequence completes on a…
-
Remove Welcome to Google Chrome window
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Google\Chrome] “SyncDisabled”=dword:00000001 You need to enable the StartUp Pages in the GPO. Enable Action on startup and the other, URLs to open at startup and enter the URL(s) you want to open. and use GPO for settings master_preferences does not work on 32.0 …
-
Enable dotNet 3.5 on Windows 8.1
Use the same OS when using DISM! Offline Image:Dism /Get-WIMInfo /WimFile:C:\Temp\install.wimDism /Mount-WIM /WimFile:C:\Temp\install.wim /Name:”Windows 8.1 Enterprise N” /MountDir:C:\Temp\offlineDism /Image:C:\Temp\offline /Enable-Feature /FeatureName:NetFX3 /All /Source:D:\sources\sxs /LimitAccessCopy languages to C:\TempDism /Image:C:\Temp\offline /Add-Package /PackagePath:C:\Temp\de-deDism /Image:C:\Temp\offline /Add-Package /PackagePath:C:\Temp\fr-frDism /Image:C:\Temp\offline /Add-Package /PackagePath:C:\Temp\nl-nlDism /Unmount-WIM /MountDir:C:\Temp\offline /Commit Current Image:Dism /Online /Enable-Feature /FeatureName:NetFX3 /All /Source:D:\sources\sxs /LimitAccess Remember:First add NetFX3 and add the languages later…
-
Can’t boot from Win7 USB drive on Apple Computer
I can’t boot from a Windows 7 USB pen drive on my iMac begin 2008 (shortname IM81) Verify Apple Computer Version on wikipedia http://en.wikipedia.org/wiki/Intel_iMac If you have only 2 options in the boot camp assistant, or if bootcamp doesn’t recognize the windows installer disk when its on a bootable usb, it’s because bootcamp doesn’t recognize…