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