Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-UDInputField - Read Only switch #247

Open
ChendrayanV opened this issue Jan 5, 2018 · 1 comment
Open

New-UDInputField - Read Only switch #247

ChendrayanV opened this issue Jan 5, 2018 · 1 comment

Comments

@ChendrayanV
Copy link

It would be great to have -readonly switch to lock the text box field. By that we can ensure user won't change the value. Thanks!

@ChendrayanV
Copy link
Author

As a workaround I used New-UDTable

$adsi = [adsisearcher]::new()
$adsi.Filter = "(&(ObjectCategory=User)(samaccountname=$env:USERNAME))"
$UserInformation = $adsi.FindOne().Properties
New-UdTable -Title "User Information" -Headers @(" ", " ") -Endpoint {
    @{
            'First Name'   = $UserInformation['givenname']
            'Last Name'    = $UserInformation['sn']
            'Display Name' = $UserInformation['displayname']
    }.GetEnumerator() | Out-UDTableData -Property @("Name", "Value")
}

Got the expected result

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants