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