Wednesday, November 9, 2022

Fix Blue Screen "Driver Power State Failure" on Windows 10

- Open command prompt and run it as administrator, Copy paste the following command then press enter :

REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"

- Then run second command :

net start msiserver

- Done.

Friday, November 4, 2022

Auto Login Steam Account based on computer name

Create batch file and paste the following script :
@echo off
if %computername% equ PC01 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username1 password1 steam://rungameid/1677740

if %computername% equ PC02 Start "" "D:\Steam\steam.exe" -silent -noverifyfiles -cafeapplaunch -noreactlogin -login username2 password2 steam://rungameid/1677740

exit

Note :
- Change PC01 to your computer's name
- Change D:\Steam\steam.exe to your steam directory
- Change username1 and password1 to your steam account username and password
- Change 1677740 to id of the steam game

For new Steam launcher, remove -noverifyfiles.  Because it can cause data sync problem with diskless client

Install driver via command prompt

pnputil.exe -i -a "full of path of the inf file\example.inf"

For example :

pnputil.exe -i -a "E:\bat\intelmanagement\heci.inf"

Hoyoplay Genshin Impact and Honkai Impact Diskless Launcher

1. Create batch file inside Hoyoplay directory, the function of this file is to export the registry of miHoYo. Paste the following command, then save it as "update_miYoHo_reg.bat" :

@echo off
reg export HKEY_CURRENT_USER\Software\miHoYo miHoYo.reg
exit

Then click it once.

2. Create 3 folders inside Hoyoplay directory and rename them as "Local" and "Locallow", Roaming. Then go to %LocalAppData% and cut miHoYo and HoYoverse folders and paste them inside "Local" folder.

3. Go to %AppData%\..\LocalLow and cut miHoYo folder, then paste it inside "Locallow" folder.

4. Go to %AppData% and cut Cognosphere folder, then paste it inside "Roaming" folder.

4. Create batch file inside Hoyoplay directory and name it "launcher.bat". Then paste the following command inside it :

@echo off
regedit /s miHoYo.reg
mklink /j "%LocalAppData%\miHoYo\" "Local\miHoYo"
mklink /j "%LocalAppData%\HoYoverse\" "Local\HoYoverse"
mklink /j "%AppData%\..\LocalLow\miHoYo\" "Locallow\miHoYo"
mklink /j "%AppData%\Cognosphere\"  "Roaming\Cognosphere"
start "" "launcher.exe"
exit 

Run it once at Diskless server.

5. Use the "Launcher.bat" as launcher for diskless client.