File tree Expand file tree Collapse file tree 2 files changed +18
-490
lines changed
ImplementedStoreTypes/WinIIS Expand file tree Collapse file tree 2 files changed +18
-490
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments