Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName System -Newest 50
Get-ADOrganizationalUnit -Filter *
Get-Service -Name WinRM | Format-List *
Get-ADGroup -Filter *
Get-Content C:\\Scripts\\deploy.ps1
Get-Process | Where-Object {.CPU -gt 100}
Test-Connection -ComputerName dc01.novatech.local
Get-Service -Name WinRM | Format-List *
Get-Content C:\\Scripts\\deploy.ps1
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-SmbOpenFile
Set-ExecutionPolicy RemoteSigned -Scope Process
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Process -Name powershell
hostname
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-HotFix -Id KB5005565
Get-Process -Name powershell
Get-HotFix -Id KB5005565
Get-HotFix -Id KB5005565
Get-LocalGroupMember -Group 'Administrators'
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Application -Newest 50
Get-Process | Where-Object {.CPU -gt 100}
Set-Location C:\\Temp
Start-Sleep -Seconds 10
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName System -Newest 50
hostname
hostname
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Restart-Service -Name 'WinRM'
Get-SmbSession
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
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallProfile
Get-Date
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Credential
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Write-Host 'Operation terminée'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ChildItem -Recurse C:\\Scripts\\
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
hostname
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-EventLog -LogName System -Newest 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Restart-Service -Name 'WinRM'
Get-WmiObject Win32_OperatingSystem
hostname
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADComputer -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Date
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbSession
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Service -Name WinRM | Format-List *
Remove-Item C:\\Temp\\old_log.log -Force
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-EventLog -LogName Application -Newest 50
Get-SmbOpenFile
Get-Process -Name powershell
Get-ADOrganizationalUnit -Filter *
systeminfo
Remove-Item C:\\Temp\\old_log.log -Force
Disconnect-PSDrive Z
Get-NTFSAccess -Path C:\\SYSVOL
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADGroupMember 'Domain Admins'
Get-ADOrganizationalUnit -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName System -Newest 50
Get-Process -Name powershell
Get-SmbOpenFile
Remove-Item C:\\Temp\\old_log.log -Force
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WmiObject Win32_OperatingSystem
Write-Host 'Operation terminée'
Get-WmiObject Win32_OperatingSystem
Test-Connection -ComputerName dc01.novatech.local
cls
Get-Process | Where-Object {.CPU -gt 100}
Get-LocalGroupMember -Group 'Administrators'
Get-Date
Get-ADGroupMember 'Domain Admins'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-SmbOpenFile
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service -Name WinRM | Format-List *
Get-Command -Module ActiveDirectory
Get-ADPrincipalGroupMembership svc_backup
Get-NetIPAddress
Get-Content C:\\Scripts\\deploy.ps1
Get-Process -Name powershell
Start-Sleep -Seconds 10
Get-Credential
Restart-Service -Name 'WinRM'
Get-ADPrincipalGroupMembership svc_backup
Write-Host 'Operation terminée'
Set-ExecutionPolicy RemoteSigned -Scope Process
Set-ExecutionPolicy RemoteSigned -Scope Process
