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