středa 8. prosince 2021

No Bootable Media Found

 I stumbled across problem where laptop was not able to boot from SSD which was in perfectly mint condition.

Problem was, that somehow boot sector of drive was corrupted.

Quick set of commands from Hiren's Boot CD successfully rebuilt BCD file and OS was able to boot properly.

Boot to Hiren's Boot CD from USB.

  1. Run cmd
  2. Run "diskpart" from cmd
  3. Select disk where corrupted OS is installed "sel disk <number>"
  4. List available volumes by using "list volume"
  5. Find volume which is 100MB in size and formatted to FAT32
  6. Select found volume by "sel vol <number>"
  7. Assign letter K to this volume by "assign letter k:"
  8. Exit diskpart by typing "exit"
  9. Enter boot folder by using "cd /d K:\EFI\Microsoft\Boot"
  10. Change attribute of BCD file so it can be renamed "attrib BCD -s -h -r"
  11. Rename BCD file "ren BCD BCD.bak"
  12. Rebuild BCD file "bcdboot C:\Windows /s k: /f ALL"

Restart computer, remove USB with HBCD and you should be able to boot into Windows normally.

čtvrtek 14. října 2021

File Path in Taskbar.xml file

If you try to specify icon layout in taskbar via GPO you are able to use XML file according to MS schema (https://docs.microsoft.com/en-us/windows/configuration/customize-windows-10-start-screens-by-using-group-policy).

One thing that bothered me was that from total of 4 icons only 3 applied. And reason was pretty simple. 

Although Windows is fine with using Forward Slash, Backslash and even both combined, in this case only working scenario is BACKSLASH.

<taskbar:DesktopApp DesktopApplicationLinkPath="%programfiles(x86)%/Google/Chrome/Application/chrome.exe" />
Not working

<taskbar:DesktopApp DesktopApplicationLinkPath="%programfiles(x86)%\Google\Chrome\Application\chrome.exe" />
Working


úterý 12. října 2021

SCCM Application not showing up in Software Center

I have just recently learned why app was not deploying to client the hard way.

So basicaly my scenario:
SCCM Server running on premise
SCCM Distribution Point running on premise
SCCM Console running on SCCM DP
Client in domain, in many collections in SCCM

When I add computer information to SCCM, computer is added to global Collection of All devices.
Then I am able to PXE Boot from DP and via Task Sequence install OS to PC.
During this installation, depending on TS computer is then added to device collections which are then used to deploy applications.
For each application there is device collection

I have AppxPackage which I want to deploy via SCCM and this package is dependent on another 3 packages.
Yet app won't show in Application neither in Installation Status tab of Software Center.

When I ran DeploymentMonitoringTool (which is part of SCCM Client Tools) desired Application was under Deployments, but when I clicked on it, popup saying "DT cannot be empty" appeared and app closed.

All problems were resolved by editing Application->Deployment types and removing Administrator comment from one of DT's.

pondělí 19. dubna 2021

Dell Mentor Media Unlock Guide

When you buy Dell Laptop/Desktop, in most cases you receive Dell USB Flash Drive, which can be used for OS reinstall/repair. Nowadays, when Windows 10 is widespread and most used Operating System (statistics), USB drives as this are useless. Common idea is to format them and use them as your usual USB pendrive for daily usage.
But that's where this little problem comes in. Dell is actively restricting those pendrives for Read-Only access, so when you try to format them, you probably end with error like this:



But this can be solved by LLF (Low-Level Formatting) this drive.
Tool you need to use for this depends on type of your USB Drive
U02-003


PA5080L-Mxxx


U3-8GBSTS



U02-003

Download ALCOR_U2_MP and extract it.
Enter password"usbdev.ru"
Connect your Flash Drive and run AlcorMP.exe
Select "Product" mode.
Click on Button next to info about Flash Drive, and press Start
note: This step will take approximately 2-3 hours!
When LLF finishes, you can exit AlcorMP.
Your Flash Drive should be unlocked and formated.

PA5080L-Mxxx

Download MPALL_F1_7F00 and extract it.
Run MPALL_F1_7F00_DL07_v503_0A.exe and then connect your Flash Drive.
Click Update button
Once program finds your drive, click "Settings" and then "OK"
From "Controller" select "PS2251-07" and from "Host port" select type of port in which your USB drive is plugged.
Check "Do ISP" and "Erase code block" checkboxes
Click "Select" burner file and find BN07V502TAW.BIN in the same folder
Click "Select" firmware file and find FW07V50253TW.BIN in the same folder.
Under "Customize" uncheck "Auto-Detect" and insert VID 0930 and PID 1400
Click "Save"
Click "Start"
After a few sconds LLF finishes, you can exit MPAll.
Your Flash Drive should be unlocked and formated.

U3-8GBSTS

Download SM3267 and extract it.
Download Settings file and put it into same folder as SM3267


Click "Settings" and enter password "320"
Select "U3-8GBSTS.ini" file, you have downloaded
Click "OK" in bottom-right corner.
Press "F5" and after your drive shows up, press "Space"
After a few sconds LLF finishes, you can exit SMI MPT.
Your Flash Drive should be unlocked and formated.





neděle 4. dubna 2021

Batch import of Wi-Fi Profiles

 This script will import all Wi-Fi profiles stored in sibling folder  called "Wifi"

for %%f in (Wifi\*) do ( netsh wlan add profile filename="Wifi\%%~nf.xml" )