An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
May 10, 2022 07:56 pm GMT
Original Link: https://dev.to/senadmeskin/powershell-guid-generator-2cbp
Powershell GUID Generator
I've built a simple GUID generator that generates GUID and puts it into the clipboard!
You can download the file from my repository: guid.ps1
You can read more info at the Git Hub Page
Details
In PowerShell you can generate GUIDby typing [Guid]::NewGuid()
into your PS terminal, but then you would need to copy it from the terminal and paste it where you need it. It was complex for me so I've built a script that does all the for you.
$guid = [guid]::NewGuid().ToString();Set-Clipboard -Value $guid;Write-Host 'Guid:' $guid 'copied to the clipboard!';
In use
E:\ps> guidGuid: d5bae5bc-d0dc-47ef-bbf7-1323f7a2180e copied to the clipboard!E:\ps>
NOTE: Just be sure to put the guid.ps1
file somewhere where your path is defined so you can access it from anywhere.
Original Link: https://dev.to/senadmeskin/powershell-guid-generator-2cbp
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To