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