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