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