none
Script to find remote server screen saver settings and Enviroment Variables settings RRS feed

  • Question

  • I need to add entires to a script to report on the screen saver settings of remote servers and the system variables for "Temp" and "TMP" locations. Does anyone know if this can be done?

    Tuesday, June 14, 2011 3:55 PM

Answers

  • Hi Heckter,

    This forum is for question directly related to PowerShell within DPM (Data Protection Manager).

    If you have any other general PowerShell question, please post it on the link below.

    http://social.technet.microsoft.com/Forums/en/ITCG/threads/

    Here is a snippet of what you are looking for.

    The command below will get the Screen saver configuration from HKCU key

    Invoke-Command <SERVERname> -scriptblock {get-itemproperty hkcu:"control panel\desktop"}

    If Screen Saver is configured, you will see values for SCRNSAVE.EXE, ScreenSaveTimeOut and SccreenSaverIsSecure.

    The command below you give you TEMP and TMP variables on the remote machine

    Invoke-Command <Servername> -scriptblock {gci env:temp, env:tmp}

     

     


    Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights
    Wednesday, June 15, 2011 4:24 AM
    Moderator

All replies

  • Hi Heckter,

    This forum is for question directly related to PowerShell within DPM (Data Protection Manager).

    If you have any other general PowerShell question, please post it on the link below.

    http://social.technet.microsoft.com/Forums/en/ITCG/threads/

    Here is a snippet of what you are looking for.

    The command below will get the Screen saver configuration from HKCU key

    Invoke-Command <SERVERname> -scriptblock {get-itemproperty hkcu:"control panel\desktop"}

    If Screen Saver is configured, you will see values for SCRNSAVE.EXE, ScreenSaveTimeOut and SccreenSaverIsSecure.

    The command below you give you TEMP and TMP variables on the remote machine

    Invoke-Command <Servername> -scriptblock {gci env:temp, env:tmp}

     

     


    Thanks, Wilson Souza - MSFT This posting is provided "AS IS" with no warranties, and confers no rights
    Wednesday, June 15, 2011 4:24 AM
    Moderator
  • Many Thanks for this, it's works.
    Wednesday, June 15, 2011 8:32 AM
  • This gets what i need

    {

    Get-itemproperty hkcu:"control panel\desktop" -name "ScreenSaveActive"

    }

    Sunday, July 10, 2011 9:48 PM
  • Which Script we can use to identify if the screensaver is pushed by GPO.

    The above script will provide output only if the script is configured manually from Personalization settings.

    Friday, November 17, 2017 11:05 AM