-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
313 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Ignore files | ||
|
||
module_system_SysPrep_dev.cmd | ||
*_dev.cmd | ||
*.backup | ||
*.old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This must be done right before running sysprep | ||
## Needs to be performed for local administrator | ||
Get-AppxPackage Microsoft.OneDriveSync | Remove-AppxPackage | ||
Get-AppxPackage MicrosoftWindows.Client.WebExperience | Remove-AppxPackage | ||
|
||
|
||
# Get package full name | ||
@powershell Get-AppxPackage Microsoft.OneDriveSync | FIND /I "PackageFullName" | ||
@powershell Remove-AppxPackage <$PackageFullName> | ||
|
||
@powershell Get-AppxPackage MicrosoftWindows.Client.WebExperience | FIND /I "PackageFullName" | ||
|
||
FOR /F "tokens=3 delims= " %P IN ('@powershell Get-AppxPackage MicrosoftWindows.Client.WebExperience ^| FIND /I "PackageFullName"') DO SET $PACKAGE_NAME=%P | ||
|
||
@powershell Remove-AppxPackage %$PACKAGE_NAME% |
Oops, something went wrong.