Get-ADServiceAccount -Filter * -Properties *
Write-Host 'Operation terminée'
Get-Date
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADPrincipalGroupMembership svc_backup
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ChildItem -Recurse C:\\Scripts\\
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADGroupMember 'Domain Admins'
ipconfig /all
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Date
Get-HotFix -Id KB5005565
Get-SmbOpenFile
Get-EventLog -LogName Application -Newest 50
Get-Date
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Process -Name powershell
Get-HotFix -Id KB5005565
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-LocalGroupMember -Group 'Administrators'
Start-Sleep -Seconds 10
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process | Where-Object {.CPU -gt 100}
Get-ADComputer -Filter *
Get-ADPrincipalGroupMembership svc_backup
Get-Command -Module ActiveDirectory
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
ipconfig /all
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Remove-Item C:\\Temp\\old_log.log -Force
Get-SmbOpenFile
Import-Module ActiveDirectory
Get-ADUser -Filter 'Enabled -eq True'
Start-Sleep -Seconds 10
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
hostname
Get-Service | Where-Object {.Status -eq 'Running'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
cls
Get-SmbShare
systeminfo
Get-Credential
Get-ADPrincipalGroupMembership svc_backup
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Date
Get-NetFirewallProfile
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Restart-Service -Name 'WinRM'
Disconnect-PSDrive Z
Start-Sleep -Seconds 10
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADGroupMember 'Domain Admins'
Get-Service -Name WinRM | Format-List *
Set-Location C:\\Temp
Import-Module ActiveDirectory
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-HotFix -Id KB5005565
Get-ChildItem -Recurse C:\\Scripts\\
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName System -Newest 50
Get-ADServiceAccount -Filter * -Properties *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ProcessMitigation -Name powershell.exe
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Process | Where-Object {.CPU -gt 100}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Remove-Item C:\\Temp\\old_log.log -Force
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-NetIPAddress
Get-ADGroup -Filter *
Disconnect-PSDrive Z
Get-ADPrincipalGroupMembership svc_backup
Write-Host 'Operation terminée'
Get-ADOrganizationalUnit -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallProfile
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
New-Item -Path C:\\Temp -ItemType Directory
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WmiObject Win32_OperatingSystem
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Application -Newest 50
Remove-Item C:\\Temp\\old_log.log -Force
Get-NTFSAccess -Path C:\\SYSVOL
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Command -Module ActiveDirectory
Get-Command -Module ActiveDirectory
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Set-ExecutionPolicy RemoteSigned -Scope Process
hostname
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WmiObject Win32_OperatingSystem
Set-ExecutionPolicy RemoteSigned -Scope Process
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Service -Name WinRM | Format-List *
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName System -Newest 50
