Skip to content

Commit a5a3a38

Browse files
committed
Add device renaming
1 parent 488b263 commit a5a3a38

File tree

7 files changed

+22
-12
lines changed

7 files changed

+22
-12
lines changed

.idea/.idea.GraphTools/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Azure.Identity" Version="1.9.0" />
11-
<PackageReference Include="Microsoft.Graph.Beta" Version="5.36.0-preview" />
10+
<PackageReference Include="Azure.Identity" Version="1.12.0" />
11+
<PackageReference Include="Microsoft.Graph.Beta" Version="5.78.0-preview" />
1212
</ItemGroup>
1313

1414
</Project>

GraphTools.GroupTags/DeviceRow.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ namespace GraphTools.GroupTags;
44

55
public class DeviceRow
66
{
7-
[Name("Serial number")]
7+
[Name("Serial number", "Serienummer")]
88
public required string Serial { get; set; }
99

10-
[Name("Group tag")]
10+
[Name("Group tag", "Groepstag")]
1111
public string? Tag { get; set; }
12+
13+
[Name("Devicename")]
14+
public string? Devicename { get; set; }
1215
}

GraphTools.GroupTags/GraphTools.GroupTags.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Azure.Identity" Version="1.9.0" />
12-
<PackageReference Include="CsvHelper" Version="30.0.1" />
13-
<PackageReference Include="Microsoft.Graph.Beta" Version="5.36.0-preview" />
11+
<PackageReference Include="Azure.Identity" Version="1.12.0" />
12+
<PackageReference Include="CsvHelper" Version="33.0.1" />
13+
<PackageReference Include="Microsoft.Graph.Beta" Version="5.78.0-preview" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

GraphTools.GroupTags/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
await graphClient.DeviceManagement.WindowsAutopilotDeviceIdentities[matchingDeviceIdentity.Id].UpdateDeviceProperties.PostAsync(
4444
new UpdateDevicePropertiesPostRequestBody()
4545
{
46+
DisplayName = deviceRow.Devicename,
4647
GroupTag = deviceRow.Tag
4748
});
4849
}

GraphTools.RetireWipeFresh/DeviceRow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public enum Action
1111

1212
public class DeviceRow
1313
{
14-
[Name("Serial number")] public required string Serial { get; set; }
14+
[Name("Serial number", "Serienummer")] public required string Serial { get; set; }
1515

1616
[Name("Action")] [EnumIgnoreCase] public Action? Action { get; set; }
1717
[Name("KeepEnrollmentData")] public bool? KeepEnrollmentData { get; set; }

GraphTools.RetireWipeFresh/GraphTools.RetireWipeFresh.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="CsvHelper" Version="30.0.1" />
15+
<PackageReference Include="CsvHelper" Version="33.0.1" />
1616
</ItemGroup>
1717

1818
</Project>

0 commit comments

Comments
 (0)