.
This commit is contained in:
@ -1,10 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set check_computername=%COMPUTERNAME%
|
call C:\Scripts\wBase\baseENV.bat
|
||||||
echo "Found computer %check_computername%"
|
call C:\Scripts\wLocal\localENV.bat
|
||||||
|
|
||||||
set PACKAGES="C:\Packages"
|
|
||||||
set WPUBLIC="C:\wPublic"
|
|
||||||
|
|
||||||
echo "Dump software list"
|
echo "Dump software list"
|
||||||
set PSFILE="%WPUBLIC%\bin\ListSoftware.ps1"
|
set PSFILE="%WBASE%\bin\SoftwareList.ps1"
|
||||||
Powershell.exe -ExecutionPolicy Bypass -File %PSFILE% > "C:\%check_computername%.txt"
|
%POWERSHELL% -ExecutionPolicy Bypass -File %PSFILE% > "C:\%check_computername%.txt"
|
||||||
|
|||||||
43
bin/SoftwareList.ps1
Executable file
43
bin/SoftwareList.ps1
Executable file
@ -0,0 +1,43 @@
|
|||||||
|
function listAumids( $userAccount ) {
|
||||||
|
|
||||||
|
if ($userAccount -eq "allusers")
|
||||||
|
{
|
||||||
|
# Find installed packages for all accounts. Must be run as an administrator in order to use this option.
|
||||||
|
$installedapps = Get-AppxPackage -allusers
|
||||||
|
}
|
||||||
|
elseif ($userAccount)
|
||||||
|
{
|
||||||
|
# Find installed packages for the specified account. Must be run as an administrator in order to use this option.
|
||||||
|
$installedapps = get-AppxPackage -user $userAccount
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
# Find installed packages for the current account.
|
||||||
|
$installedapps = get-AppxPackage
|
||||||
|
}
|
||||||
|
|
||||||
|
$aumidList = @()
|
||||||
|
foreach ($app in $installedapps)
|
||||||
|
{
|
||||||
|
foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id)
|
||||||
|
{
|
||||||
|
$aumidList += $app.packagefamilyname + "!" + $id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $aumidList
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get a list of AUMIDs for the current account:
|
||||||
|
listAumids
|
||||||
|
|
||||||
|
# Get a list of AUMIDs for an account named “CustomerAccount”:
|
||||||
|
listAumids("CustomerAccount")
|
||||||
|
|
||||||
|
# Get a list of AUMIDs for all accounts on the device:
|
||||||
|
listAumids("allusers")
|
||||||
|
|
||||||
|
get-wmiobject Win32_Product | Format-Table IdentifyingNumber, Name, LocalPackage -AutoSize
|
||||||
|
|
||||||
|
|
||||||
|
Get-AppxPackage -allusers
|
||||||
@ -1,3 +1,7 @@
|
|||||||
|
@echo off
|
||||||
|
call C:\Scripts\wBase\baseENV.bat
|
||||||
|
call C:\Scripts\wLocal\localENV.bat
|
||||||
|
|
||||||
xcopy "S:\WordPad\Windows NT\Accessories" "C:\Program Files\Windows NT\Accessories" /h /e
|
xcopy "S:\WordPad\Windows NT\Accessories" "C:\Program Files\Windows NT\Accessories" /h /e
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
call C:\Scripts\wBase\baseENV.bat
|
||||||
|
call C:\Scripts\wLocal\localENV.bat
|
||||||
|
|
||||||
choco uninstall git notepadplusplus -y -force
|
choco uninstall git notepadplusplus -y -force
|
||||||
Reference in New Issue
Block a user