Created
February 18, 2018 23:45
-
-
Save deoren/f93d326aafb1e6f12d6983d007d9a631 to your computer and use it in GitHub Desktop.
PowerShell - Computer name with static prefix, random suffix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$prefix = 'lab' | |
$rand_name = $prefix + "$(new-guid)".Substring(1,11) | |
echo $rand_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!