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