0 votes

I have a powershell custom command that retrieves the LAPS password from AD for a specified computer. This allows us to run the query in the Adaxes context and delegate it to support staff by OU.

Is there any way to copy the resulting password to the clipboard? We find that even in the adaxes website, the results popup window will not let you copy from it.

#Viewing a password using the LAPS PowerShell module.
$logmessage = Get-AdmPwdPassword -Computername '%name%' | Select-Object ComputerName, Password, ExpirationTimeStamp | Out-String -Stream
foreach ($logline in $logmessage) { if ($logline -ne '') { $Context.LogMessage($logline, "Information") } }

by (440 points)

1 Answer

0 votes
by (160k points)
selected by
Best answer

Hello,

Yes, it is possible. You can output the required information into the Execution log using the $Context.LogMessage method (as your script does) and then copy it after the command execution. You just need to select the text in the Execution log and then click Ctrl+C or right-click the selected text and click Copy in the context menu.

0

When I run this in the adaxes admin console it works, but not in a browser. I wonder if there is some security setting in the browsers or possibly the adaxes web interface?

We have tried this in several browsers (chrome/firefox/edge), and it won't allow us to copy/paste.

I also tried using powershell to copy to the clipboard but that doesn't work either.

0

Hello,

There are no limits in Adaxes that might prevent you from copying text from the Execution Log. Maybe, there are such limits in web browsers, however, we were not able to reproduce the behavior.

Most probably, the behavior occurs because the text is not actually selected. For example, if you click a text in the Execution Log, it is not selected and the Copy option will not be available in the context menu.

For the option to be available, you need to make sure that the text is selected and then right-click it to Copy.

0

Thanks, we did not differentiate between clicking to select and highlight the text. That works.

We really like Adaxes for allowing help desk access to elevated powershell commands in our AD and O365. It would be nice if a future version improved the custom command/powershell display/output.

Related questions

0 votes
1 answer

How do you add a custom attribute to the search results? Version 2017.2 / 3.8.14823.0

asked Nov 12, 2018 by hgletifer (940 points)
0 votes
1 answer

Is it possible to call execution of Adaxes custom command via SPML?

asked Oct 16 by Dmytro.Rudyi (560 points)
0 votes
1 answer

As the title says, Im looking to add a Custom Command to the Action pane that I plan to allow users to trigger a script to run. However when in the Web Config for ... as has the permissions to make changes to the Web Inferface. Am I missing something? Thanks

asked Jul 16 by Helios5287 (150 points)
0 votes
1 answer

We have several scripts that use the following action: $commandID = "{b4b66610-be71-403a-a6b7-8bcf51d200ef}" $user.executecustomCommand($commandID) is there syntax that allows ... is there another way to pass parameters to a custom command through scripting?

asked Jul 11 by ggallaway (310 points)
0 votes
1 answer

Hello, I am trying to give the helpdesk a method of alerting all users in the organization of a service interruption via SMS or email. I was able to create a custom command ... users in an ALL USERS ad group of some sort. Any help would be appreciated. Thanks!

asked Feb 20 by trwhalen (100 points)
2,013 questions
1,788 answers
5,137 comments
806 users