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