capntack hat die Gist bearbeitet 2 weeks ago. Zu Änderung gehen
1 file changed, 1 insertion, 1 deletion
fetch-computer-uuid.ps1
| @@ -1,4 +1,4 @@ | |||
| 1 | - | :: Enter the computer name below | |
| 1 | + | # Enter the computer name below | |
| 2 | 2 | ||
| 3 | 3 | $ComputerName = | |
| 4 | 4 | ||
capntack hat die Gist bearbeitet 2 weeks ago. Zu Änderung gehen
1 file changed, 3 insertions, 1 deletion
fetch-computer-uuid.ps1
| @@ -1,3 +1,5 @@ | |||
| 1 | - | :: Replace $Variables with the appropriate data. | |
| 1 | + | :: Enter the computer name below | |
| 2 | + | ||
| 3 | + | $ComputerName = | |
| 2 | 4 | ||
| 3 | 5 | (Get-CimInstance -Class Win32_ComputerSystemProduct -ComputerName $ComputerName).UUID | |
capntack hat die Gist bearbeitet 2 weeks ago. Zu Änderung gehen
1 file changed, 3 insertions
fetch-computer-uuid.ps1(Datei erstellt)
| @@ -0,0 +1,3 @@ | |||
| 1 | + | :: Replace $Variables with the appropriate data. | |
| 2 | + | ||
| 3 | + | (Get-CimInstance -Class Win32_ComputerSystemProduct -ComputerName $ComputerName).UUID | |