Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created April 10, 2022 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/e3ae06744c591450f680dff634cbfb79 to your computer and use it in GitHub Desktop.
Save bielawb/e3ae06744c591450f680dff634cbfb79 to your computer and use it in GitHub Desktop.
Trzy wersje tej samej linii
gpv HKLM:\SYSTEM\CurrentControlSet\Services\WSearch ImagePath -EA 0
Get-ItemPropertyValue -LiteralPath HKLM:\SYSTEM\CurrentControlSet\Services\WSearch -Name ImagePath -ErrorAction Stop
$parametry = @{
LiteralPath = 'HKLM:\SYSTEM\CurrentControlSet\Services\WSearch'
Name = 'ImagePath'
ErrorAction = 'Stop'
}
Get-ItemPropertyValue @parametry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment