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