Get-LocalGroupMember -Group 'Administrators'
Test-Connection -ComputerName dc01.novatech.local
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADComputer -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Application -Newest 50
Get-ChildItem -Recurse C:\\Scripts\\
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Process -Name powershell
ipconfig /all
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
cls
Start-Sleep -Seconds 10
Get-ProcessMitigation -Name powershell.exe
Test-Connection -ComputerName dc01.novatech.local
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NetFirewallProfile
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Process | Where-Object {.CPU -gt 100}
Get-NetIPAddress
Get-NetIPAddress
Write-Host 'Operation terminée'
ipconfig /all
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
ipconfig /all
hostname
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Credential
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-NetIPAddress
Get-WmiObject Win32_OperatingSystem
Remove-Item C:\\Temp\\old_log.log -Force
Get-NetFirewallProfile
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
ipconfig /all
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-SmbShare
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName Application -Newest 50
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Application -Newest 50
Test-NetConnection google.com
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Application -Newest 50
Get-HotFix -Id KB5005565
Get-ADServiceAccount -Filter * -Properties *
Start-Sleep -Seconds 10
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process -Name powershell
Get-EventLog -LogName Application -Newest 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
hostname
Disconnect-PSDrive Z
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Process | Where-Object {.CPU -gt 100}
Get-Date
systeminfo
Start-Sleep -Seconds 10
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Start-Sleep -Seconds 10
Restart-Service -Name 'WinRM'
Write-Host 'Operation terminée'
Get-ADPrincipalGroupMembership svc_backup
Get-ADGroup -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ScheduledTask
Get-LocalGroupMember -Group 'Administrators'
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-SmbOpenFile
Get-WmiObject Win32_OperatingSystem
Get-SmbSession
Get-LocalGroupMember -Group 'Administrators'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Test-NetConnection google.com
Get-WmiObject Win32_OperatingSystem
Get-SmbSession
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Write-Host 'Operation terminée'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADUser svc_backup -Properties lastLogonTimestamp
Write-Host 'Operation terminée'
Get-Service | Where-Object {.Status -eq 'Running'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Credential
Get-ScheduledTask
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADUser svc_backup -Properties lastLogonTimestamp
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Application -Newest 50
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-LocalGroupMember -Group 'Administrators'
Get-HotFix -Id KB5005565
ipconfig /all
Get-ADGroup -Filter *
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-LocalGroupMember -Group 'Administrators'
ipconfig /all
