It would be nice if you could set an option to place commentary at the end of scriptblocks such as if,do,switch,while,try etc etc.
This provides an nice visible method of determining where the completion of each code block concludes.
eg.
If (-not $User)
{
#Obtaining Local Account SIDs for $Bin.Name comparison.
Log "Get-WmiObject -Class Win32_UserAccount"
$WMI_UsrAcct = Get-WmiObject -Class Win32_UserAccount -ComputerName $Computer -Filter "Domain = '$Computer'"
#Using a While Loop to search Local User Accounts for Matching $Bin.Name
$i = 0
While ($i -le $WMI_UsrAcct.Count)
{
If ($WMI_UsrAcct[$i].SID -eq $Bin.Name)
{
$User = $WMI_UsrAcct[$i].Caption
Break
} #End If ($WMI_UsrAcct[$i].SID -eq $Bin.Name)
$i++
} #End While ($i -le $WMI_UsrAcct.Count)
} #End If (-not $User)
Auto fill end condition commentary
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.
Re: Auto fill end condition commentary
You are welcome to file a feature request here and our development team will look into it:
https://www.sapien.com/requests
https://www.sapien.com/requests
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.