Skip to content

Commit e204db8

Browse files
Bob Pokornydoebrowsk
authored andcommitted
Completed cleaning up code. Ready for Pre-Release.
1 parent 7742186 commit e204db8

File tree

2 files changed

+18
-490
lines changed

2 files changed

+18
-490
lines changed

IISU/ImplementedStoreTypes/WinIIS/Inventory.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,18 @@ public List<CurrentInventoryItem> QueryIISCertificates(RemoteSettings settings)
127127
{
128128
ps.Initialize();
129129

130-
if (ps.IsLocalMachine)
131-
{
132-
_logger.LogTrace("Executing function locally");
133-
results = ps.ExecutePowerShell("Get-KFIISBoundCertificates");
134-
}
135-
else
136-
{
137-
_logger.LogTrace("Executing function remotely");
138-
results = ps.InvokeFunction("Get-KFIISBoundCertificates");
139-
}
130+
//if (ps.IsLocalMachine)
131+
//{
132+
// _logger.LogTrace("Executing function locally");
133+
// results = ps.ExecutePowerShell("Get-KFIISBoundCertificates");
134+
//}
135+
//else
136+
//{
137+
// _logger.LogTrace("Executing function remotely");
138+
// results = ps.InvokeFunction("Get-KFIISBoundCertificates");
139+
//}
140+
141+
results = ps.ExecutePowerShell("Get-KFIISBoundCertificates");
140142

141143
// If there are certificates, deserialize the results and send them back to command
142144
if (results != null && results.Count > 0)

0 commit comments

Comments
 (0)