Add-AppxPackage -Path D:\Microsoft.UI.Xaml.2.3_2.32002.13001.0_x64.appx
Get-AppxPackage Microsoft.UI.Xaml* | Remove-AppxPackage
Get-AppxPackage | Select Name, PackageFullName
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge] "NoRemove"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView] "NoRemove"=dword:00000000
After that Microsoft Edge and Microsoft EdgeWebView could be uninstalled in usual way from Control Panel.
See also: Uninstall Microsoft Edge Windows 11.
ncpa.cpl
and disable WiFi network adapter.taskmgr
and terminate installation master. The master will be restarted and this time you will see “Limited experience” option which you can use.
One can follow the instructions to turn Your Windows 7 PC Into a Wireless Hotspot, however such hotspot is not recognized by some devices (see The majority of Android devices do not support Ad-hoc connections, Android devices do not support connecting to Ad-Hoc networks and What is the difference between Access Point mode and Ad Hoc mode?).
Luckily there is way to set up your windows machine as a very simple wireless access point:
netsh wlan set hostednetwork mode=allow ssid=<ssid> key=<passphrase> keyUsage=persistent netsh wlan start hostednetwork
After that you should enable connection sharing in the network interface that provides Internet (this interface may well be a WiFi connection established via the same WiFi card (e.g. Intel 6250 WiFi), but usually this is Local Area Connection). For that go to Properties → Sharing, enable Allow other users to connect through this computer's Internet connection and select Microsoft Virtual WiFi Miniport Adapter as an interface to share this connection with (check Using ICS for details).
ScopeAddress
and ScopeAddressBackup
in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters
and then restart Internet Connection Sharing service. For more details about how to fine-tune ICS service see here.
Using USB-to-USB cable like Belkin Easy Transfer:
or USB 3.0 to Gigabit Ethernet Network Adapter:
or USB3.0 3× port hub + Gigabit ethernet network adapter:
Exposing file as block device to USB host using usb_f_mass_storage.ko
module and then mounting it via loopback:
Exposing filesystem using MTP:
Programming MTP under Windows:
PortableDeviceApi.h
–header files from Windows SDKSee also:
Set up dial-up networking by doing the following:
Go to Control Panel → Network and Internet → Network Connections → Dial-up Connection → [right click] → Properties
See also problems.
In Linux the analogous value is the value of search
in /etc/resolv.conf
.
mount \\192.168.1.1\backup k:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
key?
Without this when trying to mount this Windows returns Error code: 0x80004005 Unspecified error
and Linux mount error(12): Cannot allocate memory
.
You may also wish to turn off public folder sharing.
nmbd: process_local_master_announce: Server STATION at IP 192.168.1.1 is announcing itself as a local master browser for workgroup WORKGROUP and we think we are master. Forcing election.
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Browser\Parameters] "IsDomainMaster"="No"
net use
utility.
REGEDIT4 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters] ; For Windows XP: ;"UseBasicAuth"=dword:00000002 ; For Windows Vista and higher: "BasicAuthLevel"=dword:00000002
but it didn't work for me. See also:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules
netsh advfirewall firewall add rule name="WePrint" dir=in action=allow profile=any description="MyServer Firewall Exception" program="C:\Program Files\MyServer.exe" enable=yes
References:
boot.ini
file to add/remove new boot entries. Now you have to do it with bcdedit
utility:bcdedit /v
will display all boot entries together with entry UIDsbcdedit /delete {83838-234234-44234234-234234}
(ID will be different in your case) will remove this entry
bootrec.exe /fixmbr bootrec.exe /fixboot x:\boot\bootsect.exe /nt60 all /force bootrec.exe /rebuildbcd
Element not Found
error, that means, the partition is not marked as active. Use diskpart
utility and execute1): DISKPART> list disk Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 298 GB 1024 KB DISKPART> select disk 0 Disk 0 is now the selected disk. DISKPART> list partition Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 OEM 39 MB 31 KB Partition 2 Primary 24 GB 40 MB Partition 3 Primary 273 GB 24 GB DISKPART> select partition 2 Partition 2 is now the selected partition. DISKPART> active
BOOT.INI
, NTDETECT.COM
, NTLDR
, Bootfont.bin
. I suggest to modify the label to make sure the right BOOT.INI
is used.See Перенос NTLDR с раздела на раздел, с диска на диск and Make Windows bootable after copying from one partition to another.
The
fdisk /mbr
command is an undocumented switch used with the FDISK command (MS-DOS 5.0 and higher) that recreates the master boot record (loader) on a hard drive.Use
fdisk /cmbr <drive number>
where<drive number>
represents the drive you want to recreate the master boot record. To determine the drive number, run thefdisk /status
command.
bootrec.exe /fixmbr
or fixmbr <device name>
e.g. fixmbr \Device\HardDisk0
.ms-sys -7 /dev/sdx
dd if=/dev/hdx of=/dev/hdy bs=446 count=1
Windows_7_SP1_Updates_x64.ulz
: WindowsUpdatesDownloader.exe -install Windows_7_SP1_Updates_x64.ulz
WindowsUpdatesDownloader.exe
and download all critical updates for Windows 7 SP1.See also:
D:\x32\
F:
and do the following commands:imagex /export /compress maximum "F:\sources\install.wim" 1 "D:\x32\sources\install.wim" "Windows 7 Home Basic (x64)"
imagex /export /compress maximum "F:\sources\install.wim" 2 "D:\x32\sources\install.wim" "Windows 7 Home Premium (x64)"
imagex /export /compress maximum "F:\sources\install.wim" 3 "D:\x32\sources\install.wim" "Windows 7 Professional (x64)"
imagex /export /compress maximum "F:\sources\install.wim" 4 "D:\x32\sources\install.wim" "Windows 7 Ultimate (x64)"
D:\x32\
and create ISO.See also:
dism /online /Cleanup-Image /SPSuperseded
To remove old versions of system components (system updates cannot be uninstalled after this operation):
dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
References:
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] "NoAutoRebootWithLoggedOnUsers"=dword:00000001
Remove %WINDIR%\System32\GWX
folder. Then uninstall KB3035583 and KB2952664. Finally mark these updates hidden.
Also add the following to registry:
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] "DisableGwx"=dword:00000001 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade] "ReservationsAllowed"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "DisableOSUpgrade"=dword:00000001
Also this helps when WiFi connection is unstable (drops down) under high load.
slmgr.vbs -ipk GJ9BQ-8QK7G-BTR2G-9PW1Y-9RFY8
slmgr.vbs -ato
slmgr.vbs -dlv
secpol.msc
utility, navigate to Local Policies → Security Options and change User Account Control: Behaviour of the elevation prompt for administrators in Admin Approval Mode to Elevate without prompting value.
taskkill
does not provide the filtering by command line. The solution is to use wmic
to display command line and then standard CygWin tools to filter and cut the PID and finally terminate the process by PID:
taskkill /F /PID `wmic process where Description=\"java.exe\" get ProcessID,CommandLine | perl -ne '/command-line-filter\s+(\d+)/ && print $1'`
psshutdown -d -t 0
rundll32.exe User32.dll,LockWorkStation
rundll32.exe PowrProf.dll,SetSuspendState
shutdown.exe -r -t 00
shutdown.exe -s -t 00
More information:
powercfg.exe -h off
. If that fails with error 0xc000007f, then free more space on drive C: (hiberfil.sys
can only be created on C: but pagefile.sys
can be moved to another drive, see Control Panel → Performance Information and Tools → Advanced Tools → click on Adjust the appearance and performance of Windows → tab Advanced → click on Change).
Access denied
.
netplwiz
(or control userpasswords2
). Afterwards select the necessary default user, uncheck “Users must enter a user name and password” and enter the necessary password. Equivalent to:REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "AutoAdminLogon"=dword:00000001 "DefaultUserName"="your_account@microsoft.com" "DefaultPassword"="microsoft_password"
On Windows 10: If this option is not present then to go Settings → Accounts → Your info and click on Sign in with a local account instead.
On Windows 10: Turn of Settings → Accounts → Sign-in options → Require Windows Hello sign-in for Microsoft accounts and disable Windows Hello PIN or apply the following reg file:
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device] "DevicePasswordLessBuildVersion"=dword:00000000
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] "DontDisplayLastUserName"=dword:00000000
DWORD
entry with a name matching the user ID:REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList] "backuppc"=dword:00000000
PresentationFontCache.exe
on Windows 7 loads CPU for 70-100%
The service creates invalid cache file %windir%\ServiceProfiles\LocalService\AppData\Local\FontCache3.0.0.0.dat
which needs to be deleted to solve the problem.
svchost.exe
on Windows 7 loads CPU for 25% %windir%\system32\perfmon.exe /res
). On CPU tab find the problematic service (most likely it will be “Windows Update”) and stop it.
See also:
systeminfo
utility.
More information:
Dr.Watson is an application debugger included with the Microsoft Windows operating system.
AeDebug
registry variable.%LOCALAPPDATA%\Microsoft\Windows\WER\ReportArchive\
)Relevant registry settings:
REGEDIT4 ; For x64 use this key: ;[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug] ; 0 = no prompt is issued to the user before the selected debugger is executed "Auto"="1" "UserDebuggerHotKey"=dword:00000000 ; Alternative for drwtsn: ;"Debugger"="drwtsn32 -p %ld -e %ld -g" ; Alternative for windbg: ;"Debugger"="C:\\Debug\\windbg -p %ld -e %ld -c \".dump /mfh C:\\myfile.dmp ;q\"" ' Two below lines are identical, but later allows the variable expansion: ;"Debugger"="%Applications%\\Debug\\cdb.exe -p %ld -e %ld -g -c \"~*k;.dump /mfh /u %SystemRoot%\\Temp\\crash.dmp;.kill;qd\"" "Debugger"=hex(2):25,50,72,6f,67,72,61,6d,73,25,5c,44,65,62,75,67,5c,63,64,62,\ 2e,65,78,65,20,2d,70,20,25,6c,64,20,2d,65,20,25,6c,64,20,2d,67,20,2d,63,20,\ 22,7e,2a,6b,3b,2e,64,75,6d,70,20,2f,6d,66,68,20,2f,75,20,25,53,79,73,74,65,\ 6d,52,6f,6f,74,25,5c,54,65,6d,70,5c,63,72,61,73,68,2e,64,6d,70,3b,2e,6b,69,\ 6c,6c,3b,71,64,22,00
/pae /3gb /nolowmem
into your boot.init
, but that didn't work for me.
/3Gb
switch in boot.ini
./LARGEADDRESSAWARE
option.See Are there any drawbacks of "/3Gb" switch in boot.ini for 32bit Windows? and also Physical Address Extension.
netsh wlan show drivers
output
One can use BitLocker To Go Reader utility on Windows XP to gain read-only access to encrypted FAT volume.
Windows XP does not generally support symbolic links, however there is a workaround for it, see Symbolic links for Windows XP (from Symbolic Link Driver for Windows XP). One needs to:
senable.exe install
to install driver to %WINDIR%\system32\drivers
.ln.exe
utility to create symlinks: ln.exe -s \\host\share\folder link_name
fsutil file setshortname C:\development dev
the contents of the folder will be available both as C:\development\
and и C:\DEV\
.
C:\Temp\Local
)?
%ERRORLEVEL%
is not working in loop? %
-enclosed variables in loop only once before first iteration. That is why the code
for %%i in (1 2 3) do ( some_util.exe %%i echo %ERRORLEVEL% )
does not work: it always prints 0 to console.
Solutions:
setlocal enabledelayedexpansion for %%i in (1 2 3) do ( some_util.exe %%i echo !ERRORLEVEL! )
%APPDATA%\Skype\ %USERPROFILE%\Desktop\
The following script will the lines from that file, apply variable substitution, accumulate them in one variable which can be used as argument for some utility:
@echo off setlocal enabledelayedexpansion set args= for /f %%i in (file.lst) do ( for /f %%a in ('echo %%i') do call :expand %%a ) 7z a -mx=9 -ms=on -mqs=on all.7z %args% > NUL exit :expand set args=%args% %1 exit /b
References:
for /f "delims=" %%x in (common.sh) do (set %%x)
where common.sh
has only lines in format var=value
.
where /q myapplication IF ERRORLEVEL 1 ( ECHO The application is missing. Ensure it is installed and placed in your PATH. EXIT /B ) ELSE ( ECHO Application exists. )
CMD
alternatives?
assoc .ext=Util ftype Util=C:\Programs\util.exe "%1" %* set pathext=%pathext%;.ext
After that instead of util.exe test.ext
one may simply type test
.
start "" "some file with spaces.pdf"
dism
utility.
REGEDIT4 [HKEY_CURRENT_USER\Control Panel\Desktop] "ForegroundLockTimeout"=dword:00030d40
<gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend"> <gs:UserList> <gs:User UserID="Current"/> </gs:UserList> <gs:InputPreferences> <!-- Add keyboard en_US --> <gs:InputLanguageID Action="add" ID="0409:00000409" Default="true"/> <!-- Add keyboard ru_RU (Byrman Typewriter) --> <gs:InputLanguageID Action="add" ID="0419:a0000419"/> <!-- Remove keyboard en_GB-SwissGerman --> <gs:InputLanguageID Action="remove" ID="0809:00000807"/> <!-- Remove keyboard fr_FR-SwissGerman --> <gs:InputLanguageID Action="remove" ID="040c:00000807"/> <!-- Remove keyboard de_DE-SwissGerman --> <gs:InputLanguageID Action="remove" ID="0407:00000807"/> </gs:InputPreferences> </gs:GlobalizationServices>
control intl.cpl,,/f:"input-languages.xml"
0409:00000409
is composed from language ID (see Language Identifier Constants and Strings) and layout ID (see subkeys of HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts
).
"Девица не хочет лезть в Окно" – device not compatible with Windows.