Relative Content

Tag Archive for powershell

Unlocking a vault fails with “correct” password

I am a bit at a loss here. I have installed the Microsoft.PowerShell.SecretStore on one of our servers an set up vaults for different accounts. The password for unlocking the vaut is saved in an xml file, which I created using “Export-Clixml”. To unlock the vault, I simply get the password from the xml file via “Import-CliXml”. For my admin account that works perfectly fine.

Read-host in GUI textarea?

I am trying to write something between console style and GUI script in PowerShell. There will be a few buttons, labels etc and one big textarea with progress of script and user input.
My question is: Is there any possibility to set variable from textarea? There is read-host command in console script what save user input to variable. Is there any command, what works same in GUI? Just take characters after question in textarea and put them to variable.

How to disable mouse acceleration through powershell

I have recently gotten a mouse for my laptop, though the mouse acceleration is really bugging me. Since this is a managed school device, I do not have access to any elevated prompts, settings app, control panel, device manager, cmd prompt, or regedit, but I do have access to Powershell. I use my trackpad a lot too, so I would prefer if mouse acceleration were switching on and off depending on if my mouse was in use. Any help is appreciated!

How to block the internal cli tools verbose messages from printing?

This is an issue I have been having for some time and I have just not been able to find any solution to it.
Often times I have a PowerShell advanced function/ simple function that is using a native command internally. I want the function to have a seamless PowerShell experience, and I mostly achieved this except for whatever messages the cli might decide to print. Cli tools have “quite” options, so I use that when I can but some dont have it.