You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are able to repro it on the latest released version
Perform a quick search for existing issues to check if this bug has already been reported
Steps to reproduce
#You do not need to run the code, just enter it into the Visual Studio Code console.$TimeToGetUsers=Measure-Command {$TargetUsers=get-aduser-server some.domain.com-SearchScope OneLevel}
$TotalUsers=$TargetUsers.Count$TargetUsersWrite-Host ('Found '+$TotalUsers+' Users in '+$TimeToGetUsers.TotalSeconds+' seconds.') -ForegroundColor Green
Expected behavior
No error on variable assignment or use.
Actual behavior
The variable 'TargetUsers' is assigned but never used.
If an unexpected error was thrown then please report the full error details using e.g. $error[0] | Select-Object *
Environment data
>$PSVersionTable
Name Value
---------
PSVersion 5.1.17763.1490
PSEdition Desktop
PSCompatibleVersions {1.0,2.0,3.0,4.0...}
BuildVersion 10.0.17763.1490
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
and
Name Value
---------
PSVersion 7.1.2
PSEdition Core
GitCommitId 7.1.2
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0> (Get-Module-ListAvailable PSScriptAnalyzer).Version |ForEach-Object { $_.ToString() }
1.19.0
The text was updated successfully, but these errors were encountered:
Before submitting a bug report:
Steps to reproduce
Expected behavior
Actual behavior
If an unexpected error was thrown then please report the full error details using e.g.
$error[0] | Select-Object *
Environment data
The text was updated successfully, but these errors were encountered: