you can Windows tell to synchronise your PCs time time with an NTP time server of your choice.
For example the german “Physikalisch-Technische Bundesanstalt (PTB)”, which is the responsible authority of the DCF77 (Time) transmitter, operates three of them:
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
To set these server as timesource use the following command with Administrator rights:
If the the W32time service does not exists, register them
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7600.16385
Processing 1 of 1 - Adding package Microsoft-Windows-Client-Refresh-LanguagePack-Package~31bf38....
[================== 32.7% ]
reboot the system after installation.
Check for installed languages
C:\Windows\system32>dism /online /Get-intl
Reporting online international settings.
Default system UI language : en-US
System locale : de-DE Default time zone : W. Europe Standard Time
Active keyboard(s) : 0407:00000407, 0409:00000409
Keyboard layered driver : PC/AT Enhanced Keyboard (101/102-Key)
Installed language(s): de-DE
Type : Fully localized language.
Installed language(s): en-US
Type : Fully localized language.
The operation completed successfully.
Now you change the UI from command line language by intlcfg.exe, which is included in the Windows Automated Installation Kit (WAIK) or form the Regional Settings Control Panel intl.cpl.
this script repairs and recreates the WMI Repository of a Windows. For example, this occurs sometimes if you clone a Windows machine with an installed SCCM/SMS Client. The typical error in this case is “Failed to open to WMI namespace ‘\\.\root\CCM\SoftwareUpdates\DeploymentAgent’ (8007045b)”
Lasts start. Start a Powershell console as Administrator. Stop all services. Sometimes other services depends on the WMI Service and does not accept a stop request. Therefore you cannot stop the WMI service. TrendMicro Office is such a service. You have to kill them by TaskManager.
# Stop WMI
# Only if SCCM/SMS Client is installed. Stop ccmexec.
Stop-Service -Force ccmexec -ErrorAction SilentlyContinue
Stop-Service -Force winmgmt
(Re)Register WMI binary components
[String[]]$aWMIBinaries=@("unsecapp.exe","wmiadap.exe","wmiapsrv.exe","wmiprvse.exe","scrcons.exe")
foreach ($sWMIPath in @(($ENV:SystemRoot+"\System32\wbem"),($ENV:SystemRoot+"\SysWOW64\wbem"))){
if(Test-Path -Path $sWMIPath){
push-Location $sWMIPath
foreach($sBin in $aWMIBinaries){
if(Test-Path -Path $sBin){
$oCurrentBin=Get-Item -Path $sBin
Write-Host " Register $sBin"
& $oCurrentBin.FullName /RegServer
}
else{
# Warning only for System32
if($sWMIPath -eq $ENV:SystemRoot+"\System32\wbem"){
Write-Warning "File $sBin not found!"
}
}
}
Pop-Location
}
}
for a lot of powershell scripts Administrator permissions are necessary. In powershell, you can check if you are elevated by the following script code.
Insert the snippet at the top of your script. It checks the credentials and exits the script if the administrator permissions are missing. Continue reading Powershell: Check for Administrator rights→
My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…
This website uses cookies to improve your experience and to serv personalized advertising by google adsense. By using this website, you consent to the use of cookies for personalized content and advertising. For more information about cookies, please see our Privacy Policy, but you can opt-out if you wish. AcceptRejectRead More
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.