Rob Woodruff's Powersdhell Script fails

  • Release Candidate 6
    Guest:
    We are at a “proposed final” true release candidate with nothing known remaining to be changed or fixed. For the full story, please see this page in the "Pre-Release Announcements & Feedback" forum.
    /Steve.
  • Be sure to checkout “Tips & Tricks”
    Dear Guest Visitor → Once you register and log-in:

    This forum does not automatically send notices of new content. So if, for example, you would like to be notified by mail when Steve posts an update to his blog (or of any other specific activity anywhere else), you need to tell the system what to “Watch” for you. Please checkout the “Tips & Tricks” page for details about that... and other tips!

    /Steve.

jaybird

New member
Dec 22, 2021
2
4
In podcast SN905 Steve was extolling the virtues of Rob's powershell script, but when I attempt to run it under Win 10 pro I get:
PS D:\downloads> .\Analyze-LastPassVault.ps1
.\Analyze-LastPassVault.ps1 : File D:\downloads\Analyze-LastPassVault.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\Analyze-LastPassVault.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: :)) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Any ideas for a solution?
TIA
Jay
 
  • Like
Reactions: CredulousDane
You would need to allow script execution on your system. It seems to be currently disabled :)

The following PowerShell will allow executing signed scripts for the currently running PowerShell process only.
Code:
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process
 
EdwinG's solution appears to be very helpful -- hope it works for the OP.

For anecdotal purposes only, Rob's powershell script worked for me -- also in Windows 10 Pro -- but I had only a full, satisfactory result when running it in Edge. I tried Chrome first, and the script ran fine. But when I got to the part where I needed to copy the xml, I couldn't find Show More or Copy at the bottom of the window. So I tried it again in Edge and was able to complete the process.

Thanks, Ron & Steve for this very useful tool!
 
You would need to allow script execution on your system. It seems to be currently disabled :)

The following PowerShell will allow executing signed scripts for the currently running PowerShell process only.
Code:
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process
Yes, that's the solution. Thank You.
Jay
 
Set-ExecutionPolicy -ExecutionPolicy AllSigned -Scope Process
Please note, unless you have good reason, you should turn this off as soon as you're done. PowerShell these days is being used for malware purposes, and you probably want the extra security.

Code:
Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser
 
Please note, unless you have good reason, you should turn this off as soon as you're done. PowerShell these days is being used for malware purposes, and you probably want the extra security.

Code:
Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser
That's exactly why I put it to a scope of Process.

The second you close the window, it reverts to the system's execution policy. See: https://learn.microsoft.com/en-ca/p...id=ps-gethelp&viewFallbackFrom=powershell-7.1