Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Sam Account Name modification with New Adcomputer Powershell script

$
0
0

Greetings Community,

Hopefully this will be an easy question for you guys.

When creating a new computer account in powershell and specifying the -SamAccountName parameter, is there a way to make the entry it creates uppercase?  As it currently stands when I create accounts, the sam account name is lowercase and I need for them to be uppercase.

Here's a copy of my code so far.

New-ADcomputer-Name"$newadcomputername"-samAccountName"$newadcomputername"-DNSHostName"$newadcomputername.computername.com"-Path"OU=RHEL6_64,OU=UNIX,DC=somecompany.com"-Enable$true

Thanks in advance for any assistance provided.

Mike B.


Mike B.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>