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