Skip to content

Commit 567ae1e

Browse files
authored
Update README.md
1 parent 918f5d1 commit 567ae1e

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

README.md

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1-
# Get-WindowsAutoPilotInfo
2-
This project contains an enhanced version of the Get-WindowsAutoPilotInfo script originally from the PowerShell Gallery. The main improvement is the addition of a backslash escape feature for GroupTags, allowing the use of GroupTags like "DEU\HB1" without issues.
1+
# Enhanced Get-WindowsAutoPilotInfo Script
2+
3+
## Overview
4+
5+
This repository contains an enhanced version of the `Get-WindowsAutoPilotInfo` script, originally from the [PowerShell Gallery](https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/3.9). The main enhancement is the addition of a backslash escape feature for GroupTags, allowing the use of GroupTags like "DEU\HB1" without issues.
6+
7+
## Key Features
8+
9+
- All original functionality of the Get-WindowsAutoPilotInfo script
10+
- Improved handling of GroupTags containing backslashes
11+
12+
## Usage
13+
14+
To use this enhanced version:
15+
16+
1. Download the `Get-WindowsAutoPilotInfo.ps1` file from this repository.
17+
2. Replace the original script file located at `C:\Program Files\WindowsPowerShell\Scripts\Get-WindowsAutoPilotInfo.ps1` with the downloaded file.
18+
19+
## Important Note
20+
21+
This script is intended to replace the original script in your system. Make sure to backup the original script before replacing it.
22+
23+
## Changes from Original
24+
25+
The main change is in the handling of the GroupTag parameter. The relevant code snippet now looks like this:
26+
27+
```powershell
28+
$imported += Add-AutopilotImportedDevice -serialNumber $_.'Device Serial Number' -hardwareIdentifier $_.'Hardware Hash' -groupTag ($_.'Group Tag' -replace '\\', '\\') -assignedUser $_.'Assigned User'
29+
```
30+
This modification allows for the correct handling of GroupTags containing backslashes.
31+
32+
## Credits
33+
34+
All credits for the original script go to the authors at the PowerShell Gallery. This repository only adds the escape feature for improved GroupTag handling.
35+
36+
## License
37+
This project is licensed under the MIT License. See the LICENSE file for details.
38+
39+
## Disclaimer
40+
41+
This is an unofficial enhancement. Always ensure you're using scripts from trusted sources and test thoroughly in a non-production environment before deploying to production systems.

0 commit comments

Comments
 (0)