none
How to run PS commands in Windows 7 RRS feed

All replies

  • Do not use Windows 7 anymore. The support ended.

    The script obviously is designed to run on Windows 10:

    Quote from the description:

    "LOGS.PS1 & LOGS.BAT allow you to quickly collect information from a Windows 10 client machine"


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    • Proposed as answer by jrv Friday, February 21, 2020 4:35 PM
    Sunday, February 9, 2020 11:30 AM
  • Hi,

    As said above, Windows 7 is out of support since January, 14 2020, you have to upgrade ASAP your Windows to keep it up-to-date.

    Btw, Powershell is integrated in Windwos 7 SP1, for more details:

    Regards,

    _________________________

    Youssef Saad | Blog LinkedIn | Twitter

    Please remember to mark the replies as answer if they help, thank you!

    Sunday, February 9, 2020 11:44 AM
  • Unfortunately that script will onlyu run on Windows 10 and later and canot be run on earlier versions of Windows.  It uses Windows components that do not exist on versions of Windows before Windows 10.

    As noted by others Windows 7 should no longer be used as it is no longer supported by Microsoft and will no longer receive security patches or bug fixes.

    You can upgrade to Windows 10 for free see the following article

    https://www.zdnet.com/article/this-free-windows-10-upgrade-offer-still-works-heres-why-and-how-to-get-it/?ftag=TRE-03-10aaa6b&bhid=21089552699177794384843455138699


    \_(ツ)_/

    Sunday, February 9, 2020 12:42 PM
  • The PS commands and script are used to collect log files for Windows upgrade failures.

    There are a significant number of Windows 7 end users that would prefer troubleshooting upgrade failures rather than clean install.

    What options are there to run any PS commands in Windows 7?


    Sunday, February 9, 2020 5:15 PM
  • What commands are you trying to run. All core PS commands run in Windows 7.  OS specific commands run only on the OS the command is designed for and product specific commands (SharePoint, Exchange, etc) run only against specific products.  

    No newer products or commands are supported on Windows 7.  Anything going forwards will not be written for Windows 7 or test/supported on Windows 7.

    All of you questions are about how to use basic Windows.  You need to ask beginner Windows questions in a Windows new user or end user forum.  I recommend getting a book on how to use and work with Windows. This and other TechNet forums are not for learning how to use Windows as they are specific to technical areas of Windows and assume basic Windows knowledge as qa prerequisite.


    \_(ツ)_/

    Sunday, February 9, 2020 5:23 PM
  • The computers in use are Windows 10.

    For Windows 7 I don't remember using PS commands.

    For the Windows upgrade failures the Panther logs are troubleshooted.

    The PS script collects them when ran on Windows 10.

    What I was /am looking for is a method to collect these by running a script.

    https://docs.microsoft.com/en-us/windows/deployment/upgrade/log-files

    Sunday, February 9, 2020 8:11 PM
  • The computers in use are Windows 10.

    For Windows 7 I don't remember using PS commands.

    For the Windows upgrade failures the Panther logs are troubleshooted.

    The PS script collects them when ran on Windows 10.

    What I was /am looking for is a method to collect these by running a script.

    https://docs.microsoft.com/en-us/windows/deployment/upgrade/log-files

    Please hisre a consultant to solve your issues.  We do not write or provide scripts for users.  The forum is for people who0 are trained techs and have written their own scrip and have questions.

    Tis topic has been moved to the off-topic forum.  

    \_(ツ)_/

    Sunday, February 9, 2020 9:46 PM
  • The replies are related to many end users that post in our forums that need help.

    For example in January support ended for Windows 7.

    There are threads in which support is needed to troubleshoot upgrade failures.

    So any scripts to collect applicable logs may help the end users in this threads.


    Monday, February 10, 2020 12:07 AM
  • 1. Click on start and search for accessories.

    2. Now search for Windows Powershell, select Windows Power Shell.

    3. Select the shortcut of powershell and right click on it and click on the option of Run as Administrator. Click on Yes.

    4.To change the script execution policy, use the Set-ExecutionPolicy cmdlet.
    Input “Set-ExecutionPolicy unrestricted” and press Enter on your keyboard.

    5. You will be prompted that whether you want to change the script execution policy or not. Press Y from your keyboard.
    And then press Enter.

    6. Windows Power Shell Script execution is now enabled.

    Also Windows 7 support is end now so we advise you to either purchase a windows 7 extended security update or upgrade to windows 10 virtual desktop

    Friday, February 21, 2020 4:32 PM