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