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