Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Application -Newest 50
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-NetFirewallProfile
Get-NetIPAddress
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADUser svc_backup -Properties lastLogonTimestamp
Set-ExecutionPolicy RemoteSigned -Scope Process
Test-Connection -ComputerName dc01.novatech.local
New-Item -Path C:\\Temp -ItemType Directory
Get-Date
Get-Process -Name powershell
Set-Location C:\\Temp
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName System -Newest 50
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Test-NetConnection google.com
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-Connection -ComputerName dc01.novatech.local
Get-CimInstance -ClassName Win32_QuickFixEngineering
Write-Host 'Operation terminée'
Import-Module ActiveDirectory
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-SmbShare
systeminfo
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-NTFSAccess -Path C:\\SYSVOL
ipconfig /all
Get-SmbSession
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADServiceAccount -Filter * -Properties *
Get-Process | Where-Object {.CPU -gt 100}
Get-HotFix -Id KB5005565
Get-ADOrganizationalUnit -Filter *
cls
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Get-Command -Module ActiveDirectory
Get-Date
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
New-Item -Path C:\\Temp -ItemType Directory
Get-Date
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
ipconfig /all
systeminfo
Get-ProcessMitigation -Name powershell.exe
Get-SmbSession
Test-Connection -ComputerName dc01.novatech.local
Get-ADComputer -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Process -Name powershell
Get-ADPrincipalGroupMembership svc_backup
systeminfo
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-WmiObject Win32_OperatingSystem
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Command -Module ActiveDirectory
Get-SmbOpenFile
Test-Connection -ComputerName dc01.novatech.local
Import-Module ActiveDirectory
Get-LocalGroupMember -Group 'Administrators'
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Import-Module ActiveDirectory
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Process | Where-Object {.CPU -gt 100}
Get-ADUser -Filter 'Enabled -eq True'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
systeminfo
Get-ADGroup -Filter *
Test-NetConnection google.com
Get-Service -Name WinRM | Format-List *
Get-ADComputer -Filter *
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Start-Sleep -Seconds 10
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Date
Test-NetConnection google.com
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetFirewallProfile
Get-Date
New-Item -Path C:\\Temp -ItemType Directory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-HotFix -Id KB5005565
Get-NTFSAccess -Path C:\\SYSVOL
Get-NTFSAccess -Path C:\\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
Test-Connection -ComputerName dc01.novatech.local
Import-Module ActiveDirectory
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NTFSAccess -Path C:\\SYSVOL
Get-Date
Start-Sleep -Seconds 10
Get-SmbShare
Get-HotFix -Id KB5005565
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-SmbSession
