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