Get-ADPrincipalGroupMembership svc_backup
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName System -Newest 50
Get-ADGroupMember 'Domain Admins'
Import-Module ActiveDirectory
Set-Location C:\\Temp
Get-Process | Where-Object {.CPU -gt 100}
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Command -Module ActiveDirectory
Test-Connection -ComputerName dc01.novatech.local
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Credential
Get-CimInstance -ClassName Win32_QuickFixEngineering
Import-Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
whoami
Test-NetConnection google.com
ipconfig /all
Test-NetConnection google.com
Get-EventLog -LogName System -Newest 50
Get-ADGroup -Filter *
Get-ADGroup -Filter *
Import-Module ActiveDirectory
Get-ProcessMitigation -Name powershell.exe
Get-ADGroupMember 'Domain Admins'
Get-ADComputer -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-HotFix -Id KB5005565
Get-LocalGroupMember -Group 'Administrators'
Get-ADServiceAccount -Filter * -Properties *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-SmbOpenFile
Get-SmbSession
Get-SmbOpenFile
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName System -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-NTFSAccess -Path C:\\SYSVOL
Get-SmbShare
Get-ScheduledTask
Get-ADGroup -Filter *
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Credential
Get-Process | Where-Object {.CPU -gt 100}
Get-ADGroupMember 'Domain Admins'
Get-Credential
Get-NetFirewallProfile
Disconnect-PSDrive Z
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Process | Where-Object {.CPU -gt 100}
Get-ADOrganizationalUnit -Filter *
Get-ADServiceAccount -Filter * -Properties *
Get-ADGroupMember 'Domain Admins'
Get-Credential
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADGroup -Filter *
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-HotFix -Id KB5005565
Get-SmbSession
Get-ADGroup -Filter *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADUser svc_backup -Properties lastLogonTimestamp
ipconfig /all
Get-ADPrincipalGroupMembership svc_backup
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADGroupMember 'Domain Admins'
systeminfo
Write-Host 'Operation terminée'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Service -Name WinRM | Format-List *
Get-Content C:\\Scripts\\deploy.ps1
Get-ADOrganizationalUnit -Filter *
Get-SmbOpenFile
Get-Command -Module ActiveDirectory
Set-Location C:\\Temp
Get-ADGroup -Filter *
Write-Host 'Operation terminée'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADPrincipalGroupMembership svc_backup
Get-Credential
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName Application -Newest 50
cls
Get-ADOrganizationalUnit -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
systeminfo
Get-EventLog -LogName Application -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ScheduledTask
Get-WmiObject Win32_OperatingSystem
Get-LocalGroupMember -Group 'Administrators'
Get-SmbSession
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
hostname
Get-ProcessMitigation -Name powershell.exe
Test-NetConnection google.com
ipconfig /all
Get-ADComputer -Filter *
systeminfo
whoami
Get-ADUser -Filter 'Enabled -eq True'
Write-Host 'Operation terminée'
Test-NetConnection google.com
