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