hostname
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
cls
Set-Location C:\\Temp
Get-NetIPAddress
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADComputer -Filter *
Get-EventLog -LogName System -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
cls
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Service -Name WinRM | Format-List *
Get-NTFSAccess -Path C:\\SYSVOL
Get-NTFSAccess -Path C:\\SYSVOL
Write-Host 'Operation terminée'
Get-Service | Where-Object {.Status -eq 'Running'}
Get-HotFix -Id KB5005565
New-Item -Path C:\\Temp -ItemType Directory
Get-Content C:\\Scripts\\deploy.ps1
Get-ADGroup -Filter *
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
ipconfig /all
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Remove-Item C:\\Temp\\old_log.log -Force
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADServiceAccount -Filter * -Properties *
Get-Credential
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADGroup -Filter *
cls
hostname
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
ipconfig /all
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-SmbOpenFile
Get-HotFix -Id KB5005565
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-LocalGroupMember -Group 'Administrators'
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SmbOpenFile
Get-NetIPAddress
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Service -Name WinRM | Format-List *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Test-NetConnection google.com
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName System -Newest 50
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -Newest 50
Import-Module ActiveDirectory
Import-Module ActiveDirectory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NTFSAccess -Path C:\\SYSVOL
Get-ScheduledTask
Get-HotFix -Id KB5005565
Test-Connection -ComputerName dc01.novatech.local
Get-Command -Module ActiveDirectory
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADUser -Filter 'Enabled -eq True'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
ipconfig /all
Get-Credential
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
hostname
systeminfo
Get-ADGroup -Filter *
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADGroupMember 'Domain Admins'
Set-Location C:\\Temp
Get-Command -Module ActiveDirectory
Get-ADPrincipalGroupMembership svc_backup
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-SmbSession
Get-LocalGroupMember -Group 'Administrators'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Write-Host 'Operation terminée'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADPrincipalGroupMembership svc_backup
Test-Connection -ComputerName dc01.novatech.local
Start-Sleep -Seconds 10
cls
Get-Content C:\\Scripts\\deploy.ps1
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Credential
Get-ADGroup -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WmiObject Win32_OperatingSystem
systeminfo
Get-SmbOpenFile
Get-ADUser -Filter 'Enabled -eq True'
Import-Module ActiveDirectory
Get-NetIPAddress
Get-ADUser svc_backup -Properties lastLogonTimestamp
Restart-Service -Name 'WinRM'
Get-ADGroup -Filter *
systeminfo
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
whoami
Get-ADGroupMember 'Domain Admins'
Get-HotFix -Id KB5005565
