TechShizz | All posts tagged 'Operating Systems'

Features on Demand

Get list of Windows Features/Roles

 

get-windowsfeature

======================================

To uninstall a single feature/role

 

Uninstall-WindowsFeature DHCP -remove

======================================

To uninstall all Features/Roles not installed


Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $False } | Uninstall-WindowsFeature -Remove

======================================

To install a removed feature

Insert the iso or CD, and this will be used as the source for the binaries.

 

Install-WindowsFeature DHCP -source D:\sources\sxs

Install-WindowsFeature DHCP -source WIM:D:\sources\install.wim:1


 

REMEMBER to select the correct Index for the WIM file. Must be same Index as the current OS.


 

Windows Update Fix

If windows update fails to install try this:
Step by step instructions to get the issue fixed.

 

a) Press Windows key + X and select Command Prompt (Admin).

  

b) On the open Command Prompt window copy and paste the commands (all at once)

 

net stop wuauserv

 

net stop cryptSvc

 

net stop bits

 

net stop msiserver

 

ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

 

ren C:\Windows\System32\catroot2 catroot2.old

 

net start wuauserv

 

net start cryptSvc

 

net start bits

 

net start msiserver

 

c) Wait for the process to complete.

 

d) Close the Command Prompt.

 

 

Now, try to install Windows Updates again and check if it helps.

 

=======================================================

 

I was getting this error too, but solved removing a value from registry:

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability
    • ThresholdOptedIn

How is my registry now (downloading updates):


Sysprep - Fatal error occurred while trying to sysprep the machine

This error shows that sysprep was run multiple times on the machine, please open a command prompt, type: slmgr /dlv to view how many times of remaining Windows Activation count. Generally speaking, to sysprep the image on a single computer for multiple times, you need to configure the Microsoft-Windows-Security-SPP | SkipRearm to 1 in the unattend.xml file. I am assuming whether you configure the Microsoft-Windows-Security-Licensing-SLC | SkipRearm to 1 instead of SPP, the SLC setting is deprecated and should not be used.  

As a work around of this problem, please type: regedit in the Start Search box to open Registry Editor, set the value of GeneralizationState under HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus to 7, then run sysprep again.

If the same issue still persists, please unistall the MSDTC and Reinstall it, then try the sysprep.

To uninstall MSDTC :- msdtc -uninstall

To reinstall  MSDTC :- msdtc –install

 

From <https://social.technet.microsoft.com/Forums/windows/en-US/425bd101-8a87-488c-b2e2-9f2f8113a0d9/sysprep-fatal-error-occurred-while-trying-to-sysprep-the-machine?forum=w7itproinstall>