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