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