mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-04 19:28:42 +02:00
Update and rename parse-gppfiles.ps1 to parser-gppfiles.ps1
This commit is contained in:
parent
7873cb7285
commit
99aab0f907
@ -190,13 +190,13 @@ function Get-GPPPasswordMod {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Example path to the directory containing the GPP XML files
|
# Example path to the directory containing the GPP XML files
|
||||||
$pathToGPPFiles = "c:\temp\configs\ScheduledTasks.xml"
|
$pathToGPPFiles = "c:\temp\configs\ScheduledTasks.xml"
|
||||||
|
|
||||||
# Call the function
|
# Call the function
|
||||||
$gppPasswords = Get-GPPPasswordMod -InputFilePath $pathToGPPFiles
|
$gppPasswords = Get-GPPPasswordMod -InputFilePath $pathToGPPFiles
|
||||||
|
|
||||||
# Display the results
|
# Display the results
|
||||||
$gppPasswords
|
$gppPasswords
|
||||||
|
|
||||||
|
|
||||||
@ -228,14 +228,14 @@ $gppPasswords
|
|||||||
return $EncryptedCpassword
|
return $EncryptedCpassword
|
||||||
}
|
}
|
||||||
|
|
||||||
$plainTextPassword = "MyAwesomePassword!"
|
$plainTextPassword = "MyAwesomePassword!"
|
||||||
$encryptedPassword = Set-EncryptedCpassword -Password $plainTextPassword
|
$encryptedPassword = Set-EncryptedCpassword -Password $plainTextPassword
|
||||||
Write-Output $encryptedPassword
|
Write-Output $encryptedPassword
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
<# Printers.xml
|
<# Printers.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Printers
|
<Printers
|
||||||
clsid="{1F577D12-3D1B-471e-A1B7-060317597B9C}"
|
clsid="{1F577D12-3D1B-471e-A1B7-060317597B9C}"
|
||||||
@ -302,13 +302,13 @@ $gppPasswords
|
|||||||
location="1st Floor Copy Room"
|
location="1st Floor Copy Room"
|
||||||
comment="Old printer. Don't use."/>
|
comment="Old printer. Don't use."/>
|
||||||
</LocalPrinter>
|
</LocalPrinter>
|
||||||
</Printers>
|
</Printers>
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
|
|
||||||
<# ScheduledTasks.xml
|
<# ScheduledTasks.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<ScheduledTasks clsid="{CC63F200-7309-4ba0-B154-A71CD118DBCC}"
|
<ScheduledTasks clsid="{CC63F200-7309-4ba0-B154-A71CD118DBCC}"
|
||||||
disabled="1">
|
disabled="1">
|
||||||
@ -575,12 +575,12 @@ $gppPasswords
|
|||||||
</Task>
|
</Task>
|
||||||
</Properties>
|
</Properties>
|
||||||
</ImmediateTaskV2>
|
</ImmediateTaskV2>
|
||||||
</ScheduledTasks>
|
</ScheduledTasks>
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
<# Services.xml
|
<# Services.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<NTServices clsid="{2CFB484A-4E96-4b5d-A0B6-093D2F91E6AE}">
|
<NTServices clsid="{2CFB484A-4E96-4b5d-A0B6-093D2F91E6AE}">
|
||||||
<NTService
|
<NTService
|
||||||
@ -602,13 +602,13 @@ $gppPasswords
|
|||||||
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
cpassword="5gn5fUqMaeGJkLEPgl3iH9UfLATVxRAHE8GvAvekwnicLYf2Pynj7ifihvajBRA3"
|
||||||
restartServiceDelay="900000"/>
|
restartServiceDelay="900000"/>
|
||||||
</NTService>
|
</NTService>
|
||||||
</NTServices>
|
</NTServices>
|
||||||
|
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
<# Drives.xml
|
<# Drives.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Drives clsid="{8FDDCC1A-0C3C-43cd-A6B4-71A6DF20DA8C}"
|
<Drives clsid="{8FDDCC1A-0C3C-43cd-A6B4-71A6DF20DA8C}"
|
||||||
disabled="1">
|
disabled="1">
|
||||||
@ -629,12 +629,12 @@ $gppPasswords
|
|||||||
useLetter="1"
|
useLetter="1"
|
||||||
letter="S"/>
|
letter="S"/>
|
||||||
</Drive>
|
</Drive>
|
||||||
</Drives>
|
</Drives>
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
<# Groups.xml
|
<# Groups.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Groups clsid="{D4A3F943-1B57-4B98-B5E4-1E9C7A84B292}">
|
<Groups clsid="{D4A3F943-1B57-4B98-B5E4-1E9C7A84B292}">
|
||||||
<User clsid="{A7D5F186-71E5-4A24-8B2A-C3BDE98BA2D2}"
|
<User clsid="{A7D5F186-71E5-4A24-8B2A-C3BDE98BA2D2}"
|
||||||
@ -654,12 +654,12 @@ $gppPasswords
|
|||||||
userName="example.com\IT_Dept"/>
|
userName="example.com\IT_Dept"/>
|
||||||
</User>
|
</User>
|
||||||
</Groups>
|
</Groups>
|
||||||
|
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
<# DataSources.xml
|
<# DataSources.xml
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<DataSources clsid="{380F820F-F21B-41ac-A3CC-24D4F80F067B}" disabled="0">
|
<DataSources clsid="{380F820F-F21B-41ac-A3CC-24D4F80F067B}" disabled="0">
|
||||||
<DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="LocalContacts"
|
<DataSource clsid="{5C209626-D820-4d69-8D50-1FACD6214488}" name="LocalContacts"
|
||||||
@ -689,7 +689,7 @@ $gppPasswords
|
|||||||
id="{8F7D51B0-F798-4C5F-972B-36FCD0399A33}"/>
|
id="{8F7D51B0-F798-4C5F-972B-36FCD0399A33}"/>
|
||||||
</Filters>
|
</Filters>
|
||||||
</DataSource>
|
</DataSource>
|
||||||
</DataSources>
|
</DataSources>
|
||||||
|
|
||||||
|
|
||||||
#>
|
#>
|
Loading…
x
Reference in New Issue
Block a user