Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-SmbShare
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ChildItem -Recurse C:\\Scripts\\
systeminfo
Get-Command -Module ActiveDirectory
Get-ADServiceAccount -Filter * -Properties *
Get-ChildItem -Recurse C:\\Scripts\\
Get-SmbOpenFile
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
hostname
Get-ADUser -Filter 'Enabled -eq True'
Get-HotFix -Id KB5005565
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Process -Name powershell
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-LocalGroupMember -Group 'Administrators'
ipconfig /all
Get-ScheduledTask
Get-ADGroupMember 'Domain Admins'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
ipconfig /all
Test-Connection -ComputerName dc01.novatech.local
Get-ADOrganizationalUnit -Filter *
Set-Location C:\\Temp
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-HotFix -Id KB5005565
Get-HotFix -Id KB5005565
Get-Process | Where-Object {.CPU -gt 100}
Get-ADServiceAccount -Filter * -Properties *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-LocalGroupMember -Group 'Administrators'
Get-ADUser -Filter 'Enabled -eq True'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Service -Name WinRM | Format-List *
Get-ADGroupMember 'Domain Admins'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Test-Connection -ComputerName dc01.novatech.local
cls
cls
Get-Content C:\\Scripts\\deploy.ps1
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADOrganizationalUnit -Filter *
New-Item -Path C:\\Temp -ItemType Directory
Get-Content C:\\Scripts\\deploy.ps1
Get-ScheduledTask
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Test-NetConnection google.com
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Set-ExecutionPolicy RemoteSigned -Scope Process
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
whoami
Get-Command -Module ActiveDirectory
Get-ProcessMitigation -Name powershell.exe
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Restart-Service -Name 'WinRM'
Remove-Item C:\\Temp\\old_log.log -Force
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-LocalGroupMember -Group 'Administrators'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Credential
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADComputer -Filter *
Get-ChildItem -Recurse C:\\Scripts\\
Write-Host 'Operation terminée'
cls
Get-ADComputer -Filter *
Get-ChildItem -Recurse C:\\Scripts\\
Get-SmbSession
Get-WmiObject Win32_OperatingSystem
Remove-Item C:\\Temp\\old_log.log -Force
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NTFSAccess -Path C:\\SYSVOL
Get-ScheduledTask
Get-Content C:\\Scripts\\deploy.ps1
Get-Credential
Get-ADGroupMember 'Domain Admins'
Get-ChildItem -Recurse C:\\Scripts\\
Get-Date
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Credential
Get-Date
Get-Credential
Get-Service -Name WinRM | Format-List *
Test-NetConnection google.com
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADPrincipalGroupMembership svc_backup
Get-ADGroupMember 'Domain Admins'
hostname
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-NetConnection google.com
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
systeminfo
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Service | Where-Object {.Name -like '*crypt*'}
Restart-Service -Name 'WinRM'
Get-ADComputer -Filter *
