Month: June 2021

  • Howto count files in folders by file extension using PowerShell

    Howto count files in folders by file extension using PowerShell

    Use Measure-Object to count things. In this case it would look like:

    Only Files

    Get-ChildItem c:\MyFolder -Recurse -File | Measure-Object | %{$_.Count}
    

    Only Folders

    Get-ChildItem c:\MyFolder -Recurse -Directory | Measure-Object | %{$_.Count}
    

    Both

    Get-ChildItem c:\MyFolder -Recurse | Measure-Object | %{$_.Count}

    Specific files

    Get-ChildItem -Path c:/MyFolder -Recurse -filter *.xml | Measure-Object -Property Directory
    
  • How to enable AMD virtualization (SVM)  in the BIOS

    How to enable AMD virtualization (SVM) in the BIOS

    Once on you have booted to BIOS.

    1.Enter into Advanced Mode

    2. Expand CPU Configiuration

    3. SVM Mode => Enabled

    4. Save configuration and restart