Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Start-Sleep -Seconds 10
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Date
Get-ChildItem -Recurse C:\\Scripts\\
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Start-Sleep -Seconds 10
Get-Service -Name WinRM | Format-List *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-SmbOpenFile
Get-ADPrincipalGroupMembership svc_backup
Get-NetFirewallProfile
Get-Service | Where-Object {.Name -like '*crypt*'}
Remove-Item C:\\Temp\\old_log.log -Force
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Date
Get-Process -Name powershell
Get-ADUser -Filter 'Enabled -eq True'
Import-Module ActiveDirectory
Get-LocalGroupMember -Group 'Administrators'
whoami
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-NetFirewallProfile
Test-Connection -ComputerName dc01.novatech.local
Import-Module ActiveDirectory
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Service | Where-Object {.Name -like '*crypt*'}
systeminfo
Set-Location C:\\Temp
Get-NetFirewallProfile
Get-Service | Where-Object {.Status -eq 'Running'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ChildItem -Recurse C:\\Scripts\\
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Start-Sleep -Seconds 10
Get-ADPrincipalGroupMembership svc_backup
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
whoami
Get-HotFix -Id KB5005565
Get-ScheduledTask
whoami
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADServiceAccount -Filter * -Properties *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
hostname
Get-ADOrganizationalUnit -Filter *
Disconnect-PSDrive Z
Test-Connection -ComputerName dc01.novatech.local
ipconfig /all
Get-Service -Name WinRM | Format-List *
Get-NetFirewallProfile
Get-ScheduledTask
Get-ScheduledTask
Get-ADServiceAccount -Filter * -Properties *
cls
ipconfig /all
Write-Host 'Operation terminée'
hostname
Get-HotFix -Id KB5005565
systeminfo
Set-Location C:\\Temp
Get-ADComputer -Filter *
Get-ADGroupMember 'Domain Admins'
Import-Module ActiveDirectory
Get-ProcessMitigation -Name powershell.exe
Get-ADServiceAccount -Filter * -Properties *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Date
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADUser svc_backup -Properties lastLogonTimestamp
whoami
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_OperatingSystem
Test-NetConnection google.com
Get-EventLog -LogName Application -Newest 50
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Test-NetConnection google.com
Get-ADGroup -Filter *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Command -Module ActiveDirectory
Get-SmbSession
Get-ADOrganizationalUnit -Filter *
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADUser -Filter 'Enabled -eq True'
Get-ProcessMitigation -Name powershell.exe
New-Item -Path C:\\Temp -ItemType Directory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Start-Sleep -Seconds 10
Get-ADComputer -Filter *
Get-NetFirewallProfile
Get-Command -Module ActiveDirectory
Restart-Service -Name 'WinRM'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Service | Where-Object {.Name -like '*crypt*'}
cls
Start-Sleep -Seconds 10
Get-ADComputer -Filter *
Get-SmbOpenFile
Get-SmbOpenFile
Get-ChildItem -Recurse C:\\Scripts\\
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
ipconfig /all
Get-NetFirewallProfile
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NetFirewallProfile
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Service | Where-Object {.Status -eq 'Running'}
