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