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