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