diff options
author | HarmJ0y <will@harmj0y.net> | 2016-04-11 11:49:47 -0700 |
---|---|---|
committer | HarmJ0y <will@harmj0y.net> | 2016-04-11 11:49:47 -0700 |
commit | 69a2cd1e33abe312166cdbfd67b04d6e58e9fabe (patch) | |
tree | 33a5c5c4a40f92dc24284d3ed8a8c18c7240227b /Recon | |
parent | 785f4757bd5a8ac4b8cdcd8f3b2b0175b30d1066 (diff) | |
parent | c8ff1940898bd6b9cc9ab08a3193acd3a3902def (diff) | |
download | PowerSploit-69a2cd1e33abe312166cdbfd67b04d6e58e9fabe.tar.gz PowerSploit-69a2cd1e33abe312166cdbfd67b04d6e58e9fabe.zip |
Merge pull request #125 from leechristensen/patch-1
Change ComputerName default to the computer's name
Diffstat (limited to 'Recon')
-rw-r--r-- | Recon/PowerView.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index e6f6233..f921e03 100644 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -7014,7 +7014,7 @@ function Get-NetLocalGroup { [Parameter(ParameterSetName = 'WinNT', Position=0, ValueFromPipeline=$True)] [Alias('HostName')] [String[]] - $ComputerName = 'localhost', + $ComputerName = "$($env:COMPUTERNAMECOMPUTERNAME)", [Parameter(ParameterSetName = 'WinNT')] [Parameter(ParameterSetName = 'API')] |