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