Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Process -Name powershell
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ProcessMitigation -Name powershell.exe
Get-SmbOpenFile
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Process | Where-Object {.CPU -gt 100}
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Content C:\\Scripts\\deploy.ps1
Restart-Service -Name 'WinRM'
Get-ADOrganizationalUnit -Filter *
Start-Sleep -Seconds 10
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
whoami
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
hostname
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Credential
Get-Service -Name WinRM | Format-List *
Get-ProcessMitigation -Name powershell.exe
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ProcessMitigation -Name powershell.exe
Get-ADComputer -Filter *
Restart-Service -Name 'WinRM'
Get-ProcessMitigation -Name powershell.exe
Get-Command -Module ActiveDirectory
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Set-Location C:\\Temp
hostname
Get-SmbSession
Get-WmiObject Win32_OperatingSystem
systeminfo
Get-ProcessMitigation -Name powershell.exe
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ChildItem -Recurse C:\\Scripts\\
Get-SmbShare
Get-SmbSession
Get-Process -Name powershell
Start-Sleep -Seconds 10
Get-Process -Name powershell
hostname
Get-Service | Where-Object {.Name -like '*crypt*'}
Set-ExecutionPolicy RemoteSigned -Scope Process
Restart-Service -Name 'WinRM'
Set-ExecutionPolicy RemoteSigned -Scope Process
Set-Location C:\\Temp
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Test-NetConnection google.com
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-SmbSession
Get-ADUser -Filter 'Enabled -eq True'
Get-Content C:\\Scripts\\deploy.ps1
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject Win32_OperatingSystem
Set-Location C:\\Temp
Get-Command -Module ActiveDirectory
Get-NTFSAccess -Path C:\\SYSVOL
New-Item -Path C:\\Temp -ItemType Directory
cls
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Test-Connection -ComputerName dc01.novatech.local
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-HotFix -Id KB5005565
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Set-ExecutionPolicy RemoteSigned -Scope Process
Start-Sleep -Seconds 10
Remove-Item C:\\Temp\\old_log.log -Force
cls
Get-Command -Module ActiveDirectory
Get-SmbShare
Get-Process -Name powershell
Test-NetConnection google.com
Write-Host 'Operation terminée'
Get-Process -Name powershell
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
hostname
systeminfo
New-Item -Path C:\\Temp -ItemType Directory
Get-ProcessMitigation -Name powershell.exe
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-SmbOpenFile
Get-Service -Name WinRM | Format-List *
Start-Sleep -Seconds 10
Get-ADOrganizationalUnit -Filter *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADOrganizationalUnit -Filter *
cls
Write-Host 'Operation terminée'
Get-ScheduledTask
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ScheduledTask
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Import-Module ActiveDirectory
Get-NetFirewallProfile
Get-Service -Name WinRM | Format-List *
Get-ADPrincipalGroupMembership svc_backup
Get-ADGroup -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADGroupMember 'Domain Admins'
