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