wmic group WHERE Name="oldname" CALL Rename "newname"
Category: Windows
forfiles – run commands for each file in a location
forfiles allows command line users to run commands for each file in a location. Some of the tasks that the forfiles command can be used to do are deleting old files and renaming files. It a native command in Vista or newer. For WinXP you can find it in the Recource Kit.
Example:
forfiles -p "E:\VideoArchiv" -s -m *.asf -d -01.01.2014 -c "cmd /c echo @path >> E:\del.txt"
How to Kill a Windows Service which is stuck at stopping
Find PID:
sc queryex <service name>
Kill process:
taskkill /F /PID <Service PID>
[via]http://stackoverflow.com/questions/6297071/stopping-a-windows-service-when-the-stop-option-is-grayed-out[/via]
Install .NET Framework 3.5 (incl. 2.0 and 3.0) on Windows/Windows Server
- Windows 8.x
- Windows 10
- Server 2012 R2
- Server 2016
- Server 2019
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:<drive>:\sources\sxs
Easy access the Windows 8 or 10 Boot Options Menu
Hold down [Shift] while choosing Restart
or
shutdown.exe /r /o
Verifying Active Directory Installation
Check the status of the shared SYSVOL
dcdiag /test:netlogons
Verify DNS registration and functionality
dcdiag /test:dns
Verify communication with other domain controllers
nltest /dclist: <domain name>
Verify replication with other domain controllers
dcdiag /test:replications
Verify the availability of the operations masters
dcdiag /s: domaincontroller /test:knowsofroleholders /verbose dcdiag /s: domaincontroller /test:fsmocheck
[via]https://technet.microsoft.com/en-us/library/cc781459%28v=ws.10%29.aspx[/via]
How to repair or fully rebuild Windows WMI Repository
For Windows Vista and newer try to run the following:
- Verify repo (If the result shown as inconsistent, go to step 2)
winmgmt /verifyrepository
- Repair repo
winmgmt /salvagerepository
- Verify repo to check again wmi repository had been repaired successfully
winmgmt /verifyrepository
To fully rebuild the WMI Repository follow these steps:
- Disable and stop the winmgmt service (Disable is important, elso you can't rename the folder in step 2)
- Rename C:\Windows\System32\wbem\repository
- Enable and start the winmgmt service
- Open a CMD prompt as Administrator
- Navigate to C:\Windows\System32\wbem\
- Run the cmd (this will take a minute or so to complete)
for /f %s in ('dir /b *.mof') do mofcomp %s
- Now run the cmd
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
- Now run the cmd
for /f %s in ('dir /b de-DE\*.mfl') do mofcomp de-DE\%s
- Restart computer
[via]https://support.software.dell.com/de-de/vworkspace/kb/88861[/via]
Disable the Lock Screen on Windows 10
Open Group Policy Editor (gpedit.msc), goto Computer Configuration > Administrative Templates > Control Panel > Personalization > Do not display the lock screen
ODD drive is not recognized in Windows 8.x/10
After you install Windows 8.x or Windows 10, you may find the CD/DVD drive is not recognized. Resolution:
Open Command Prompt as an Administrator and run the following command:
reg.exe add "HKLM\System\CurrentControlSet\Services\atapi\Controller0" /f /v EnumDevice1 /t REG_DWORD /d 0x00000001
Reboot the system and verify if the problem has been resolved.
[via]http://blogs.technet.com/b/asiasupp/archive/2012/03/22/you-may-experience-that-dvd-drive-is-not-recognized-in-windows-8.aspx[/via]
Disable Apple HFS driver helps with Veeam Entpoint Backup and VSS errors
Do you have problems with Veeam Entpoint Backup or Windows Backup fails with VSS error 12289 on a iMac? Just disable the Apple HFS driver and reboot. I use Autoruns from Sysinternals for that:
After that you have no access to the OS X HFS partitions, but for me this is no problem. I haven't use that any time.
[via]http://www.tenforums.com/general-discussion/4556-cannot-make-system-image-vss-error-12289-a-3.html#post207784[/via]