Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script runtime errors (win10x64 2004) #51

Closed
necros2k7 opened this issue Jan 4, 2021 · 1 comment
Closed

Script runtime errors (win10x64 2004) #51

necros2k7 opened this issue Jan 4, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@necros2k7
Copy link

necros2k7 commented Jan 4, 2021

--- XPS Viewer capability
В строке отсутствует завершающий символ: '.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

@undergroundwires
Copy link
Owner

undergroundwires commented Jan 5, 2021

Hi, thanks for the report. Both scripts will be improved in next version. I'll release the fixes/improvements in a week or two.

I spun up a VM with x64 windows 2004. I ran both Windows Security GUI (Sec Health UI) and XPS Viewer capability scripts.

Capabilities

I could reproduce the problem for capabilities. It's a bug in the newest version caused by a second apostrophe typo. It will be fixed in the next version.

Uninstalling system apps

I could not reproduce the problem with PermissionDenied for uninstalling system apps. It worked fine on my VM. It takes ownership of the folder as an administrator to avoid PermissionDenied. Probably commands before (takeown or icacls) has failed. But you could not see the error as they're not printed (swollen by | Out-Null). I'll ensure that errors are shown in the next version to debug this further.

I'd appreciate if you could open cmd and test running

  • takeown /f "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy" /r /d y
  • icacls "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy"/grant administrators:F /t

And tell me if one of them fail with error.

Virtualbox error

I'd be happy to solve this as well. Would you mind testing one thing to get more information:

  1. Open CMD (terminal) as administrator.
  2. Run the script using its full path to script e.g. by running "C:/Users/{user}/downloads/privacy-script.bat".
  3. You'll be able to see the error message and what's causing it to close like this. Please copy paste the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants