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