how to set minimum char for variable in powershell from user input
$Server = Read-Host -Prompt 'Input your server name'
$User = Read-Host -Prompt 'Input the user name'
$Date = Get-Date
Write-Host "You input server '$Servers' and '$User' on '$Date'"
how to set minimum char for variable in powershell from user input
$Server = Read-Host -Prompt 'Input your server name'
$User = Read-Host -Prompt 'Input the user name'
$Date = Get-Date
Write-Host "You input server '$Servers' and '$User' on '$Date'"
how to set minimum char for variable in powershell from user input
Set-Location alias: # To PS-Drive alias
Get-Childitem # All aliases
how to set minimum char for variable in powershell from user input
Set-Location c:\users # Back to filesystem c: (directory users)
#
$env:userprofile # Get value of environment variable `userprofile`
# -> C:\Users\user_name
$alias:ls # Get what alias 'ls' stands for
# -> Get-ChildItem
how to set minimum char for variable in powershell from user input
Set-Location env: # Prompt character becomes `PS Env:\>`
# (environment variables)
Get-Childitem # Get all environment variables
#
Get-Childitem userprofile # Get environment variable `userprofile`
# --> USERPROFILE C:\Users\user_name
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us