Hyper-v .. .all VMs gone after upgrade

I had an issue after a inplace upgrade of a Hyper-v 2012R2 standard to 2016 Standard.
ALl VMs is missing and there is no errors in the eventlogg..
Running the below command fixed the issues and all vms reappeared in the MMC.
Havent had the time to real figureout what it does,
beyond that it has to do with WMI settings that gone corrupt.

"The Managed Object Format (MOF) compiler parses a file containing MOF statements and
adds the classes and class instances defined in the fileto the WMI repository.
MOF files are usually automatically compiled during the installation of the systems with
which they are provided, but you can also compile MOF files
by using this tool. "

https://docs.microsoft.com/en-us/windows/desktop/wmisdk/mofcomp

FIX:
MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mo

AD Addon 2003

acctinfo.dll är ett addon för 2003 servers. Visar ”MER” info på User kontot som Login tider m.m. rätt bra 🙂

Accinfo2.dll är otestad men skall tydligen fungera på x64 servers…

2008r2 version ACCTINFO2_64BIT2003 version acctinfo_2003_x86

CMAK made Easier…

CMAK Made easy är en samlig för eget bruk av filer för att generera X86 VPN filer på en WIndows 7 x64 maskin.

DO Read the ”README.txt” file for info…
Enjoy !

CMAK

Outlook ….

Ms Outlook Issues, and how to fix em…

Outlook.exe /resetnavpane Fixar: Outlook startar, blinkar till, försvinner och en ruta med text som säger
typ: kan inte visa fönstret sysn.

Printer Drivers x64 …

Post in progress…

Postar här alla ideer om x86 drivers strul som kan hjälpa …

#1 Addera printern på x64 servern med x64 drivers.
#2 Ladda ner x86 drivers, de MÅSTE ha samam namn i INF filen annars vägrar oset addera den som x86 driver för den installerade skrivaren.
#3 Följ detta..

To install an x86 additional driver on a Windows Vista x64 host, you first
need a
running Vista x86 system. On this x86 system, locate the directory
\Windows\System32\DriverStore\FileRepository\ntprint.inf_xxxxx, then copy
all files and sub-directories from ntprint.inf_xxxxx into the same location
as you saved this driver.

If the x64 host asks for the NTPRINT.INF on the Windows Media during the
installation of the additional driver, simply browse to this location and
complete installation.”

when you install the printers let the system scan as needed to work out what it wants and tell it to keep the existing driver (you added them earlier).
when you share the printer, it will automatically have the x86 drivers box ticked and sorted and you just need to tick the box to show the printer in the list directory if you want to – this is under the printer’s sharing tab.

Mr Notes
Hittade 2 ntprint.inf.xxxx mappar på kundens vista 32 bitarsÔǪ

Kopierade bådaÔǪ.. (hittade även 2 på min vista)
Kvarstår å se om dessa fungerar på XP maskinerÔǪ. . .

Drivers:
Drivrutinerna MÅSTE heta 100% samma som ms egna X64 driversÔǪ annars kommer de INTE fungera i
Så vad jag gjorde var att gå in i drivern och döpa om dem i inf filen.


Enabla VSS Backup Hyper-V

För att enable VSS på hyper-v servern… kör följande .vbs

reg add ”HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\ApplicationSupport\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}”
pause
reg add ”HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\ApplicationSupport\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}” /v ”Application Identifier” /t Reg_SZ /d Hyper-V
pause
echo.
echo Nedanstående kollar om man verkligen skrev något till registeret och visar i såfall resultatet.
echo.
echo.
reg query ”HKLM\Software\Microsoft\windows nt\currentversion\WindowsServerBackup\ApplicationSupport\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}” /s
pause

x86 ODBC on x64 …

För att köra 32bitars ODBC driver i en 64bitars maskin så kör denna …..

C:\Windows\SysWOW64\odbcad32.exe

Installing Windows via USB thumbdrive

Format the thumb drive

from a elevatedprompt execute

diskpart

list disk
select disk 1 (assuming disk 1 was your thumb drive in the above list disk command)
clean
create partition primary
select partition 1
active
format fs=fat32 quick
assign
exit

Unpack the ISO,copy the fileson to the newly prepped disk…

xcopy SourceDrive:\*.* /s /e /f DestDrive:\

(Works with WIndows server 2008,R2,Vista,W7 m.m.)