Various Windows Notes

Fix boot

Format system partition first, then: https://www.dell.com/support/article/uk/en/ukbsdt1/sln167714/windows-server-how-to-repair-the-boot-files-in-windows-server-2008-or-2008-r2-if-the-server-won-t-boot?lang=en

The above uses the system partition, however sometimes doesn’t seem to work. In which case, format system and then write the files to the OS drive.

Company Portal

If things are cached, clear this

%localappdata%\Packages\Microsoft.CompanyPortal_8wekyb3d8bbwe\TempState\ApplicationCache

1
2
3
4
5
#### Check Windows Services
get-service | where-object {$_.StartType -eq "Automatic" -and $_.Status -ne "Running"}
####Enable Remote Destkop
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -Value 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
1
2
3
#### Split a WIM
dism /Split-Image /ImageFile:”install.wim” /SWMFile:”install.swm” /FileSize:4000
# From <https://www.dell.com/support/article/en-uk/sln313422/windows-10-iso-contains-wim-file-that-is-big-for-fat32-file-system?lang=en>

Windows Installer RDS Compatability mode

During installations: Set REG_DWORD Enable = 0 After installations: Set REG_DWORD Enable = 1 SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\TSAppSrv\TSMSI From https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.TerminalServer-Server::TS_DISABLE_MSI

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#### Using IPC folder to reboot remote machine on different domain
NET USE \\computername\IPC$ dolphin /USER:username
shutdown /r /t 30 /m \\computername
#### Open MMC for remote machine on different domain
runas /noprofile /netonly /user:192.168.1.1\username "mmc compmgmt.msc"
#Azure AD device – Add user to local group
net localgroup "Hyper-V Administrators" AzureAD\firstname.surname@contoso.com /add
# Create OS Media
diskpart
list disk (determine the disk # for the flash drive)
select disk W (replace W with the drive # for the flash drive)
clean
convert GPT
create partition primary size=32000
format fs=FAT32 quick label=Boot
assign
Exit
# Mount Windows ISO
# Change drive to mounted ISO
cd boot
bootsect /nt60 d:
# In windows explorer copy files from Windows ISO to Boot Partition of USB drive