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