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

Silence the "The operation completed successfully" output when running Import-RegistryFile #2

Open
adbertram opened this issue Dec 4, 2014 · 1 comment

Comments

@adbertram
Copy link
Owner

No description provided.

@corbob
Copy link
Collaborator

corbob commented May 6, 2018

It would appear the simplest way to suppress this message would be to create a temporary file with New-TemporaryFile on PS5 and use the -RedirectStandardError flag on the Start-Process call.

Probably could create a similar function to create our own temporary file to backport this to PS3/4, or could test for New-TempFile and suppress for those that support the function.

"The operation completed successfully" is output to standard error (because clearly it's an error?)

@corbob corbob mentioned this issue May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants