ipconfig /all
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Test-Connection -ComputerName dc01.novatech.local
whoami
Get-ADGroup -Filter *
Get-Command -Module ActiveDirectory
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADUser -Filter 'Enabled -eq True'
Disconnect-PSDrive Z
Get-Credential
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ChildItem -Recurse C:\\Scripts\\
Get-NTFSAccess -Path C:\\SYSVOL
Get-Date
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
ipconfig /all
Write-Host 'Operation terminée'
Remove-Item C:\\Temp\\old_log.log -Force
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Test-NetConnection google.com
Get-ADGroupMember 'Domain Admins'
Get-LocalGroupMember -Group 'Administrators'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADOrganizationalUnit -Filter *
Get-Process -Name powershell
Get-ADOrganizationalUnit -Filter *
Get-NetFirewallProfile
systeminfo
whoami
Get-ADOrganizationalUnit -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ScheduledTask
Get-EventLog -LogName Application -Newest 50
cls
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-LocalGroupMember -Group 'Administrators'
Start-Sleep -Seconds 10
systeminfo
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
whoami
Get-Command -Module ActiveDirectory
Get-Credential
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Command -Module ActiveDirectory
Get-ChildItem -Recurse C:\\Scripts\\
Get-Date
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPrincipalGroupMembership svc_backup
cls
systeminfo
Get-NetFirewallProfile
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Remove-Item C:\\Temp\\old_log.log -Force
hostname
Get-ADGroupMember 'Domain Admins'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NetFirewallProfile
Get-HotFix -Id KB5005565
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADPrincipalGroupMembership svc_backup
Get-ProcessMitigation -Name powershell.exe
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
systeminfo
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallProfile
Get-ADGroupMember 'Domain Admins'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Test-Connection -ComputerName dc01.novatech.local
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Start-Sleep -Seconds 10
Get-Process -Name powershell
Start-Sleep -Seconds 10
systeminfo
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADServiceAccount -Filter * -Properties *
Get-ADComputer -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject Win32_OperatingSystem
New-Item -Path C:\\Temp -ItemType Directory
Get-Command -Module ActiveDirectory
Test-Connection -ComputerName dc01.novatech.local
Get-NetIPAddress
cls
Get-Process -Name powershell
Test-NetConnection google.com
Get-ScheduledTask
Write-Host 'Operation terminée'
Start-Sleep -Seconds 10
hostname
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
cls
Get-ADServiceAccount -Filter * -Properties *
New-Item -Path C:\\Temp -ItemType Directory
Get-ADOrganizationalUnit -Filter *
Get-Content C:\\Scripts\\deploy.ps1
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADUser -Filter 'Enabled -eq True'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NetFirewallProfile
Get-NetIPAddress
Get-ADUser -Filter 'Enabled -eq True'
Get-HotFix -Id KB5005565
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
