Get-PSUScript CreatedTime not returning time

Get-PSUScript CreatedTime not returning time

avatar
(anonymous user)
Product: PowerShell Universal
Version: 5.0.15


Get-PSUScript does not return the script creation time date information.

$script = Get-PSUScript -Name ‘TestScript.ps1’
$script.CreatedTime

Returns: 01/01/0001 00:00:00

Is there a workaround for this? Thanks.

All Comments (2)

avatar

CreatedTime is actually not used persistently. It works the first time but is reset once the app restarts. We don’t persist it anywhere and really was just a placeholder. There are a couple properties on scripts that I think aren’t used.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

OK, thanks for the update.