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