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