Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Command line too long..

$
0
0

Hi all,

Just wondering what technique I could use to shorten my command line other than using variables for each parameter..

e.g.
Set-QADUser -Identity $_."Name" -UserPrincipalName $_."UserPrincipalName" -alias $_."alias" -Displayname $_."Displayname" -FirstName $_."FirstName" -LastName $_."LastName" -OrganizationalUnit $_."OrganizationalUnit" -PrimarySmtpAddress $_."PrimarySmtpAddress" -SamAccountName $_."SamAccountName" -Password (ConvertTo-SecureString $_.password -AsPlainText -Force)

Any ideas appreciated!

Cheers,
AKP


Viewing all articles
Browse latest Browse all 13067

Trending Articles