Created
November 21, 2020 18:06
-
-
Save d4rkeagle65/b9bc42a26be44a6d66c4858a4c3bc944 to your computer and use it in GitHub Desktop.
Parse dsregcmd.exe output to powershell name/value pairs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $dsregcmd = dsregcmd /status | Where-Object { $_ -match ' : ' } | ForEach-Object { $_.Trim() } | ConvertFrom-String -PropertyNames 'Name','Value' -Delimiter ' : ' |
how can I store 'DeviceId' value as veriable?
this might be stupid question I'm sorry :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are my savior!