• 06Apr

    If you noticed Microsoft has taken away the default Windows Photo Viewer in Windows 10.  This can be quite annoying for it you want to just open one photo that isn’t meant to be stored in a photo library.  I found this trick online and wanted to share it.  If you have gone looking in your “Program Files” folder looking for this application you won’t find it.  Technically this is a COM surrogate application and must be called using the Run DLL executable (rundll32.exe).  If you need to script this COM application and would like to know the program location you can also run the following command:

    %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen [Optional] [Path to Image File]

    To add this feature back into Windows 10 you must add the following registry keys and then set this COM application to be the default photo viewer.

    Registry Keys: Turn on Windows Photo Viewer (Zip) / Turn on Windows Photo Viewer (Text File)





    Tags: ,

  • 13Sep

    Awhile ago I needed to find the Serial Number of a remote machine so I could pull the drivers, traveling to see that machine became very tedious and took time.  So I did some searching and came accross this command that you can run via-command line with either powershell or by remotely connecting to the machine and running this from command prompt.

    If you open up a command line window you can call on the WMIC command to pull the BIOS serial number of a machine.

    wmic bios get serialnumber

    You can also run this WMIC command to get the computer model number.

    wmic csproduct get name

    For further information here is the Microsoft KB: http://support.microsoft.com/kb/558124

    Tags: , ,

  • 03Aug

    I’ve run into issues where an SCCM client will get repaired and the cache size automatically goes back to 5120MB.  This causes a problem if you have applications that you are advertising that are bigger than 5GB.

    So my solution was to created a PowerShell script that first checks to see what the current cache size is and if it is not what I specified change it and restart the SCCM Client on the host.  If the client is set to the cache size I have specified then simply exit.  I have also set this PS Script to be a scheduled task so it frequently runs the check.  You can do this very easily through Group Policy (if desired).

    If you have any questions about this script, please feel free to contact me.

    # Script developed by Harry Caskey
    # harrycaskey@gmail.com
    # http://www.harrycaskey.com/
    # Please give me feedback on this script if it works for you!

    # First thing is specify the WMI object you want to query.
    $CacheSize = 51200
    $Cache = Get-WmiObject -namespace root\ccm\SoftMgmtAgent -class CacheConfig
    # Then run this IF statement to check to see if the Cache Size does not equal (-ne) to the $CacheSize variable .
    If ($Cache.size -ne $CacheSize) {
    $Cache.size = $CacheSize
    $Cache.InUse = "True"
    # If the cache size does not equal to the $CacheSize variable then apply.
    # Restarts the service after the Put() command. This is optional, not required and not recommended if you are deploying this script with SCCM.
    #Restart-Service ccmexec
    Else {

    Here goes the script if you would like to download it: Set-SCCMCacheSize.zip


    – Harry Caskey

    Tags: , , ,