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