Skip to content

Instantly share code, notes, and snippets.

@tuneis
tuneis / password_recovery.txt
Last active October 6, 2018 19:58
Lost Password Recovery New Admin User
// move copy the files
wmic logicaldisk get name
move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak
copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe
wpeutil reboot
// add new user
net user <username> /add
net localgroup administrators <username> /add
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged([CallerMemberName]string propertyName = "") =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
protected void SetValue<T>(ref T backingField, T value, [CallerMemberName]string propertyName = null)
{
if (EqualityComparer<T>.Default.Equals(backingField, value))