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