Get-ProcessMitigation -Name powershell.exe
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
whoami
cls
hostname
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-LocalGroupMember -Group 'Administrators'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Content C:\\Scripts\\deploy.ps1
Get-ADUser -Filter 'Enabled -eq True'
Import-Module ActiveDirectory
Get-NetFirewallProfile
Get-Credential
Set-Location C:\\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-ADOrganizationalUnit -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Write-Host 'Operation terminée'
whoami
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Set-ExecutionPolicy RemoteSigned -Scope Process
Disconnect-PSDrive Z
Get-ADOrganizationalUnit -Filter *
Get-ADGroupMember 'Domain Admins'
Get-NTFSAccess -Path C:\\SYSVOL
Get-LocalGroupMember -Group 'Administrators'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName System -Newest 50
Disconnect-PSDrive Z
Get-SmbSession
Get-HotFix -Id KB5005565
Get-SmbSession
Get-LocalGroupMember -Group 'Administrators'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_OperatingSystem
Get-Command -Module ActiveDirectory
Get-Process | Where-Object {.CPU -gt 100}
Get-ADGroup -Filter *
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
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Application -Newest 50
whoami
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
systeminfo
Get-Process -Name powershell
Get-NetFirewallProfile
Get-NetFirewallProfile
Get-SmbOpenFile
Get-EventLog -LogName System -Newest 50
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ScheduledTask
Get-Credential
Get-Command -Module ActiveDirectory
Import-Module ActiveDirectory
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Import-Module ActiveDirectory
Write-Host 'Operation terminée'
systeminfo
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Content C:\\Scripts\\deploy.ps1
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Credential
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Command -Module ActiveDirectory
Test-Connection -ComputerName dc01.novatech.local
Get-ScheduledTask
Get-ScheduledTask
whoami
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Application -Newest 50
cls
Get-LocalGroupMember -Group 'Administrators'
Set-Location C:\\Temp
Get-Content C:\\Scripts\\deploy.ps1
New-Item -Path C:\\Temp -ItemType Directory
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-LocalGroupMember -Group 'Administrators'
Write-Host 'Operation terminée'
Write-Host 'Operation terminée'
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Process -Name powershell
Get-Command -Module ActiveDirectory
Get-EventLog -LogName System -Newest 50
Get-Process -Name powershell
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
ipconfig /all
Get-SmbShare
Get-Credential
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Disconnect-PSDrive Z
Get-SmbSession
Get-SmbShare
Test-NetConnection google.com
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Test-NetConnection google.com
Get-ADUser -Filter 'Enabled -eq True'
Get-ADUser -Filter 'Enabled -eq True'
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Import-Module ActiveDirectory
Get-ADGroupMember 'Domain Admins'
Test-Connection -ComputerName dc01.novatech.local
hostname
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Test-NetConnection google.com
Remove-Item C:\\Temp\\old_log.log -Force
