Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
NameIT
2.3.4
Generators/guid.ps1
function
guid
{
[
CmdletBinding
(
)
]
param
(
[
Parameter
(
)
]
[int]
$part
)
$guid
=
[guid]
::
NewGuid
(
)
.
guid
if
(
$part
)
{
(
$guid
-split
'-'
)
[
$part
]
}
else
{
$guid
}
}