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