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 (430 points)

1 Answer

0 votes
by (294k 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 (1.3k points)
0 votes
1 answer

I have a number of custom Powershell scripts that add users to Teams, groups, etc. I re-use these scripts dozens of times for different conditions and only change one ... possible to convert this script to a custom command and pass parameters to it instead?

asked 6 days ago by cwyant-hfg (40 points)
0 votes
1 answer

Dear, I'm having issue in adding a group to a Business Unit. The situation is as following: We have given our IT ServiceDesk access to manage certain groups. This is ... Unit.", "Information") Can you please verify what is preventing the addition? Thank you.

asked Nov 29 by alexalex (20 points)
0 votes
1 answer

The use case we are looking for is providing a list of titles for users to choose from when initiating a re-hire. We already have a title property pattern established and would ... that we can manage the list in one place. Let me know and as always, thanks.

asked Nov 22 by msheppard (610 points)
0 votes
1 answer

We've the following script we want to use in Adaxes to create as part of user creation, to ask if the user will need a AWS workspace, then asks employeetype for different ... "Error") exit(-1) } else { $Context.LogMessage("Created workspace", "Information") }

asked May 3 by Plusa (20 points)
3,588 questions
3,277 answers
8,303 comments
548,100 users